LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1159|回复: 4

CLFS embedded问题 Gcc第二遍失败

[复制链接]
发表于 2009-6-26 10:57:38 | 显示全部楼层 |阅读模式
这个问题困扰我很久了 一直想有一个基于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$
 楼主| 发表于 2009-6-26 11:06:13 | 显示全部楼层
lake:~/lfs/clfs$ echo $CLFS_HOST  $CLFS_TARGET
i686-pc-linux-gnu i686-pc-linux-uclibc
lake:~/lfs/clfs$ echo  $CLFS_ARCH $CLFS_ENDIAN
i386 LITTLE
lake:~/lfs/clfs$ echo $PATH
/home/lake/lfs/clfs/clfs-x86/cross-tools/bin:/bin:/usr/bin
lake:~/lfs/clfs$
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-6-26 11:33:12 | 显示全部楼层
lake:~/lfs/clfs/CLFS-Embedded-SVN-0.0.1-package/gcc-build2$cat  i686-pc-linux-uclibc/libgcc/config.log


.........
configure:2379: $? = 1
83 configure:2398: /home/lake/lfs/clfs/CLFS-Embedded-SVN-0.0.1-package/gcc-b    uild2/./gcc/xgcc -B/home/lake/lfs/clfs/CLFS-Embedded-SVN-0.0.1-package/gc    c-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-ucli    bc/lib/ -isystem /home/lake/lfs/clfs/clfs-x86/cross-tools/i686-pc-linux-u    clibc/include -isystem /home/lake/lfs/clfs/clfs-x86/cross-tools/i686-pc-l    inux-uclibc/sys-include -o conftest -O2 -g -g -O2     conftest.c  >&5
84 /home/lake/lfs/clfs/CLFS-Embedded-SVN-0.0.1-package/gcc-build2/./gcc/cc1:     error while loading shared libraries: libmpfr.so.1: cannot open shared o    bject file: No such file or directory
85 configure:2401: $? = 1
86 configure:2567: checking for suffix of object files
87 configure:2588: /home/lake/lfs/clfs/CLFS-Embedded-SVN-0.0.1-package/gcc-b    uild2/./gcc/xgcc -B/home/lake/lfs/clfs/CLFS-Embedded-SVN-0.0.1-package/gc    c-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-ucli    bc/lib/ -isystem /home/lake/lfs/clfs/clfs-x86/cross-tools/i686-pc-linux-u    clibc/include -isystem /home/lake/lfs/clfs/clfs-x86/cross-tools/i686-pc-l    inux-uclibc/sys-include -c -O2 -g -g -O2    conftest.c >&5
88 /home/lake/lfs/clfs/CLFS-Embedded-SVN-0.0.1-package/gcc-build2/./gcc/cc1:     error while loading shared libraries: libmpfr.so.1: cannot open shared o    bject file: No such file or directory


.............


configure:2605: error: cannot compute suffix of object files: cannot comp    ile
108 See `config.log' for more details.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-6-26 11:40:20 | 显示全部楼层
lake:~/lfs/clfs/clfs-x86$ find cross-tools  -name lib*.so
cross-tools/lib/libgmp.so
cross-tools/lib/libmp.so
cross-tools/lib/libmpfr.so
........
lake:~/lfs/clfs/clfs-x86$ ls -l /  |grep cross
lrwxrwxrwx  1 root root    40 Jun 12 21:52 cross-tools -> /home/lake/lfs/clfs/clfs-x86/cross-tools


奇怪

../gcc-4.3.3/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=/cross-tools --with-gmp=/cross-tools
指定了 --with-mpfr=/cross-tools --with-gmp=/cross-tools 为什么还是找不到呢??
回复 支持 反对

使用道具 举报

发表于 2009-6-29 15:43:25 | 显示全部楼层
兄弟,关于clfs一直是开发状态,

经朋友介绍,我使用的是 buildroot来构建系统。这样要稍微简单一些。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表