Fails to build/install on a Mac M1 Pro
Opened this issue · 1 comments
asarkar commented
stack install brittany
hashable > /private/var/folders/94/bkkwz0cd7nd2_j_xn2fwr8ph0000gn/T/stack-0ddfdd20f131c516/hashable-1.3.5.0/In file included from /var/folders/94/bkkwz0cd7nd2_j_xn2fwr8ph0000gn/T/ghc48724_0/ghc_20.c:4:0: error:
hashable >
hashable >
hashable > In file included from /Users/me/.stack/programs/aarch64-osx/ghc-9.0.2/lib/ghc-9.0.2/lib/../lib/aarch64-osx-ghc-9.0.2/rts-1.0.2/include/ffi.h:66:0: error:
hashable >
hashable >
hashable > /Users/me/.stack/programs/aarch64-osx/ghc-9.0.2/lib/ghc-9.0.2/lib/../lib/aarch64-osx-ghc-9.0.2/rts-1.0.2/include/ffitarget.h:6:10: error:
hashable > fatal error: 'ffitarget_arm64.h' file not found
hashable > |
hashable > 6 | #include "ffitarget_arm64.h"
hashable > | ^
hashable > #include "ffitarget_arm64.h"
hashable > ^~~~~~~~~~~~~~~~~~~
hashable > 1 error generated.
hashable > `gcc' failed in phase `C Compiler'. (Exit code: 1)
AleXoundOS commented
@asarkar, have you tried installing with nix? Or nix-shell -p haskellPackages.brittany --run "brittany --help"
?