gpt4 book ai didi

gcc - 生成coreutils时发生MinGW错误(Windows和Linux上均发生一致错误)-原因?

转载 作者:行者123 更新时间:2023-12-04 08:37:41 26 4
gpt4 key购买 nike

在未能找到各种Unix工具(例如xargs和whatnot)的最新独立二进制文件(this version很好,但需要外部DLL)后,我承担了自己进行编译的挑战。

...这是痛苦的。

最终,尽管如此,我还是成功地使用sedgrep
但是,当我尝试使用MinGW GCC构建coreutils时,总是在./configure的结尾出现此错误:

checking whether it is possible to resort to fread on /etc/mnttab... no
configure: error: could not determine how to read list of mounted file systems

有趣的是,这在我的Windows机器的MSYS环境中,在Ubuntu的MinGW上的 上均会发生。

当然,我可以手动从 configure中删除该支票并尝试继续,但是我敢肯定有些事情会像往常一样打破常规。

有谁知道这是什么原因以及如何解决?

最佳答案

是因为MinGW没有提供完整的POSIX或SunOS或LFH或FHS仿真。

甚至MSYS建立的coreutils is incomplete:

Not all tools from Coreutils are shipped with MSYS by default.



唯一基于Windows的POSIX仿真正式 supported by coreutils is Cygwin:

The hard work the Cygwin team has done to port GNU Project software to MS-Windows is greatly admired. However the GNU team generally uses GNU Operating Systems and do not have access to Cygwin systems or MS-Windows systems which means that most of us can't help you. It would be most appreciated if you would make your bug report directly to the Cygwin folks. They are the experts and best suited to handle your problem.



关于 configure中的错误:

checking whether it is possible to resort to fread on /etc/mnttab... no
configure: error: could not determine how to read list of mounted file
systems

MSYS中没有真正的挂载(只有一个非常特定的挂载),因此在默认位置( /etc/mnttab)没有挂载的fs列表。

关于gcc - 生成coreutils时发生MinGW错误(Windows和Linux上均发生一致错误)-原因?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7039728/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com