[Haskell-cafe] GHC 9.2.x error on m1 Mac?

David Feuer david.feuer at gmail.com
Mon Nov 1 05:09:01 UTC 2021


You should definitely file a ticket on the GHC GitLab.

On Mon, Nov 1, 2021, 1:07 AM Stuart Hungerford <stuart.hungerford at gmail.com>
wrote:

> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20211101/326b7a1c/attachment.html>


More information about the Haskell-Cafe mailing list