[ LFS ] 6.27. Coreutils-8.21 编译 check 失败
---6.27. Coreutils-8.21
http://www.linuxfromscratch.org/lfs/view/stable/chapter06/coreutils.html
安装 coreutils make check 出错了:
Skipping test: not a native Windows system
======================================
1 of 296 tests failed
(21 tests were not run)
See gnulib-tests/test-suite.log
Please report to [email protected]
======================================
make: *** Error 1
make: Leaving directory `/sources/coreutils-8.21/gnulib-tests'
make: *** Error 2
make: Leaving directory `/sources/coreutils-8.21/gnulib-tests'
make: *** Error 2
make: Leaving directory `/sources/coreutils-8.21/gnulib-tests'
make: *** Error 1
make: Leaving directory `/sources/coreutils-8.21/gnulib-tests'
make: *** Error 2
make: Leaving directory `/sources/coreutils-8.21/gnulib-tests'
make: *** Error 1
make: Leaving directory `/sources/coreutils-8.21'
make: *** Error 2
/mnt/lfs/sources/coreutils-8.21/gnulib-tests/test-suite.log 日志文件在这里:
http://ix.io/74r
不知道这个错误是哪里引发的,是否致命。。。
--- 看log 输出大体是两类
Skipping test: not a native Windows system
Skipping test: insufficient ACL support
这两个都不是重要的错误,应该没问题。
想具体知道问题可以看看check脚本里面怎么写的 FAIL: test-getlogin (exit: 134)
===============================
test-getlogin.c:69: assertion failed
查一下这个 test 到底是干啥用吧…… ---
/mnt/lfs/sources/coreutils-8.21/gnulib-tests/test-getlogin.c
http://ix.io/74t
61 /* Compare against the value from the environment.*/
62 #if !((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__)
63 /* Unix platform */
64 {
65 const char *name = getenv ("LOGNAME");
66 if (name == NULL || name == '\0')
67 name = getenv ("USER");
68 if (name != NULL && name != '\0')
69 ASSERT (strcmp (buf, name) == 0);
70 }
69行比较当前用户名有问题,现在系统用户还没有创建呢。是不是这个问题
--- 那很有可能。
最开始我建议还是先别 make check 。
make check 至少要等到启动到新环境后。 @jiangtao9999 我现在是在 chroot 的环境,在一个个的安装软件包。不知道额这算不算新环境 chroot 不一定环境全。
页:
[1]