GHC 9.2.x error on m1 Mac?

Hi, I've been trying out the latest GHC (9.2.1) on an m1 Mac running macOS 12.0.1. I'm seeing this error when building an existing project: Failed to build wcwidth-0.0.2. Build log ( /Users/stu/.cabal/logs/ghc-9.2.1/wcwdth-0.0.2-232d390d.log ): Warning: wcwidth.cabal:47:45: version operators used. To use version operators the package needs to specify at least 'cabal-version: >= 1.8'. Warning: wcwidth.cabal:30:45: version operators used. To use version operators the package needs to specify at least 'cabal-version: >= 1.8'. Configuring wcwidth-0.0.2... Preprocessing library for wcwidth-0.0.2.. Building library for wcwidth-0.0.2.. [1 of 1] Compiling Data.Char.WCWidth ( Data/Char/WCWidth.hs, dist/build/Data/Char/WCWidth.o, dist/build/Data/Char/WCWidth.dyn_o ) In file included from /var/folders/2q/ym4rpn7j6v9d6jhpt0wnk03r0000gn/T/ghc7111_0/ghc_3.c:4:0: error: In file included from /Users/stu/.ghcup/ghc/9.2.1/lib/ghc-9.2.1/lib/../lib/aarch64-osx-ghc-9.2.1/rts-1.0.2/include/ffi.h:66:0: error: /Users/stu/.ghcup/ghc/9.2.1/lib/ghc-9.2.1/lib/../lib/aarch64-osx-ghc-9.2.1/rts-1.0.2/include/ffitarget.h:6:10: error: fatal error: 'ffitarget_arm64.h' file not found | 6 | #include "ffitarget_arm64.h" | ^ #include "ffitarget_arm64.h" ^~~~~~~~~~~~~~~~~~~ 1 error generated. Am I missing a package or system library/header that provides that ffitarget_arm64.h file? TIA, Stu

You should definitely file a ticket on the GHC GitLab.
On Mon, Nov 1, 2021, 1:07 AM Stuart Hungerford
Hi,
I've been trying out the latest GHC (9.2.1) on an m1 Mac running macOS 12.0.1. I'm seeing this error when building an existing project:
Failed to build wcwidth-0.0.2. Build log ( /Users/stu/.cabal/logs/ghc-9.2.1/wcwdth-0.0.2-232d390d.log ): Warning: wcwidth.cabal:47:45: version operators used. To use version operators the package needs to specify at least 'cabal-version: >= 1.8'. Warning: wcwidth.cabal:30:45: version operators used. To use version operators the package needs to specify at least 'cabal-version: >= 1.8'. Configuring wcwidth-0.0.2... Preprocessing library for wcwidth-0.0.2.. Building library for wcwidth-0.0.2.. [1 of 1] Compiling Data.Char.WCWidth ( Data/Char/WCWidth.hs, dist/build/Data/Char/WCWidth.o, dist/build/Data/Char/WCWidth.dyn_o )
In file included from /var/folders/2q/ym4rpn7j6v9d6jhpt0wnk03r0000gn/T/ghc7111_0/ghc_3.c:4:0: error:
In file included from
/Users/stu/.ghcup/ghc/9.2.1/lib/ghc-9.2.1/lib/../lib/aarch64-osx-ghc-9.2.1/rts-1.0.2/include/ffi.h:66:0: error:
/Users/stu/.ghcup/ghc/9.2.1/lib/ghc-9.2.1/lib/../lib/aarch64-osx-ghc-9.2.1/rts-1.0.2/include/ffitarget.h:6:10: error: fatal error: 'ffitarget_arm64.h' file not found | 6 | #include "ffitarget_arm64.h" | ^ #include "ffitarget_arm64.h" ^~~~~~~~~~~~~~~~~~~ 1 error generated.
Am I missing a package or system library/header that provides that ffitarget_arm64.h file?
TIA,
Stu _______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.

On Mon, Nov 1, 2021 at 4:09 PM David Feuer
You should definitely file a ticket on the GHC GitLab.
Is there any authentication required beyond being signed in to Gitlab to create an issue there, or is there a different process required? Since the Monterey upgrade I've had quite a few keychain issues so it could be something on my end. Ta, Stu

I'm no expert, but if you have an account on gitlab.haskell.org you really
should be able to open an issue.
On Mon, Nov 1, 2021, 1:19 AM Stuart Hungerford
On Mon, Nov 1, 2021 at 4:09 PM David Feuer
wrote: You should definitely file a ticket on the GHC GitLab.
Is there any authentication required beyond being signed in to Gitlab to create an issue there, or is there a different process required?
Since the Monterey upgrade I've had quite a few keychain issues so it could be something on my end.
Ta,
Stu
participants (2)
-
David Feuer
-
Stuart Hungerford