我正在开发一个 autotools 项目。它在 CI 上运行良好,但是当我在工作电脑上运行它时,运行 make 时会卡住
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking the maximum length of command line arguments...
我在本地运行的工作流程位于这里
我还调查了一些旧资源,发现这。然而,这毫无用处,
使用以下工具:GCC:
$ gcc --version
gcc (GCC) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
自动配置:
$ autoconf --version
autoconf (GNU Autoconf) 2.71
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>, <https://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by David J. MacKenzie and Akim Demaille.
答案1
我的解决方法是使用 Process Explorer(以前的 SysInternals 工具)识别正在检查的 sh.exe 并将其终止。编译(或配置)过程继续。
我读到过这是 CMake xx 版本中的一个错误,并且已经得到更正,但对我来说,它是 MSYS2 的问题(准确地说是在“MSYS2 MinGW x64”提示下)。
答案2
我通过运行解决了这个问题:
autoupdate
autoreconf -i
autoconf
automake
祈祷它还能用