BNFC / bnfc

BNF Converter
http://bnfc.digitalgrammars.com/
582 stars 161 forks source link

bnfc 2.9.4 does not build with ventura m1 #430

Open chenrui333 opened 1 year ago

chenrui333 commented 1 year ago

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

andreasabel commented 1 year ago

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:

chenrui333 commented 1 year ago

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

andreasabel commented 1 year ago

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.)

andreasabel commented 10 months ago

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