cross compiling stage 1 libgcc fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am trying to cross-compile gcc 4.7.2.

configure --host=$HOST --target=$TARGET --prefix=/usr --enable-languages=c,c++
--without-headers --disable-bootstrap

The build fails when building stage1 libgcc with this error

/tmp/build/./gcc/xgcc -B/tmp/build/./gcc/ -B/usr/x86_64-unknown-linux-gnu/bin/
-B/usr/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/x86_64-unknown-linux-gnu/include -isystem
/usr/x86_64-unknown-linux-gnu/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC   -W
-Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fpic -g
-DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -fpic -I.
-I. -I../.././gcc -I/tmp/src/libgcc -I/tmp/src/libgcc/. -I/tmp/src/libgcc/../gcc
-I/tmp/src/libgcc/../include -I/tmp/src/libgcc/config/libbid
-DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS  -DUSE_TLS -o _fixunsdfsi.o -MT
_fixunsdfsi.o -MD -MP -MF _fixunsdfsi.dep -DL_fixunsdfsi -c
/tmp/src/libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS
In file included from /usr/include/limits.h:27:0,
                 from /tmp/build/./gcc/include-fixed/limits.h:169,
                 from /tmp/build/./gcc/include-fixed/syslimits.h:7,
                 from /tmp/build/./gcc/include-fixed/limits.h:34,
                 from /tmp/src/libgcc/libgcc2.c:1733:
/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or
directory
compilation terminated.

gcc tries to include/link the target libc. I have not build that as I do not
have a working cross compiler. What am I missing?




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux