[Haskell-cafe] compiling GHC 7.8 on raspberry pi

Joachim Breitner nomeata at debian.org
Sun Apr 19 15:42:38 UTC 2015


Hi,

Am Sonntag, den 19.04.2015, 16:15 +0200 schrieb Sven Bartscher:
> I'm trying to get a haskell program to run on a raspberry pi (running
> raspbian). Unfortunately it requires template haskell.
> Since the GHC included in raspbian wheezy doesn't support TH I'm trying
> to compile GHC 7.8.4 on the rpi.
> Most of the compilation worked fine. I got problems with the memory
> consumption, but adding a lot of swapspace solved this problem.
> During the final phase the compilation process complains about a
> "strange closure type 49200" (the exact number is varying, but most
> often it's 49200).
> Does anyone here have experience, how to compile GHC 7.8 on a raspberry
> pi?
> 
> As a side note: The compilation is running in QEMU while the compiled
> program should run on a real rpi.

you might be interested in the patches that Debian applies to GHC, in
particular the ARM-related one, even more in particular the one that
enforces the use of gold as the linker:
https://sources.debian.net/src/ghc/7.8.20141223-1/debian/patches/

Gruß,
Joachim

-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata at debian.org | ICQ# 74513189 | GPG-Keyid: F0FBF51F
  JID: nomeata at joachim-breitner.de | http://people.debian.org/~nomeata
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150419/6298c90d/attachment.sig>


More information about the Haskell-Cafe mailing list