trouble building ghc-7.4 on Fedora 18 (devel) ARM

Joachim Breitner nomeata at
Sun Apr 22 11:26:43 CEST 2012

Hi Jens,

Am Sonntag, den 22.04.2012, 17:19 +0900 schrieb Jens Petersen:
> Anyway thoughts on how to proceed?

the error message looks as if you are actually building on what Debian
calls armhf, with hard floating point support. According to the Debian

ghc (7.4.1-2) unstable; urgency=low

  [ Iain Lane ]

  * Two new patches (backported by Iulian Udrea) to fix armel build
    failures. See upstream bug #5824.
    - fix-ARM-s-StgCRun-clobbered-register-list-for-both-A
    - fix-ARM-StgCRun-to-not-save-and-restore-r11-fp-regis
  * Use dh_autoreconf{,_clean} to autoreconf, mainly so we can have proper
    clean support. 
  * armhf support (thanks to Jani Monoses):
    - debian/patches/ARM-VFPv3D16: Use vfp3-d16 FPU for ARM builds.
    - debian/patches/armhf_llvm_abi: Pass -float-abi=hard to llc on armhf if
      __ARM_PCS_VFP is defined (needs to be preprocessed for this)
    - debian/rules: Define __ARM_PCS_VFP on armhf for the above patch.

you might need to set __ARM_PCS_VFP. This is the code in debian/rules:

ifeq (armhf,$(DEB_HOST_ARCH))
	echo "SRC_HC_OPTS += -D__ARM_PCS_VFP" >> mk/

It seems that these patches, or rather the fixes, were already submitted
upstream, but need more cleanup

FTR, here are the patches:


Joachim "nomeata" Breitner
Debian Developer
  nomeata at | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nomeata at |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the Glasgow-haskell-users mailing list