Compiling natively GHC for ARMv7l softabi

Hi List, I would like to install GHC for my CPU which is an ARMv7L Soft-ABI NEON FPU. I read some stuff on ARM and GHC related. So it appears that an installation is possible but with a RPi. The problem is the stack binary which has been compiled for Hard-Float target. So it should not be difficult to make it work for my architecture. I checked for stack sources (stack-1.5.1.tar.gz) but I have any clue about how to compile it. Can you give me an hand ? Cheers, PS: For info, usually I compiled natively that way : "-march=armv7-a -mfpu=neon -mtune=cortex-a9"

shiftag@nanotek.info writes:
Hi List,
I would like to install GHC for my CPU which is an ARMv7L Soft-ABI NEON FPU. I read some stuff on ARM and GHC related. So it appears that an installation is possible but with a RPi. The problem is the stack binary which has been compiled for Hard-Float target. So it should not be difficult to make it work for my architecture.
Indeed I suspect you are right; it should be fairly straightforward to build GHC for your platform.
I checked for stack sources (stack-1.5.1.tar.gz) but I have any clue about how to compile it. Can you give me an hand ?
First you will need to build GHC itself. This will be a two-step process: 1. First build a cross-compiler [1] for your ARMv7L target on a machine with a working GHC (e.g. an amd64 machine). 2. Transfer this compiler to your target and use it to build a native GHC Let us know if you have any trouble. Cheers, - Ben [1] https://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling
participants (2)
-
Ben Gamari
-
shiftag@nanotek.info