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
andreasabel commentedon Nov 28, 2022
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:
ghcup: https://www.haskell.org/ghcup/cabal install BNFCchenrui333 commentedon Nov 30, 2022
I am the homebrew maintainer. :D
andreasabel commentedon Nov 30, 2022
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 commentedon Oct 17, 2023
Any updates on this @chenrui333 ? Does it work now?