LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: tianzhushan

求助, 第五章第一遍 gcc-3.4.3出错了.

[复制链接]
发表于 2006-5-20 16:46:49 | 显示全部楼层
不好意思借一下位置,
宿主系统: BabyLinuxUE-no-X-0.1
lfs-6.1.3
安装binutils-2.16.1成功
安装第一遍 gcc-3.4.3 时候出错了.

出错步骤为:
../gcc-3.4.3/configure --prefix=/tools \
--libexecdir=/tools/lib --with-local-prefix=/tools \
--disable-nls --enable-shared --enable-languages=c

出错提示
No space left on device
回复 支持 反对

使用道具 举报

发表于 2006-5-20 19:10:22 | 显示全部楼层
to linyuzong:
空间不够了。
回复 支持 反对

使用道具 举报

发表于 2006-5-22 15:59:13 | 显示全部楼层
Post by tianzhushan
我升级到FC5.0以后,在编译binutils的时候, 就出现了这个错误。
然后, 我比较了一下
FC5.0上面的 libc.so和
我的另外的机子 RH9.0上面的 libc.so
发现
#cat libc.so
/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf32-i386)
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a  AS_NEEDED ( /lib/ld-linux.so.2 ) )

而RH9.0上面的是
/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf32-i386)
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a  )

所以,我就把不一样的地方删了, 然后就成功了。

FC5 编译binutils-2.15.94.0.2.2的时候出错:
gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -o ld-new ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o eelf_i386.o ei386linux.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -ldl
/tools/bin/ld:/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../libc.so: file format not recognized; treating as linker script
/tools/bin/ld:/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../libc.so:5: syntax error
collect2: ld returned 1 exit status
make[2]: *** [ld-new] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/binutils-builds/ld'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/binutils-builds/ld'
make: *** [all-recursive-am] Error 2
make: Leaving directory `/mnt/lfs/sources/binutils-builds/ld'
按照你的方法确实编译通过了
回复 支持 反对

使用道具 举报

发表于 2006-5-22 16:49:23 | 显示全部楼层
我都有裝了FC5
在安裝binutils Pass1  後
make -C ld clean
make -C ld LIB_PATH=/tools/lib
加多這句有沒事
cp -v ld/ld-new /tools/bin
不過compile glibc pass 1時都是不行..............~~~~~
回复 支持 反对

使用道具 举报

发表于 2006-5-22 22:15:10 | 显示全部楼层
用 livecd+binutils-2.16.1 可以不?

读一下置顶帖子!
回复 支持 反对

使用道具 举报

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

本版积分规则

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