Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bnfc 2.9.4 does not build with ventura m1 #430

Open
chenrui333 opened this issue Nov 27, 2022 · 4 comments
Open

bnfc 2.9.4 does not build with ventura m1 #430

chenrui333 opened this issue Nov 27, 2022 · 4 comments
Labels
build Building BNFC homebrew Concerning building with homebrew

Comments

@chenrui333
Copy link

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 andreasabel added build Building BNFC homebrew Concerning building with homebrew labels Nov 28, 2022
@andreasabel
Copy link
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:

@chenrui333
Copy link
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

@andreasabel
Copy link
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.)

@andreasabel
Copy link
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
Labels
build Building BNFC homebrew Concerning building with homebrew
Projects
None yet
Development

No branches or pull requests

2 participants