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
  nome...@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nome...@joachim-breitner.de | http://people.debian.org/~nomeata

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to