LinuxSir.cn,穿越时空的Linuxsir!

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

第一次装LFS,结果第一个软件包都装不上

[复制链接]
发表于 2006-6-24 21:38:22 | 显示全部楼层 |阅读模式
安装第一个软件binutils出错,看起来似乎是源代码问题,不知道如何解决,给出的错误信息 (最后若干行)如下

make[1]: Entering directory `/mnt/lfs/sources/binutils-build/etc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/etc'
make[1]: Entering directory `/mnt/lfs/sources/binutils-build/gas'
make  all-recursive
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/gas'
Making all in doc
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/gas/doc'
rm -f asconfig.texi
ln -s ../../../binutils-2.15.91.0.2/gas/doc/all.texi ./asconfig.texi >/dev/null 2>&1 \
  || ln ../../../binutils-2.15.91.0.2/gas/doc/all.texi ./asconfig.texi >/dev/null 2>&1 \
  || cp ../../../binutils-2.15.91.0.2/gas/doc/all.texi ./asconfig.texi
rm -f gasver.texi
echo '@set VERSION 2.15.91.0.2' > gasver.texi
touch as.1
perl ../../../binutils-2.15.91.0.2/gas/../etc/texi2pod.pl -Dman < ../../../binutils-2.15.91.0.2/gas/doc/as.texinfo > as.pod
(pod2man --center="GNU Development Tools" --release="binutils-2.15.91.0.2" --section=1 as.pod | \
        sed -e '/^.if n .na/d' > as.1.T$$ && \
        mv -f as.1.T$$ as.1) || \
        (rm -f as.1.T$$ && exit 1)
rm -f as.pod
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/gas/doc'
Making all in po
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/gas/po'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/gas/po'
make[3]: Entering directory `/mnt/lfs/sources/binutils-build/gas'
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.15.91.0.2/gas -I. -D_GNU_SOURCE -I. -I../../binutils-2.15.91.0.2/gas -I../bfd -I../../binutils-2.15.91.0.2/gas/config -I../../binutils-2.15.91.0.2/gas/../include -I../../binutils-2.15.91.0.2/gas/.. -I../../binutils-2.15.91.0.2/gas/../bfd -I../../binutils-2.15.91.0.2/gas/../intl -I../intl -DLOCALEDIR="\"/tools/share/locale\""   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2  -c ../../binutils-2.15.91.0.2/gas/app.c
In file included from ./targ-cpu.h:1,
                 from ../../binutils-2.15.91.0.2/gas/config/obj-elf.h:42,
                 from ./obj-format.h:1,
                 from ../../binutils-2.15.91.0.2/gas/config/te-linux.h:4,
                 from ./targ-env.h:1,
                 from ../../binutils-2.15.91.0.2/gas/as.h:629,
                 from ../../binutils-2.15.91.0.2/gas/app.c:30:
../../binutils-2.15.91.0.2/gas/config/tc-i386.h:457: error: array type has incomplete element type
make[3]: *** [app.o] Error 1
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/gas'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/gas'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/gas'
make: *** [all-gas] Error 2
 楼主| 发表于 2006-6-24 21:41:43 | 显示全部楼层
config.log 信息如下

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:593: checking host system type
configure:614: checking target system type
configure:632: checking build system type
configure:687: checking for a BSD compatible install
configure:740: checking whether ln works
configure:764: checking whether ln -s works
configure:1788: checking for gcc
configure:1901: checking whether the C compiler (gcc  ) works
configure:1917: gcc -o conftest    conftest.c  1>&5
configure:1943: checking whether the C compiler (gcc  ) is a cross-compiler
configure:1948: checking whether we are using GNU C
configure:1957: gcc -E conftest.c
configure:1976: checking whether gcc accepts -g
configure:2043: checking for gnatbind
configure:2108: checking whether compiler driver understands Ada
configure:2141: checking how to compare bootstrapped objects
configure:2214: checking for correct version of gmp.h
configure:2227: gcc -c -g -O2   conftest.c 1>&5
configure:2217:17: error: gmp.h: No such file or directory
configure: In function 'main':
configure:2221: error: 'choke' undeclared (first use in this function)
configure:2221: error: (Each undeclared identifier is reported only once
configure:2221: error: for each function it appears in.)
configure:2221: error: syntax error before 'me'
configure: failed program was:
#line 2216 "configure"
#include "confdefs.h"
#include "gmp.h"
int main() {

#if __GNU_MP_VERSION < 3
choke me
#endif

; return 0; }
configure:2725: checking for bison
configure:2760: checking for bison
configure:2795: checking for gm4
configure:2795: checking for gnum4
configure:2795: checking for m4
configure:2830: checking for flex
configure:2865: checking for flex
configure:2900: checking for makeinfo
configure:3501: checking for i686-pc-linux-gnu-ar
configure:3534: checking for ar
configure:3573: checking for i686-pc-linux-gnu-as
configure:3606: checking for as
configure:3645: checking for i686-pc-linux-gnu-dlltool
configure:3678: checking for dlltool
configure:3717: checking for i686-pc-linux-gnu-ld
configure:3750: checking for ld
configure:3789: checking for i686-pc-linux-gnu-nm
configure:3822: checking for nm
configure:3861: checking for i686-pc-linux-gnu-ranlib
configure:3894: checking for ranlib
configure:3933: checking for i686-pc-linux-gnu-windres
configure:3966: checking for windres
configure:4005: checking for i686-pc-linux-gnu-objcopy
configure:4038: checking for objcopy
configure:4077: checking for i686-pc-linux-gnu-objdump
configure:4110: checking for objdump
configure:4156: checking for i686-pc-linux-gnu-ar
configure:4189: checking for ar
configure:4228: checking for i686-pc-linux-gnu-as
configure:4261: checking for as
configure:4300: checking for i686-pc-linux-gnu-dlltool
configure:4333: checking for dlltool
configure:4372: checking for i686-pc-linux-gnu-ld
configure:4405: checking for ld
configure:4444: checking for i686-pc-linux-gnu-nm
configure:4477: checking for nm
configure:4516: checking for i686-pc-linux-gnu-ranlib
configure:4549: checking for ranlib
configure:4588: checking for i686-pc-linux-gnu-windres
configure:4621: checking for windres
configure:4706: checking whether to enable maintainer-specific portions of Makefiles
configure:4753: checking if symbolic links between directories work
回复 支持 反对

使用道具 举报

发表于 2006-6-24 21:43:33 | 显示全部楼层
沒有看置頂。。。
回复 支持 反对

使用道具 举报

发表于 2006-6-25 00:27:25 | 显示全部楼层
又是 binutils-2.15.91.0.2 !!:beat :mad:
回复 支持 反对

使用道具 举报

发表于 2006-6-25 16:57:22 | 显示全部楼层
兄弟,多看论坛文章,我也是失败了N次才会装的.有时换个版本是个不错的方法.我就是换了个新版本才装上的.
回复 支持 反对

使用道具 举报

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

本版积分规则

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