LinuxSir.cn,穿越时空的Linuxsir!

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

[晕]第一个包就编不过……

[复制链接]
发表于 2005-9-7 13:23:54 | 显示全部楼层 |阅读模式
第一个包binutils就make出错……

不过失败是成功之母,希望大家能帮我找到处理类似错误的方法,谢谢先啦!

configure没有问题,make出错信息:

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
发表于 2005-9-7 15:58:30 | 显示全部楼层
主系统,LFS版本 都不说,怎么判断呢。。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-7 16:38:01 | 显示全部楼层
哦,host是FC4只装了开发包,LFS是6.1的

还有,我是在VMware上运行的,有没有影响呀?
没办法,在公司不能只用linux呀
回复 支持 反对

使用道具 举报

发表于 2005-9-7 17:35:45 | 显示全部楼层
没用过FC4,,你试试 live CD?

我用LiveCD很好,没问题。

用过FC4 的同志,说说?:)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-8 09:18:07 | 显示全部楼层
会不会和GCC版本有关,FC4的GCC是4.0版的,会不会太高了……
回复 支持 反对

使用道具 举报

发表于 2005-9-8 11:27:56 | 显示全部楼层
FC4的GCC版本是4.0以上的。glibc也是2.3.5的。所以不建议使用fc4做host来编译lfs6.1

使用fc3来编译lfs6.1没有任何问题。
回复 支持 反对

使用道具 举报

发表于 2005-9-9 10:50:23 | 显示全部楼层
我也遇到同样的问题,不过我查看了一下输出,然后安装了 bison  flex这两个软件就可以编译过去了,可以试试,good luck!
最后在小声问一下,lfs6.0的文档怎么没有了,我下载的是6.0的包,但文档只能找到6.1的,虽然可以用,但有那么点细微的差别
回复 支持 反对

使用道具 举报

发表于 2005-9-9 11:05:48 | 显示全部楼层
[php]http://archive.linuxfromscratch.org/lfs-museum/6.0/[/php]
回复 支持 反对

使用道具 举报

发表于 2005-9-9 11:22:40 | 显示全部楼层
找到了,谢谢斑竹
回复 支持 反对

使用道具 举报

发表于 2005-9-11 16:13:32 | 显示全部楼层
我也第一个就编译不过
/bin/sh ./libtool --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2  -all-static -o ar arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a   -ldl
gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -static -o ar arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -ldl
ar.o: In function `main':
../../binutils-2.15.91.0.2/binutils/ar.c:342: multiple definition of `main'
arlex.o:/home/lfs/binutils-build/binutils/arlex.c:1: first defined here
/usr/bin/ld: Warning: size of symbol `main' changed from 15 in arlex.o to 1899 in ar.o
bucomm.o: In function `make_tempname':
../../binutils-2.15.91.0.2/binutils/bucomm.c:425: warning: the use of `mktemp' is dangerous, better use `mkstemp'
arparse.o: In function `yyparse':
/home/lfs/binutils-build/binutils/y.tab.c:1039: undefined reference to `yylex'
arparse.o: In function `yyerror':
/home/lfs/binutils-build/binutils/../../binutils-2.15.91.0.2/binutils/arparse.y:201: undefined reference to `linenumber'
collect2: ld returned 1 exit status
make[3]: *** [ar] Error 1
make[3]: Leaving directory `/home/lfs/binutils-build/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/lfs/binutils-build/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/home/lfs/binutils-build/binutils'
make: *** [all-binutils] Error 2

lfs6.0
回复 支持 反对

使用道具 举报

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

本版积分规则

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