Peter Schorn wrote:
Adriaan van Os wrote:
I was less successful building the "other" cross-compiler using
configure --enable-languages=pascal --enable-threads=posix --target=i386-apple-darwin8 --host=powerpc-apple-darwin8 --build=powerpc-apple-darwin8 --prefix=/Developer/Pascal/gpc412n --with-sysroot=/Developer/SDKs/MacOSX10.4u.sdk/ --with-arch=pentium-m --with-tune=prescott --with-ld=/usr/bin/ld --with-as=/usr/bin/as
The make stops with the following error message ../.././xgpc -B../.././ -c -g -I. -W -Wall -Wmissing-prototypes -Wmissing-declarations -g -O2 --unit-path=/Users/peterschorn/projects/gpc4/gcc-4.1.2/gcc/p/rts --automake -DRTS_RELEASE_STRING="'`cat /Users/peterschorn/projects/gpc4/gcc-4.1.2/gcc/p/rts/rts-version`'" -DGCC_VERSION="''" "/Users/peterschorn/projects/gpc4/gcc-4.1.2/gcc/p/rts/rtsc.pas" /Users/peterschorn/projects/gpc4/gcc-4.1.2/gcc/p/rts/rtsc.pas:430: internal compiler error: in store_node_fields, at p/module.c:2372 Please submit a full bug report, with preprocessed source if appropriate. See URL:http://www.gnu-pascal.de/todo.html for instructions. make[3]: *** [rtsc.o] Error 1 make[2]: *** [pascal.rts] Error 2 make[1]: *** [all-gcc] Error 2 make: *** [all] Error 2
Am I using some wrong parameters in the configure parameters or am I missing something else?
Looks like a compiler bug, not a build or configuration error on your side. Hoewever, it may help (or not) to use the C compiler that was built with the native Pascal compiler. Try to add CC=/Developer/Pascal/gpc412n/bin/gcc to the make command.
Regards,
Adriaan van Os