LinuxSir.cn,穿越时空的Linuxsir!

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

安装 Binutils-2.14 - 第一遍 出错,寻求帮助……Linux From Scratch: 版本 5.0

[复制链接]
发表于 2009-9-11 07:50:24 | 显示全部楼层 |阅读模式
make LDFLAGS="-all-static"的时候,最后遇到:
In file included from ./targ-cpu.h:1,
                 from ../../binutils-2.14/gas/config/obj-elf.h:42,
                 from ./obj-format.h:1,
                 from ../../binutils-2.14/gas/config/te-linux.h:4,
                 from ./targ-env.h:1,
                 from ../../binutils-2.14/gas/as.h:616,
                 from ../../binutils-2.14/gas/app.c:30:
../../binutils-2.14/gas/config/tc-i386.h:516: error: array type has incomplete element type
make[2]: *** [app.o] Error 1
make[2]: Leaving directory `/mnt/lfs/binutils-build/gas'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/mnt/lfs/binutils-build/gas'
make: *** [install-gas] Error 2
lfs@derek-laptop:/mnt/lfs/binutils-build$ make -C ld clean
make: *** ld: No such file or directory.  Stop.
lfs@derek-laptop:/mnt/lfs/binutils-build$ make -C ld clean
make: *** ld: No such file or directory.  Stop.
补充:所有的制作过程按照手册进行的
发表于 2009-9-12 10:57:04 | 显示全部楼层
主系统是啥?

太老的版本就不要用了,如主系统太新,编译老旧软件多数会有问题!
回复 支持 反对

使用道具 举报

发表于 2009-9-12 11:21:35 | 显示全部楼层
弱弱的问一句:主系统是什么意思啊?怎么看主系统信息?谢谢!
回复 支持 反对

使用道具 举报

发表于 2009-9-12 23:36:14 | 显示全部楼层
自己回答一下,主系统应该就是编译LFS工具链的系统吧?一般可能就是liveCD启动的那个系统。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-9-16 18:08:05 | 显示全部楼层
主系统是Ubuntu8.04
回复 支持 反对

使用道具 举报

发表于 2009-9-16 19:10:51 | 显示全部楼层
果然,宿主系统太新,但 LFS 版本太旧

换个新版来做吧!
回复 支持 反对

使用道具 举报

发表于 2009-9-16 19:11:36 | 显示全部楼层
LZ为什么装5.0?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-9-18 08:24:11 | 显示全部楼层
我换了6.0版的,在configure glibc-2.3.4-20040701的时候出错了
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gcc... gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether /tools/bin/as is GNU as... yes
checking whether /tools/bin/ld is GNU ld... yes
checking for /tools/bin/as... /tools/bin/as
checking version of /tools/bin/as... 2.16.1, ok
checking for /tools/bin/ld... /tools/bin/ld
checking version of /tools/bin/ld... 2.16.1, ok
checking for pwd... /bin/pwd
checking for gcc... gcc -B/tools/bin/
checking version of gcc -B/tools/bin/... 4.2.4, bad
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 3.81, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.17, ok
checking for makeinfo... no
checking for sed... sed
checking version of sed... 4.1.5, ok
checking for autoconf... autoconf
checking whether autoconf works... yes
configure: error:
*** These critical programs are missing or too old: gcc
*** Check the INSTALL file for required versions.
但是我的gcc是4.2的
回复 支持 反对

使用道具 举报

发表于 2009-9-18 12:38:59 | 显示全部楼层
6.0 还是不够新,起码用 6.3 以上可行性才较大
回复 支持 反对

使用道具 举报

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

本版积分规则

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