LinuxSir.cn,穿越时空的Linuxsir!

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

第六章出现的问题,版主和高人救命啊

[复制链接]
发表于 2006-9-12 21:12:36 | 显示全部楼层 |阅读模式
root:/sources/glibc-build# grep Error glibc-check-log
make[2]: [/sources/glibc-build/posix/annexc.out] Error 1 (ignored)
make[2]: *** [/sources/glibc-build/nptl/tst-eintr2.out] Error 1
make[2]: *** [/sources/glibc-build/nptl/tst-eintr3.out] Error 1
make[2]: *** [/sources/glibc-build/nptl/tst-eintr5.out] Error 1
make[2]: *** [/sources/glibc-build/nptl/tst-tsd5.out] Error 1
make[2]: *** [/sources/glibc-build/nptl/tst-exit2.out] Error 1
make[2]: *** [/sources/glibc-build/nptl/tst-exit3.out] Error 1
make[1]: *** [nptl/tests] Error 2
make: *** [check] Error 2

root:/sources/glibc-build#make install
Your new glibc installation seems to be ok.
说明make install 通过

接下来,由于第一遍做时,删了binutils的两个目录,按斑主的补救方法在make后出现如下错误:
make[3]: *** [arlex.o] Error 1
make[3]: Leaving directory `/sources/binutils-build/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/sources/binutils-build/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/sources/binutils-build/binutils'
make: *** [all-binutils] Error 2

不管它,继续
却出现如下错误:
root:/sources/binutils-build# make -C ld clean
make: *** ld: No such file or directory.  Stop.
root:/sources/binutils-build# make -C ld LIB_PATH=/usr/lib:/lib
make: *** ld: No such file or directory.  Stop.
root:/sources/binutils-build# make -C ld INSTALL=/tools/bin/install install
make: *** ld: No such file or directory.  Stop.

继续下去
测试工具链是否被调整成功的结果是正确的

再继续,执行 make tooldir=/usr 时出现如下错误
make[3]: *** [arlex.o] Error 1
make[3]: Leaving directory `/sources/binutils-build/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/sources/binutils-build/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/sources/binutils-build/binutils'
make: *** [all-binutils] Error 2


不管它,执行 make check 出现如下错误
=== binutils Summary ===

# of expected passes            33
make[3]: Leaving directory `/sources/binutils-build/binutils'
make[2]: Leaving directory `/sources/binutils-build/binutils'
make[1]: Leaving directory `/sources/binutils-build/binutils'
/bin/sh: line 0: cd: etc: No such file or directory
make: *** [check-etc] Error 1

继续执行make tooldir=/usr install 出现如下错误
make[2]: *** [arlex.o] Error 1
make[2]: Leaving directory `/sources/binutils-build/binutils'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/sources/binutils-build/binutils'
make: *** [install-binutils] Error 2

继续下去,对gcc进行make时会出现如下错误:
FAIL: gcc.c-torture/execute/va-arg-25.c execution,  -Os

make -k check时出现如下错误:
make[1]: *** [check-recursive] Error 1
make[1]: Target `check' not remade because of errors.
make[1]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3'
make: *** [check-target-libstdc++-v3] Error 2
......
make: Target `check' not remade because of errors.

测试coreutils时
root:/proc/sys# make NON_ROOT_USERNAME=dummy check-root
make: *** No rule to make target `check-root'.  Stop.

root:/proc/sys# src/su dummy -c "make RUN_EXPENSIVE_TESTS=yes check"
bash: src/su: No such file or directory

在安装vim时,执行 make test命令,结果如下:
Test results:
test37 FAILED
test47 FAILED

在装gettext时,make check
All 231 tests passed
(18 tests were not run)

Bash-3.0时
I have no name!...#

libtool-1.5.14
make check出现如下错误:
make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory `/sources/libtool-1.5.14/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/sources/libtool-1.5.14/tests'
make: *** [check-recursive] Error 1

继续下去
在作bash-3.0最后一步时
exec /bin/bash --login +h
会出现如下提示符:
I have no name!:/sources#

不管它仍然继续,到了
Kbd-1.12,执行make install时出现如下问题:
install: invalid user `root'
make[1]: *** [install] Error 1
make[1]: Leaving directory `/sources/kbd-1.12/src'
make: *** [install-progs] Error 1
感觉不能再继续下去了,kbd-1.12没有被安装

怎么办?版主及各位高人救命啊!!!
发表于 2006-9-13 00:14:30 | 显示全部楼层
别,别……别再继续了……
你别啥都“不管它,继续”
make check有错可以继续试试,make出错就别继续了,找到问题通过了再继续。

错误信息太少目前无法判断你的问题。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-13 10:04:10 | 显示全部楼层
bash-3.0出现提示符的问题,查看/etc/passwd发现是空的,添加root用户后,kbd-1.12就可以make install了,之后一切正常,直到第8章编译内核时,出现如下错误:
root:/sources/linux-2.6.11.12# make menuconfig
  HOSTCC  scripts/basic/fixdep
gcc: installation problem, cannot exec `as': No such file or directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
是不是gcc出了问题,怎么办啊?
回复 支持 反对

使用道具 举报

发表于 2006-9-13 12:48:59 | 显示全部楼层
Before you fixed the problems, you should not proceed any further.  Otherwise, you simply waste your time!

Look at the situation above, I would suggest you trash everything and start from the very beginning.  Read carefully the LFS handbook and then proceed again.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-13 13:04:20 | 显示全部楼层
I'v tried three times from the beginning. The result is the same! Who can tell me what can i do?
回复 支持 反对

使用道具 举报

发表于 2006-9-14 05:11:32 | 显示全部楼层
大家都没碰到问题,就你碰到了这些问题,原因也许有几个:
1。你用的 LiveCD 有问题。
2。你改表了操作顺序,步骤等。
3。你机器有问题,比如内存,CPU等,尤其是CPU 超频。
回复 支持 反对

使用道具 举报

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

本版积分规则

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