+ -
当前位置:首页 → 问答吧 → 安装 Binutils-2.14 - 第一遍 出错,寻求帮助……Linux From Scratch: 版本 5.0

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

时间:2009-09-11

来源:互联网

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.
补充:所有的制作过程按照手册进行的

作者: tt0928   发布时间: 2009-09-11

主系统是啥?

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

作者: d00m3d   发布时间: 2009-09-12

弱弱的问一句:主系统是什么意思啊?怎么看主系统信息?谢谢!

作者: sinojelly   发布时间: 2009-09-12

自己回答一下,主系统应该就是编译LFS工具链的系统吧?一般可能就是liveCD启动的那个系统。

作者: sinojelly   发布时间: 2009-09-13

主系统是Ubuntu8.04

作者: tt0928   发布时间: 2009-09-16

果然,宿主系统太新,但 LFS 版本太旧

换个新版来做吧!

作者: d00m3d   发布时间: 2009-09-16

LZ为什么装5.0?

作者: swordhui   发布时间: 2009-09-16

我换了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的

作者: tt0928   发布时间: 2009-09-18

6.0 还是不够新,起码用 6.3 以上可行性才较大

作者: d00m3d   发布时间: 2009-09-18