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] |
Other format: | [Raw text] |
Hi, I encountered some errors when building a cross compiler for powerpc-linux target on an i686-linux host (RedHat 7.2). I use gcc-2.95.3, binutils-2.11.2, and glibc-2.2.5. Everything seems OK except when I verify the glibc using "make check". The following shows what I did step by step. Anybody had similar problems before? Any suggestion or hint to solve the problem? Thank you very much. TARGET=powerpc-linux PREFIX=/opt/xdev/ppc 1. binutils ../binutils-2.11.2/configure --host=i686-pc-linux-gnu --target=powerpc-linux --prefix=/opt/xdev/ppc --norecursion make all install 2. bootstrap gcc ../gcc-2.95.3/configure --with-gcc-version-trigger=/u/xjin/code/gcc-2.95.3/gcc/version.c --host=i686-pc-linux-gnu --target=powerpc-linux --prefix=/opt/xdev/ppc --with-gnu-as --with-gnu-ld --enable-languages=c --disable-shared --without-headers --with-newlib --program-prefix=powerpc-linux- --norecursion make all-gcc install-gcc 3. glibc ../glibc-2.2.5/configure --host=powerpc-linux --enable-add-ons --prefix=/opt/xdev/ppc --with-headers=/opt/xdev/ppc/powerpc-linux/include --program-prefix=powerpc-linux- CC=$TARGET-gcc AR=$TARGET-ar RANLIB=$TARGET-ranlib make all It seems fine at this step. But when the glibc is check, it shows the following errors. make -C stdlib tests make[2]: Entering directory `/u/xjin/code/glibc-2.2.5/stdlib' cd /u/xjin/code/b3-libc/stdlib && powerpc-linux-gcc -O -include ../config.h /u/xjin/code/glibc-2.2.5/stdlib/isomac.c -o isomac /u/xjin/code/glibc-2.2.5/stdlib/isomac.c:74: stdio.h: No such file or directory /u/xjin/code/glibc-2.2.5/stdlib/isomac.c:75: stdlib.h: No such file or directory /u/xjin/code/glibc-2.2.5/stdlib/isomac.c:76: string.h: No such file or directory make[2]: *** [/u/xjin/code/b3-libc/stdlib/isomac] Error 1 make[2]: Leaving directory `/u/xjin/code/glibc-2.2.5/stdlib' make[1]: *** [stdlib/tests] Error 2 make[1]: Leaving directory `/u/xjin/code/glibc-2.2.5' make: *** [check] Error 2 The INSTALL instructions coming with glibc-2.2.5 warn that installing a glibc doesn't pass the verfication is dangerous. But in order to continue my work, I just installed the glibc. The I went to the last step to build a complete cross GCC. 4. complete cross gcc ../gcc-2.95.3/configure --with-gcc-version-trigger=/u/xjin/code/gcc-2.95.3/gcc/version.c --host=i686-pc-linux-gnu --target=powerpc-linux --prefix=/opt/xdev/ppc --enable-shared --enable-threads --with-gnu-as --with-gnu-ld --enable-languages=c --norecursion make all The following error occured. make[2]: Entering directory `/u/xjin/code/b3a-gcc/gcc' rm -f libgcc2.a if [ -d . ]; then \ cd .; \ rm -f libgcc.a ecrti.o ecrtn.o scrt0.o scrti.o scrtn.o; \ else true; \ fi make GCC_FOR_TARGET="/u/xjin/code/b3a-gcc/gcc/xgcc -B/u/xjin/code/b3a-gcc/gcc/ -B/opt/xdev/ppc/powerpc-linux/bin/ -I/opt/xdev/ppc/powerpc-linux/include" \ AR_FOR_TARGET="powerpc-linux-ar" \ AR_FLAGS_FOR_TARGET="rc" \ CC="gcc" CFLAGS="-g -O2" \ HOST_PREFIX="" HOST_PREFIX_1="loser-" \ LANGUAGES="c proto gcov " \ LIBGCC2_CFLAGS="-O2 -DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2 -I./include -fPIC -g1 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED " libgcc2.a make[3]: Entering directory `/u/xjin/code/b3a-gcc/gcc' make[3]: *** Warning: File `libgcc2.ready' has modification time in the future (2002-03-27 15:22:11 > 2002-03-27 15:21:53) rm -f tmplibgcc2.a for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf _bb _shtab _clear_cache _trampoline __main _exit _ctors _pure; \ do \ echo ${name}; \ /u/xjin/code/b3a-gcc/gcc/xgcc -B/u/xjin/code/b3a-gcc/gcc/ -B/opt/xdev/ppc/powerpc-linux/bin/ -I/opt/xdev/ppc/powerpc-linux/include -O2 -DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2 -I./include -fPIC -g1 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I../../gcc-2.95.3/gcc -I../../gcc-2.95.3/gcc/config -I../../gcc-2.95.3/gcc/../include -c -DL${name} \ ../../gcc-2.95.3/gcc/libgcc2.c -o ${name}.o; \ if [ $? -eq 0 ] ; then true; else exit 1; fi; \ powerpc-linux-ar rc tmplibgcc2.a ${name}.o; \ rm -f ${name}.o; \ done _muldi3 ../../gcc-2.95.3/gcc/libgcc2.c:41: stdlib.h: No such file or directory ../../gcc-2.95.3/gcc/libgcc2.c:42: unistd.h: No such file or directory make[3]: *** [libgcc2.a] Error 1 make[3]: Leaving directory `/u/xjin/code/b3a-gcc/gcc' make[2]: *** [stmp-multilib-sub] Error 2 make[2]: Leaving directory `/u/xjin/code/b3a-gcc/gcc' make[1]: *** [stmp-multilib] Error 1 make[1]: Leaving directory `/u/xjin/code/b3a-gcc/gcc' make: *** [all-gcc] Error 2 -- Shawn Jin RedSwitch Inc. ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |