if_else 发表于 2013-8-5 17:31:29

[ 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

不知道这个错误是哪里引发的,是否致命。。。


---

zy_sunshine 发表于 2013-8-5 17:38:43

看log 输出大体是两类
Skipping test: not a native Windows system
Skipping test: insufficient ACL support
这两个都不是重要的错误,应该没问题。

想具体知道问题可以看看check脚本里面怎么写的

jiangtao9999 发表于 2013-8-5 18:28:46

FAIL: test-getlogin (exit: 134)
===============================

test-getlogin.c:69: assertion failed

查一下这个 test 到底是干啥用吧……

if_else 发表于 2013-8-5 18:45:38

---

/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行比较当前用户名有问题,现在系统用户还没有创建呢。是不是这个问题

---

jiangtao9999 发表于 2013-8-5 19:03:12

那很有可能。
最开始我建议还是先别 make check 。
make check 至少要等到启动到新环境后。

if_else 发表于 2013-8-6 09:42:53

@jiangtao9999 我现在是在 chroot 的环境,在一个个的安装软件包。不知道额这算不算新环境

jiangtao9999 发表于 2013-8-6 10:59:39

chroot 不一定环境全。
页: [1]
查看完整版本: [ LFS ] 6.27. Coreutils-8.21 编译 check 失败