|
这个问题困扰我很久了 一直想有一个基于uClibc的x86的gcc
我是基于CLFS-EMBEDDED-SVN-0.0.1-20090328做的,host环境是LFS6.2(Gcc4.1.2)
环境变量
export CLFS=/home/lake/lfs/clfs/clfs-x86
LC_ALL=POSIX
export BUILD=-m32
export CLFS_HOST="${MACHTYPE}"
export CLFS_TARGET="i686-pc-linux-uclibc"
export CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/-.*//' -e 's/i.86/i386/')
export CLFS_ENDIAN=LITTLE
export CLFS_NOT_ENDIAN=BIG
export PATH=$CLFS/cross-tools/bin:/bin:/usr/bin
export CLFS LC_ALL PATH
unset CFLAGS
unset CXXFLAGS
每次都是在Gcc第二遍失败,我的前面kernel/binutil等版本与文档中一致. 哪位兄弟帮我看下?
6.11. GCC-4.3.3 - Cross Compiler Final
...................
make[2]: Leaving directory `/home/lake/lfs/clfs/CLFS-Embedded-SVN-0.0.1-package/gcc-build2/gcc'
Checking multilib configuration for libgcc...
mkdir -p -- i686-pc-linux-uclibc/libgcc
Configuring in i686-pc-linux-uclibc/libgcc
configure: creating cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-uclibc
checking for i686-pc-linux-uclibc-ar... /home/lake/lfs/clfs/clfs-x86/cross-tools/i686-pc-linux-uclibc/bin/ar
checking for i686-pc-linux-uclibc-lipo... i686-pc-linux-uclibc-lipo
checking for i686-pc-linux-uclibc-nm... /home/lake/lfs/clfs/CLFS-Embedded-SVN-0.0.1-package/gcc-build2/./gcc/nm
checking for i686-pc-linux-uclibc-ranlib... /home/lake/lfs/clfs/clfs-x86/cross-tools/i686-pc-linux-uclibc/bin/ranlib
checking for i686-pc-linux-uclibc-strip... /home/lake/lfs/clfs/clfs-x86/cross-tools/i686-pc-linux-uclibc/bin/strip
checking whether ln -s works... yes
checking for i686-pc-linux-uclibc-gcc... /home/lake/lfs/clfs/CLFS-Embedded-SVN-0.0.1-package/gcc-build2/./gcc/xgcc -B/home/lake/lfs/clfs/CLFS-Embedded-SVN-0.0.1-package/gcc-build2/./gcc/ -B/home/lake/lfs/clfs/clfs-x86/cross-tools/i686-pc-linux-uclibc/bin/ -B/home/lake/lfs/clfs/clfs-x86/cross-tools/i686-pc-linux-uclibc/lib/ -isystem /home/lake/lfs/clfs/clfs-x86/cross-tools/i686-pc-linux-uclibc/include -isystem /home/lake/lfs/clfs/clfs-x86/cross-tools/i686-pc-linux-uclibc/sys-include
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/home/lake/lfs/clfs/CLFS-Embedded-SVN-0.0.1-package/gcc-build2'
make: *** [all] Error 2
lake:~/lfs/clfs/CLFS-Embedded-SVN-0.0.1-package/gcc-build2$ |
|