QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3535|回复: 6

[ LFS ] 6.27. Coreutils-8.21 编译 check 失败

[复制链接]
发表于 2013-8-5 17:31:29 | 显示全部楼层 |阅读模式
---


6.27. Coreutils-8.21
http://www.linuxfromscratch.org/ ... er06/coreutils.html

安装 coreutils make check 出错了:

[code]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[6]: *** [test-suite.log] Error 1
make[6]: Leaving directory `/sources/coreutils-8.21/gnulib-tests'
make[5]: *** [check-TESTS] Error 2
make[5]: Leaving directory `/sources/coreutils-8.21/gnulib-tests'
make[4]: *** [check-am] Error 2
make[4]: Leaving directory `/sources/coreutils-8.21/gnulib-tests'
make[3]: *** [check-recursive] Error 1
make[3]: Leaving directory `/sources/coreutils-8.21/gnulib-tests'
make[2]: *** [check] Error 2
make[2]: Leaving directory `/sources/coreutils-8.21/gnulib-tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/sources/coreutils-8.21'
make: *** [check] Error 2

/mnt/lfs/sources/coreutils-8.21/gnulib-tests/test-suite.log 日志文件在这里:
http://ix.io/74r

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


---
发表于 2013-8-5 17:38:43 | 显示全部楼层
看log 输出大体是两类
Skipping test: not a native Windows system
Skipping test: insufficient ACL support
这两个都不是重要的错误,应该没问题。

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

使用道具 举报

发表于 2013-8-5 18:28:46 | 显示全部楼层
FAIL: test-getlogin (exit: 134)
===============================

test-getlogin.c:69: assertion failed

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

使用道具 举报

 楼主| 发表于 2013-8-5 18:45:38 | 显示全部楼层
---

/mnt/lfs/sources/coreutils-8.21/gnulib-tests/test-getlogin.c
http://ix.io/74t

  1. 61   /* Compare against the value from the environment.  */
  2. 62 #if !((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__)
  3. 63   /* Unix platform */
  4. 64   {
  5. 65     const char *name = getenv ("LOGNAME");
  6. 66     if (name == NULL || name[0] == '\0')
  7. 67       name = getenv ("USER");
  8. 68     if (name != NULL && name[0] != '\0')
  9. 69       ASSERT (strcmp (buf, name) == 0);
  10. 70   }
复制代码
69行比较当前用户名有问题,现在系统用户还没有创建呢。是不是这个问题

---
回复

使用道具 举报

发表于 2013-8-5 19:03:12 | 显示全部楼层
那很有可能。
最开始我建议还是先别 make check 。
make check 至少要等到启动到新环境后。
回复

使用道具 举报

 楼主| 发表于 2013-8-6 09:42:53 | 显示全部楼层
@jiangtao9999 我现在是在 chroot 的环境,在一个个的安装软件包。不知道额这算不算新环境
回复

使用道具 举报

发表于 2013-8-6 10:59:39 | 显示全部楼层
chroot 不一定环境全。
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-4-26 21:12 , Processed in 0.086807 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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