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

Joachim Breitner nomeata at debian.org
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
changelog:

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/build.mk
endif


It seems that these patches, or rather the fixes, were already submitted
upstream, but need more cleanup
(http://hackage.haskell.org/trac/ghc/ticket/5914)

FTR, here are the patches:
http://patch-tracker.debian.org/patch/series/view/ghc/7.4.1-2/ARM-VFPv3D16
http://patch-tracker.debian.org/patch/series/view/ghc/7.4.1-2/armhf_llvm_abi

Greetings,
Joachim

-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata at debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nomeata at joachim-breitner.de | http://people.debian.org/~nomeata
-------------- 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: <http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20120422/30b74b71/attachment.pgp>


More information about the Glasgow-haskell-users mailing list