LinuxSir.cn,穿越时空的Linuxsir!

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

做到6章构建lfs系统的时候.在编译完Re-adjusting the Toolchain 后,做binutils报错.

[复制链接]
发表于 2005-8-11 09:46:38 | 显示全部楼层 |阅读模式
请帮忙分析分析.我已经chroot了.而且显示一切正常.
在做了重建工具链后.通过下面的方法检测, echo 'main(){}' > dummy.c
cc dummy.c
readelf -l a.out | grep ': /lib'
If everything is working correctly, there should be no errors, and the output of the last command will be (allowing for platform-specific differences in dynamic linker name):
结果为
[Requesting program interpreter: /lib/ld-linux.so.2]
显然这是没问题的.
但当我为编译下一个
Installation of Binutils 的时候.为了确认PTY我按照BOOK中说的.
Verify that the PTYs are working properly inside the chroot environment. Check that everything is set up correctly by performing a simple test:
expect -c "spawn ls"
但显示不是spawn ls
而是:
The system has no more ptys.  
Ask your system administrator to create more.
请问: 我改在哪些地方改正.如果要重编译。应该从哪步进行。是不是重做构建LFS系统这一章就可以了。谢谢大家。
发表于 2005-8-11 11:58:14 | 显示全部楼层
你看的是第几版的LFS?
我没有碰到过这样的问题,但是 6.0版本的LFS上提到过你说的错误,也给出了原因。但是没有给出解决办法。

原因就是:the host does not have its PTYs set up properly。
原文如下:
在Re-installation of GCC (第二次编译GCC 3.4.1) 里 6.0的英文版里有这样一段话:

The tools required to test GCC and Binutils—Tcl, Expect and DejaGNU—are installed now. GCC and Binutils can now be rebuilt, linking them against the new Glibc and testing them properly (if running the test suites in this chapter).

Please note that these test suites are highly dependent on properly functioning PTYs which are provided by the host. PTYs are most commonly implemented via the devpts file system.

Check to see if the host system is set up correctly in this regard by performing a quick test:

这个quick test 也就是你敲的命令:expect 。。。

The response might be:

The system has no more ptys.  
Ask your system administrator to create more.


If the above message is received, the host does not have its PTYs set up properly. In this case, there is no point in running the test suites for GCC and Binutils until this issue is resolved. Please consult the LFS Wiki at   http://wiki.linuxfromscratch.org/   for more information on how to get PTYs working.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-11 12:36:49 | 显示全部楼层
我的就是LFS6.0版本
你说的就是BOOK上的。关键就是没有解决办法。
回复 支持 反对

使用道具 举报

发表于 2005-8-11 14:27:57 | 显示全部楼层
just ignore the test suite if you have some experience or just want to  try  LFS,im now in LFS6.0, just ignore test suite for time saving.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-11 14:52:12 | 显示全部楼层
Post by Sakur_Fre
just ignore the test suite if you have some experience or just want to  try  LFS,im now in LFS6.0, just ignore test suite for time saving.


right, 我除了一次做了test suite。其它一律跳过了的。但是在build LFS system的时候。BOOK说了不能跳过make check,但现在问题不是这个。而是做binutils 时候。expect -c "spawn ls"显示报错。
回复 支持 反对

使用道具 举报

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

本版积分规则

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