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.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Hello, I've been pulling what little hair I have out trying to get a cross compiler build. Here's the info: Directory structure /cross/powerpc--linux-gnu/ binutils-2.11.2 build-binutils gcc-2.95.3 build-gcc newlib-1.9.0 build-newlib Environment variables TARGET=powerpc--linux-gnu PREFIX=/cross I built with the following commands (from Bill Gatliff's FAQ as well as message posts): Binutils step (from build-binutils directory): ../binutils-2.11.2/configure --target=${TARGET} --prefix=${PREFIX} make all install GCC Bootstrap step (from build-gcc directory): ../gcc-2.9.3/configure --target=${TARGET} --prefix=${PREFIX} --with-newlib --disable-shared --enable-cross make all-gcc install-gcc Newlib step (from build-newlib directory): ../newlib-1.9.0/configure --target=${TARGET} --prefix=${PREFIX} make all install I'm fine up to that point (I think). However, when I go to build the final gcc with the newly built libraries with the following (from build-gcc directory): ../gcc-2.9.3/configure --target=${TARGET} --prefix=${PREFIX} make all install I get two noticable errors. First: -- checking whether the C compiler (/cross/powerpc--linux-gnu/build-gcc/gcc/xgcc -B/cross/powerpc--linux-gnu/build-gcc/gcc/ -B/cross/powerpc--linux-gnu/bin/ -g -O2 ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. -- It doesn't quit there, though...then it goes into the second problem: -- make[1]: Entering directory `/cross/powerpc--linux-gnu/build-gcc/powerpc--linux-gnu/libio' test x"no" != xyes ||\ /cross/powerpc--linux-gnu/build-gcc/gcc/xgcc -B/cross/powerpc--linux-gnu/build-gcc/gcc/ -B/cross/powerpc--linux-gnu/bin/ -c -g -O2 -I. -I../../../gcc-2.95.3/libio -D_IO_MTSAFE_IO ../../../gcc-2.95.3/libio/iogetline.c -o pic/iogetline.o /cross/powerpc--linux-gnu/build-gcc/gcc/xgcc -B/cross/powerpc--linux-gnu/build-gcc/gcc/ -B/cross/powerpc--linux-gnu/bin/ -c -g -O2 -I. -I../../../gcc-2.95.3/libio -D_IO_MTSAFE_IO ../../../gcc-2.95.3/libio/iogetline.c In file included from ../../../gcc-2.95.3/libio/iolibio.h:1, from ../../../gcc-2.95.3/libio/libioP.h:47, from ../../../gcc-2.95.3/libio/iogetline.c:26: ../../../gcc-2.95.3/libio/libio.h:30: _G_config.h: No such file or directory make[1]: *** [iogetline.o] Error 1 make[1]: Leaving directory `/cross/powerpc--linux-gnu/build-gcc/powerpc--linux-gnu/libio' make: *** [all-target-libio] Error 2 -- Now, I've read BOTH faqs on the topic (only two clear ones I can find): http://crossgcc.billgatliff.com/crossgccfaq/t1.html http://www.sthoward.com/CrossGCC/ I know that I have _G_config.h in my /usr/include and /usr/local/include directories. However, it's nowhere in my /cross tree. I've tried to copy it over to a directory in the tree, but there are too many other dependencies. Can anyone help with the above errors? Is there more information I need to give? Thanks to anyone that can assist. ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |