This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more infromation.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Will Sloan wrote: > I'm trying to build a cross compiler from linux on x86 to linux on > powerpc. I got the following error when it tries to execurte a > Configure script in powerpc-linux-gnu/libiberty > : > > checking whether the C compiler (/Godzilla/tools/src/build-gcc/gcc/xgcc > -B/Godzilla/tools/src/build-gcc/gcc/ > -B/Godzilla/tools/powerpc-linux-gnu/bin/ -g -O2 ) works... no > configure: error: installation or configuration problem: C compiler > cannot create executables. > make[2]: Entering directory > `/Godzilla/tools/src/build-gcc/powerpc-linux-gnu/libio' > test x"no" != xyes ||\ > /Godzilla/tools/src/build-gcc/gcc/xgcc > -B/Godzilla/tools/src/build-gcc/gcc/ > -B/Godzilla/tools/powerpc-linux-gnu/bin/ -c -g -O2 -I. > -I../../../gcc-2.95/libio -D_IO_MTSAFE_IO > ../../../gcc-2.95/libio/iogetline.c -o pic/iogetline.o > /Godzilla/tools/src/build-gcc/gcc/xgcc > -B/Godzilla/tools/src/build-gcc/gcc/ > -B/Godzilla/tools/powerpc-linux-gnu/bin/ -c -g -O2 -I. > -I../../../gcc-2.95/libio -D_IO_MTSAFE_IO > ../../../gcc-2.95/libio/iogetline.c > In file included from ../../../gcc-2.95/libio/iogetline.c:26: > ../../../gcc-2.95/libio/libioP.h:30: errno.h: No such file or directory > In file included from ../../../gcc-2.95/libio/iolibio.h:1, > from ../../../gcc-2.95/libio/libioP.h:47, > from ../../../gcc-2.95/libio/iogetline.c:26: > ../../../gcc-2.95/libio/libio.h:30: _G_config.h: No such file or > directory > ../../../gcc-2.95/libio/iogetline.c:27: string.h: No such file or > directory > make[2]: *** [iogetline.o] Error 1 > make[2]: Leaving directory > `/Godzilla/tools/src/build-gcc/powerpc-linux-gnu/libio' > make[1]: *** [all-target-libio] Error 2 > make[1]: Leaving directory `/Godzilla/tools/src/build-gcc' > make: *** [cross] Error 2 > > I have verified that errno.h and string.h do exists in > $prefix/$target/include. does anyone know what is happening and how to > fix it???? Where did these include files come from ? A glibc distribution ? I haven't seen this problem but make sure that you have the following. 1) preinstalled include files from a powerpc distribution to $prefix/$target/include 2) preinstalled library files from a powerpc distribution to $prefix$target/lib 3) installed the linux kernel source tree to $prefix/$target/linux 4) cd $prefix/$target/linux ; rm -rf `ls --color=none --ignore=include` 4) cd $prefix/$target/linux ; ln -sf asm-ppc asm 5) cd $prefix/$target/include ; ln -sf $prefix/$target/linux/include/asm-ppc asm 6) cd $prefix/$target/include ; ln -sf $prefix/$target/linux/include/linux linux I'm not sure if it will solve your problem but it might help. Brendan Simon. ------ 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] |