Repository navigation
autoconf #502
Description
Activity
I'm using autoconf 2.71 on macOS but I cannot reproduce this.
The error says:
configure: error: cannot find required auxiliary files: config.guess config.sub
config.guessandconfig.subare contained in..The manual of
autoconfsays:f AC_CONFIG_AUX_DIR is not given, the scripts are looked for in their standard locations. For mdate-sh, texinfo.tex, and ylwrap, the standard location is the source directory corresponding to the current Makefile.am. For the rest, the standard location is the first one of ., .., or ../.. (relative to the top source directory) that provides any one of the helper scripts. See Finding ‘configure’ Input in The Autoconf Manual.
I don't understand why
./config.guesscannot be found.Hmm I'll take a look this weekend.
@Mistuke Gentle ping
So the problem is that
$PATH_SEPARATOR=":"by default and cabal callsconfigureusing:sh "C:\/Users/tamar/source/repos/network/configure"Before this change in autoconf 2.70 this path would not have been split. Sadly though not what happens is that it'll interpret the entries as
C/and/Users/tamar/source/repos/network.The upstream bug-report is https://savannah.gnu.org/support/index.php?110448 but unlikely to be fixed.
I have to think of a fix, ideally if cabal would change the way it calls configure..
For now, as a temporary workaround for the CI if you want you can set the env variable
PATH_SEPARATOR=";"before calling cabal which should fix it.Setting
AC_CONFIG_AUX_DIR([$top_srcdir])gives a cryptic error where it saysconfigure: error: cannot find required auxiliary files:with no files.. this autoconf change is hopelessly broken..
filed a bug with cabal, there's little that can be done in network. haskell/cabal#7494
@Mistuke says:
autoconf 2.70+[1] have several backwards incompatible changes in them. Since msys2 follows Arch Linux's package philosophy it'll always be using bleeding edge. Because your github actions is installing msys2 fresh it'll get latest autoconf which is 2.71.
So it's not really a Windows issue, you can get the same error on Linux with a new enough autoconf. You should be able to fix it by setting AC_CONFIG_AUX_DIR to the directory containing the config.guess and config.sub.
[1] http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=blob_plain;f=NEWS;hb=97fbc5c184acc6fa591ad094eae86917f03459fa