Fails to build/install on a Mac M1 Pro #373

Open
opened 2022-07-06 10:14:53 +02:00 by asarkar · 1 comment
asarkar commented 2022-07-06 10:14:53 +02:00 (Migrated from github.com)

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) 
> 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 2022-07-29 16:49:24 +02:00 (Migrated from github.com)

@asarkar, have you tried installing with nix? Or nix-shell -p haskellPackages.brittany --run "brittany --help"?

@asarkar, have you tried installing with nix? Or `nix-shell -p haskellPackages.brittany --run "brittany --help"`?
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hexagoxel/brittany#373
There is no content yet.