LinuxSir.cn,穿越时空的Linuxsir!

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

lfs安装第一步出错

[复制链接]
发表于 2005-4-14 18:36:08 | 显示全部楼层 |阅读模式
在安装binutils执行到 make LDFLAGS="-all-static" 这一步时
出现错误:

/bin/sh ./libtool --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -all-static -o libopcodes.la -rpath ~/tools//lib -release 2.14  dis-buf.lo disassemble.lo i386-dis.lo
libtool: link: only absolute run-paths are allowed
make[3]: *** [libopcodes.la] Error 1
make[3]: Leaving directory `/usr/local/LFS/lfs-packages/binutils-build/opcodes'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/LFS/lfs-packages/binutils-build/opcodes'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/usr/local/LFS/lfs-packages/binutils-build/opcodes'
make: *** [all-opcodes] Error 2

怎么解决呢??
libtool需要绝对路径??
发表于 2005-4-15 03:05:42 | 显示全部楼层
It looks you have not followed the steps in the Chapter 4 of the LFS handbook.  You must properly set up your build environment before proceed any building in Chapter 5.
回复 支持 反对

使用道具 举报

发表于 2005-4-16 22:22:33 | 显示全部楼层

同问

同问同问
回复 支持 反对

使用道具 举报

发表于 2005-4-17 12:46:56 | 显示全部楼层
i have some trouble with compiling my binutils,too.

here is the error message

../../binutils-2.15.91.0.2/binutils/ar.c:148: undefined reference to `yyparse'
collect2: ld returned 1 exit status
make[3]: *** [ar] Error 1
make[3]: Leaving directory `/mnt/LFS/sources/binutils-build/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/LFS/sources/binutils-build/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/mnt/LFS/sources/binutils-build/binutils'
make: *** [all-binutils] Error 2
回复 支持 反对

使用道具 举报

发表于 2005-4-17 12:50:21 | 显示全部楼层
我也遇到相同的问题,sunway你进行到哪了?
看你在学校论坛上的帖子,好像你已经把binutils装上了?
回复 支持 反对

使用道具 举报

发表于 2005-4-17 13:01:26 | 显示全部楼层
6.11了,呵呵
回复 支持 反对

使用道具 举报

发表于 2005-4-17 13:04:56 | 显示全部楼层
教训啊,新手要严格的按照文档里的做,不要自作聪明,以前某个某个不重要,可以自作主张。以前出错的一个原因是我虽然新加了一个lfs用户,但为了方便直接用root编译的,但这使lfs的环境变量的设置形同虚设。
回复 支持 反对

使用道具 举报

发表于 2005-4-17 13:04:57 | 显示全部楼层
Post by sunway_bupt
6.11了,呵呵

什么叫6.11?
回复 支持 反对

使用道具 举报

发表于 2005-4-17 13:05:50 | 显示全部楼层
第六章, 6.11. Glibc-2.3.4-20040701
回复 支持 反对

使用道具 举报

发表于 2005-4-17 13:07:56 | 显示全部楼层
我遇到的问题和robustboy是一样的
是用lfs用户编译的
难道是少装了什么东西?我为了省空间,host是用Debian-net-install,只装了gcc,make
回复 支持 反对

使用道具 举报

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

本版积分规则

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