Skip to content

autoconf #502

Description

@kazu-yamamoto

@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

Activity

  1. kazu-yamamoto commented on Jun 22, 2021

    @kazu-yamamoto
    CollaboratorAuthor

    I'm using autoconf 2.71 on macOS but I cannot reproduce this.

  2. kazu-yamamoto commented on Jun 22, 2021

    @kazu-yamamoto
    CollaboratorAuthor

    The error says:

    configure: error: cannot find required auxiliary files: config.guess config.sub

    config.guess and config.sub are contained in ..

    The manual of autoconf says:

    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.guess cannot be found.

  3. Mistuke commented on Jun 24, 2021

    @Mistuke
    Collaborator

    Hmm I'll take a look this weekend.

  4. kazu-yamamoto commented on Jul 8, 2021

    @kazu-yamamoto
    CollaboratorAuthor

    @Mistuke Gentle ping

  5. Mistuke commented on Jul 8, 2021

    @Mistuke
    Collaborator

    So the problem is that $PATH_SEPARATOR=":" by default and cabal calls configure using:

     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.

  6. Mistuke commented on Jul 8, 2021

    @Mistuke
    Collaborator

    Setting AC_CONFIG_AUX_DIR([$top_srcdir]) gives a cryptic error where it says

    configure: error: cannot find required auxiliary files:
    

    with no files.. this autoconf change is hopelessly broken..

  7. Mistuke commented on Jul 25, 2021

    @Mistuke
    Collaborator

    filed a bug with cabal, there's little that can be done in network. haskell/cabal#7494

  8. added a commit that references this issue on Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions