Skip to content

bnfc 2.9.4 does not build with ventura m1 #430

Open

Description

@chenrui333

Trying to build bnfc 2.9.4 on my macOS ventura-arm, but ran into some build error log as below:

xxx/02.cabal:
Building     string-qq-0.0.4 (lib)
Building     alex-3.2.7.1 (exe:alex)
Building     cabal-doctest-1.0.9 (lib)
Installing   string-qq-0.0.4 (lib)
Completed    string-qq-0.0.4 (lib)
Installing   cabal-doctest-1.0.9 (lib)
Completed    cabal-doctest-1.0.9 (lib)
Installing   alex-3.2.7.1 (exe:alex)
Completed    alex-3.2.7.1 (exe:alex)
Installing   happy-1.20.0 (exe:happy)
Completed    happy-1.20.0 (exe:happy)
Starting     BNFC-2.9.4 (all, legacy fallback)
Error: cabal: Failed to build BNFC-2.9.4. The failure occurred during the
configure step. The build process segfaulted (i.e. SIGSEGV).

Full error log in here, https://gist.github.com/85fc779cbeca09efc6206699e704d3d3

Activity

  1. added
    build
    homebrew
    on Nov 28, 2022
  2. andreasabel commented on Nov 28, 2022

    @andreasabel
    Member

    Rui Chen @chenrui333, thanks for the issue report!
    You seem to install via homebrew, but I am not maintaining the homebrew formula, so you might want to report the problem there.
    This could also be a problem with the GHC compiler version (9.2.4) that homebrew is using. There are still problems with GHC and ARM, e.g. I found https://gitlab.haskell.org/ghc/ghc/-/issues/21964. This one is fixed in GHC 9.2.5.

    Please try whether you can install BNFC with GHC 9.2.5:

  3. chenrui333 commented on Nov 30, 2022

    @chenrui333
    Author

    You seem to install via homebrew, but I am not maintaining the homebrew formula, so you might want to report the problem there.

    I am the homebrew maintainer. :D

  4. andreasabel commented on Nov 30, 2022

    @andreasabel
    Member

    I am the homebrew maintainer. :D

    Great to have the homebrew maintainer chiming in!

    So, how can I be of help?
    Do you think GHC 9.2.5 may fix the problem? (However, I don't know when 9.2.5 will be available on homebrew.)

  5. andreasabel commented on Oct 17, 2023

    @andreasabel
    Member

    Any updates on this @chenrui333 ? Does it work now?

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

    buildhomebrew

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions