New gpc snapshot released
Gale Paeper
gpaeper at empirenet.com
Fri Sep 7 08:02:11 CEST 2007
On Sep 6, 2007, at 3:32 PM, Adriaan van Os wrote:
> 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.
No joy, Adriaan.
Using the following modified lines from your build-on PPC command file:
cd build-cross
../gcc-4.1.2/configure --enable-languages=pascal,c --enable-
threads=posix --target=i386-apple-darwin8 --host=powerpc-apple-
darwin8 --build=powerpc-apple-darwin8 --prefix=/Developer/Pascal/
gpc412d1 --with-sysroot=/Developer/SDKs/MacOSX10.4u.sdk/ --with-
arch=pentium-m --with-tune=prescott --with-as=/usr/bin/as --with-ld=/
usr/bin/ld
make RANLIB_FOR_TARGET=ranlib AR_FOR_TARGET=ar NM_FOR_TARGET=nm
STRIP_FOR_TARGET=strip LIPO_FOR_TARGET=lipo CC=/Developer/Pascal/
gpc412d1/bin/gcc
sudo make RANLIB_FOR_TARGET=ranlib AR_FOR_TARGET=ar
NM_FOR_TARGET=nm STRIP_FOR_TARGET=strip LIPO_FOR_TARGET=lipo CC=/
Developer/Pascal/gpc412d1/bin/gcc install
I get pretty much the same error as Peter Schorn got in trying to
build a PPC hosted i386 cross compiler:
/Users/grp/GPC_Build/GPCBuild412/build-cross/./gcc/xgcc -B/Users/grp/
GPC_Build/GPCBuild412/build-cross/./gcc/ -B/Developer/Pascal/gpc412d1/
i386-apple-darwin8/bin/ -B/Developer/Pascal/gpc412d1/i386-apple-
darwin8/lib/ -isystem /Developer/Pascal/gpc412d1/i386-apple-darwin8/
include -isystem /Developer/Pascal/gpc412d1/i386-apple-darwin8/sys-
include -c -I. -W -Wall -Wmissing-prototypes -Wmissing-declarations -
g -O2 -Wpointer-arith -Wwrite-strings "/Users/grp/GPC_Build/
GPCBuild412/gcc-4.1.2/gcc/p/rts/rts.c"
../.././xgpc -B../.././ -c -g -I. -W -Wall -Wmissing-prototypes -
Wmissing-declarations -g -O2 --unit-path=/Users/grp/GPC_Build/
GPCBuild412/gcc-4.1.2/gcc/p/rts --automake -
DRTS_RELEASE_STRING="'`cat /Users/grp/GPC_Build/GPCBuild412/gcc-4.1.2/
gcc/p/rts/rts-version`'" -DGCC_VERSION="''" "/Users/grp/GPC_Build/
GPCBuild412/gcc-4.1.2/gcc/p/rts/rtsc.pas"
/Users/grp/GPC_Build/GPCBuild412/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
In looking over all the compile commands output, it doesn't look like
the "CC=/Developer/Pascal/gpc412d1/bin/gcc" parameter ends up forcing
that gcc to be used for all the compiling in building xgcc and xgpc.
For the boatload of compile commands, there doesn't seem to be any
rhyme or reason as to which C compiler is used. Sometimes, it is:
gcc -c ...
other times, it is:
/Developer/Pascal/gpc412d1/bin/gcc -c ...
If I've got the right compile line, module.c where the internal
compiler error is coming from was compiled with Apple's gcc and not
the /Developer/Pascal/gpc412d1/bin/gcc that was just build. The
complete compile line:
gcc -o p/module.o -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -
Wstrict-prototypes -Wmissing-prototypes -DHAVE_CONFIG_H -I. -Ip -
I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/p -I../../gcc-4.1.2/gcc/../
include -I./../intl -I../../gcc-4.1.2/gcc/../libcpp/include -W -
Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -
pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -
Wmissing-format-attribute -Wno-traditional -I. -Ip -I../../gcc-4.1.2/
gcc -I../../gcc-4.1.2/gcc/p -I../../gcc-4.1.2/gcc/../include -I./../
intl -I../../gcc-4.1.2/gcc/../libcpp/include -DGPC -DGPC_UNITS_DIR=
\"/Developer/Pascal/gpc412d1/lib/gcc/i386-apple-darwin8/4.1.2/units\"
-I../../gcc-4.1.2/gcc/p -DTARGET_NAME=\"i386-apple-darwin8\" ../../
gcc-4.1.2/gcc/p/module.c
If it would help in figuring out what the problem is, I've saved to a
file all the command output generated from the start to the end where
the make error occurs. It is about 500K so it is too large to attach
to this posting, but if it would help, I can send it in private e-mail.
Gale Paeper
gpaeper at empirenet.com
More information about the Gpc
mailing list