This is the mail archive of the
crossgcc@sources.redhat.com
mailing list for the crossgcc project.
See the CrossGCC FAQ for lots
more information.
Strange problem building GCC under crosstool
- From: Ken Rose <kenrose at tfb dot com>
- To: crossgcc at sources dot redhat dot com
- Date: Thu, 15 Jul 2004 06:01:52 -0700
- Subject: Strange problem building GCC under crosstool
- Reply-to: rose at acm dot org
Hi,
I'm trying to build a cross toolchain for PPC405 and I'm running into a
really strange problem. The first time the build tries to use the new
xgcc, it spews errors claiming to not understand nearly every option
it's passed, and then cores out with a segfault. This happens under
crosstool-0.27 and 0.28rc28.
Here's the offending invocation, as it appears under 0.27. This is all
running under Red Hat 9.
------------------------------
/home/ken/crosstool-0.27/build/powerpc-405-linux-gnu/gcc-3.3.2-glibc-2.3.2/build-gcc-core/gcc/xgcc
-B/home/ken/crosstool-0.27/build/powerpc-405-linux-gnu/gcc-3.3.2-glibc-2.3.2/build-gcc-core/gcc/
-B/opt/crosstool/powerpc-405-linux-gnu/gcc-3.3.2-glibc-2.3.2/powerpc-405-linux-gnu/bin/
-B/opt/crosstool/powerpc-405-linux-gnu/gcc-3.3.2-glibc-2.3.2/powerpc-405-linux-gnu/lib/
-isystem
/opt/crosstool/powerpc-405-linux-gnu/gcc-3.3.2-glibc-2.3.2/powerpc-405-linux-gnu/include
-O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -isystem ./include -I. -I.
-I/home/ken/crosstool-0.27/build/powerpc-405-linux-gnu/gcc-3.3.2-glibc-2.3.2/gcc-3.3.2/gcc
-I/home/ken/crosstool-0.27/build/powerpc-405-linux-gnu/gcc-3.3.2-glibc-2.3.2/gcc-3.3.2/gcc/.
-I/home/ken/crosstool-0.27/build/powerpc-405-linux-gnu/gcc-3.3.2-glibc-2.3.2/gcc-3.3.2/gcc/config
-I/home/ken/crosstool-0.27/build/powerpc-405-linux-gnu/gcc-3.3.2-glibc-2.3.2/gcc-3.3.2/gcc/../include
-g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions
-fno-zero-initialized-in-bss -msdata=none \
-Dinhibit_libc -c
/home/ken/crosstool-0.27/build/powerpc-405-linux-gnu/gcc-3.3.2-glibc-2.3.2/gcc-3.3.2/gcc/crtstuff.c
-DCRT_BEGIN \
-o crtbegin.o
xgcc: unrecognized option `-isystem'
xgcc: unrecognized option `-O2'
xgcc: unrecognized option `-DIN_GCC'
xgcc: unrecognized option `-DCROSS_COMPILE'
xgcc: unrecognized option `-W'
xgcc: unrecognized option `-Wall'
xgcc: unrecognized option `-Wwrite-strings'
xgcc: unrecognized option `-Wstrict-prototypes'
xgcc: unrecognized option `-Wmissing-prototypes'
xgcc: unrecognized option `-isystem'
xgcc: unrecognized option `-I.'
xgcc: unrecognized option `-I.'
xgcc: unrecognized option
`-I/home/ken/crosstool-0.27/build/powerpc-405-linux-gnu/gcc-3.3.2-glibc-2.3.2/gcc-3.3.2/gcc'
xgcc: unrecognized option
`-I/home/ken/crosstool-0.27/build/powerpc-405-linux-gnu/gcc-3.3.2-glibc-2.3.2/gcc-3.3.2/gcc/.'
xgcc: unrecognized option
`-I/home/ken/crosstool-0.27/build/powerpc-405-linux-gnu/gcc-3.3.2-glibc-2.3.2/gcc-3.3.2/gcc/config'
xgcc: unrecognized option
`-I/home/ken/crosstool-0.27/build/powerpc-405-linux-gnu/gcc-3.3.2-glibc-2.3.2/gcc-3.3.2/gcc/../include'
xgcc: unrecognized option `-g0'
xgcc: unrecognized option `-finhibit-size-directive'
xgcc: unrecognized option `-fno-inline-functions'
xgcc: unrecognized option `-fno-exceptions'
xgcc: unrecognized option `-fno-zero-initialized-in-bss'
xgcc: unrecognized option `-msdata=none'
xgcc: unrecognized option `-Dinhibit_libc'
xgcc: unrecognized option `-DCRT_BEGIN'
make[1]: *** [crtbegin.o] Segmentation fault (core dumped)
make[1]: Leaving directory
`/home/ken/crosstool-0.27/build/powerpc-405-linux-gnu/gcc-3.3.2-glibc-2.3.2/build-gcc-core/gcc'
make: *** [all-gcc] Error 2
--------------------------
Anybody seen anything like this? I've been building GCC for a lot of
years, and I haven't.
Thanks
- ken
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com