Skip to content

GHC 8.6 build failure on ARM

I'm attempting to build the ghc-8.6 branch on ARM linux. I have GHC 8.2.2 and LLVM 6.0.1 installed.

My only build.mk change is to set BuildFlavour=quick

I've made it as far as "final phase" where I get the following failure:

===--- building final phase                                                                                                                                     
/usr/bin/make --no-print-directory -f ghc.mk phase=final all                                                                                                
"inplace/bin/ghc-stage1" -static  -O0 -H64m -Wall   -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -DFS_NAMESPACE=rts -this-unit-id rts -optc-D
NOSMP -dcmm-lint      -i -irts -irts/dist/build -Irts/dist/build -irts/dist/build/./autogen -Irts/dist/build/./autogen            -O2 -Wcpp-undef    -Wnoncanonical-monad-instances  -c rts/StgStartup.cmm -o rts/dist/build/StgStartup.o
/tmp/ghc154171_0/ghc_8.s: Assembler messages:    
                                              
/tmp/ghc154171_0/ghc_8.s:32:0: error:                                                                 
     Error: selected processor does not support `movw r7,:lower16:stg_enter_info' in ARM mode                                                                                                                                                 
   |                                                                                                                                                                                                                                     
32 |         movw    r7, :lower16:stg_enter_info
   | ^                                       
                                                  
/tmp/ghc154171_0/ghc_8.s:33:0: error:                                       
     Error: selected processor does not support `movt r7,:upper16:stg_enter_info' in ARM mode
   |                                                    
33 |         movt    r7, :upper16:stg_enter_info
   | ^                                            
                                                  
/tmp/ghc154171_0/ghc_8.s:231:0: error:                                    
     Error: selected processor does not support `movw r2,#32512' in ARM mode                                                                                                
    |                                                                                                                                                           
231 |         movw    r2, #32512                                                                                                                            
    | ^                                                       
                                                                      
/tmp/ghc154171_0/ghc_8.s:233:0: error:                             
     Error: selected processor does not support `movt r2,#640' in ARM mode
    |                                           
233 |         movt    r2, #640                                     
    | ^                                                                                                                                                                     
`gcc' failed in phase `Assembler'. (Exit code: 1)                                                                                                               
Trac metadata
Trac field Value
Version 8.6.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information