Compiling natively GHC for ARMv7l softabi

shiftag at nanotek.info shiftag at nanotek.info
Thu Oct 19 06:23:10 UTC 2017


October 18, 2017 6:51 PM, "Ben Gamari" <ben at smart-cactus.org> wrote:

> shiftag at nanotek.info writes:
> 
>> October 17, 2017 10:45 PM, "Ben Gamari" <ben at smart-cactus.org> wrote:
>> 
>> Hi Guys,
>> 
>> Thanks a mil !!!
> 
> Great!
> 
> Do let us know if anything else goes boom.
> 
> Cheers,
> 
> - Ben


Hi,

I'm afraid I have a very bad news. So it goes boom again and it's like a nuclear bomb :(. So I'm still cross-compiling version 8.0.2 on GNU/Linux with arm-linux-gnueabi compiling suite. As reminders, my target architecture is armv7l soft-abi with neon FPU.

I have the following error at make step :


===--- building final phase
make --no-print-directory -f ghc.mk phase=final all
"inplace/bin/ghc-stage1" -static  -H32m -O -Wall  -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -this-unit-id rts -optc-DNOSMP -dcmm-lint      -i -irts -irts/dist/build -irts/dist/build/autogen -Irts/dist/build -Irts/dist/build/autogen           -O2     -c rts/StgStartup.cmm -o rts/dist/build/StgStartup.o
/tmp/ghc24064_0/ghc_8.s: Assembler messages:

/tmp/ghc24064_0/ghc_8.s:38:0: error:
  
/tmp/ghc24064_0/ghc_8.s:42:0: error:
     Error: selected processor does not support `strd r0,r1,[r7,#64]' in ARM mode

/tmp/ghc24064_0/ghc_8.s:131:0: error:
     Error: selected processor does not support `ldrd r0,r1,[r3,#64]' in ARM mode

/tmp/ghc24064_0/ghc_8.s:134:0: error:
     Error: selected processor does not support `strd r0,r1,[r3,#64]' in ARM mode
     `arm-linux-gnueabi-gcc' failed in phase `Assembler'. (Exit code: 1)
     rts/ghc.mk:255: recipe for target 'rts/dist/build/StgStartup.o' failed
     make[1]: *** [rts/dist/build/StgStartup.o] Error 1
     Makefile:129: recipe for target 'all' failed
     make: *** [all] Error 2


So I checked on Google and I found this:

   https://ghc.haskell.org/trac/ghc/ticket/11058

Hmm...do I have some hope ?

Cheers
  Shiftag


More information about the ghc-devs mailing list