[Clfs-support] chapter 6: GCC-4.6.1 - Cross Compiler Final ...build failed

Andrew Bradford bradfa at gmail.com
Sun Nov 27 06:49:25 PST 2011


On 11/01/2011 09:21 PM, sayed israr wrote:
>     /**************************************************************************************************************************/
>      >  CLFS_HOST="i686-cross-linux-gnu"
>      >  CLFS_TARGET="i486-pc-linux-uclibc"
>      >  CLFS_ARCH="i386"
>      >  CLFS_ENDIAN="little"
>      >  CLFS_CPU="i486"
>      >
>     /***************************************************************************************************************************/
>      >
>      > AR=ar LDFLAGS="-Wl,-rpath,${CLFS}/cross-tools/lib" \
>      >   ../gcc-4.6.1/configure --prefix=${CLFS}/cross-tools \
>      >   --build=${CLFS_HOST} --target=${CLFS_TARGET} --host=${CLFS_HOST} \
>      >   --with-sysroot=${CLFS} --disable-nls --enable-shared \
>      >   --enable-languages=c --enable-c99 --enable-long-long \
>      >   --with-mpfr=${CLFS}/cross-tools --with-gmp=${CLFS}/cross-tools \
>      >   --with-mpc=${CLFS}/cross-tools --disable-multilib \
>      >   --with-arch=${CLFS_CPU}
>      >
>     /**********************************************************************************************************************/
>      >
>      > make[2]: Entering directory
>      > `/mnt/clfs/sources/gcc-build/i486-pc-linux-uclibc/libgcc'
>      > # If this is the top-level multilib, build all the other
>      > # multilibs.
>      > /mnt/clfs/sources/gcc-build/./gcc/xgcc
>     -B/mnt/clfs/sources/gcc-build/./gcc/
>      > -B/mnt/clfs/cross-tools/i486-pc-linux-uclibc/bin/
>      > -B/mnt/clfs/cross-tools/i486-pc-linux-uclibc/lib/ -isystem
>      > /mnt/clfs/cross-tools/i486-pc-linux-uclibc/include -isystem
>      > /mnt/clfs/cross-tools/i486-pc-linux-uclibc/sys-include    -g -O2
>     -O2  -g -O2
>      > -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings
>     -Wcast-qual
>      > -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
>     -isystem
>      > ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
>      > -D__GCC_FLOAT_NOT_NEEDED -fno-stack-protector   -I. -I. -I../.././gcc
>      > -I../../../gcc-4.6.1/libgcc -I../../../gcc-4.6.1/libgcc/.
>      > -I../../../gcc-4.6.1/libgcc/../gcc
>     -I../../../gcc-4.6.1/libgcc/../include
>      > -I../../../gcc-4.6.1/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT
>      > -DHAVE_CC_TLS  -DUSE_TLS -o _muldi3.o -MT _muldi3.o -MD -MP -MF
>     _muldi3.dep
>      > -DL_muldi3 -c ../../../gcc-4.6.1/libgcc/../gcc/libgcc2.c \
>      >       -fvisibility=hidden -DHIDE_EXPORTS
>      > In file included from
>     ../../../gcc-4.6.1/libgcc/../gcc/libgcc2.c:29:0:
>      > ../../../gcc-4.6.1/libgcc/../gcc/tsystem.h:87:19: fatal error:
>     stdio.h: No
>      > such file or directory
>      > compilation terminated.
>      > make[2]: *** [_muldi3.o] Error 1
>      > make[2]: Leaving directory
>      > `/mnt/clfs/sources/gcc-build/i486-pc-linux-uclibc/libgcc'
>      > make[1]: *** [all-target-libgcc] Error 2
>      > make[1]: Leaving directory `/mnt/clfs/sources/gcc-build'
>      > make: *** [all] Error 2
>      >
>     /****************************************************************************************************************************/
> ->* this error is output of "make" command.
> *    This is the output of env command:

I finally had some free time to reproduce this issue.  This is happening 
because you did not successfully build and install uClibc.  Most likely 
your uClibc build failed because you're using uClibc 0.9.31 and Binutils 
2.21.  This combo does not work for x86.

You can try using uClibc 0.9.32, which should have the fix built in. 
I'm currently working on upgrading uClibc to 0.9.32 for the embedded 
book but I've not yet confirmed that all the patches required for the 
book work.  I'm running into some other issues that require a few 
patches.  It's not a simple, "upgrade to the new version and 
everything's peachy" kind of deal.  Sorry.

If you're able to get uClibc 0.9.32 patched to work, please let me know 
what was required.

Thanks,
-Andrew



More information about the Clfs-support mailing list