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

2012-05-04 Thread Jens Petersen
A late followup, just to let you know, everything is good now. > Not sure if +d16 is actually essential on Fedora though guess it doesn't hurt. It is... I hope llvm will make it the default for armv7 hardware fp. So finally ghc-7.4.1 is built for Fedora ARM and working: I also had to forward-por

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

2012-04-26 Thread Jens Petersen
Thanks Joachim, Jani and Karel, Very helpful :) I managed to get access to a Fedora armv7hl box, and running "ghc -v" there on an offending file I saw the argument to llc was: llc -O3 -relocation-model=static /tmp/ghc3749_0/ghc3749_0.bc -o /tmp/ghc3749_0/ghc3749_0.lm_s -mattr=+v7,+vfp3 which is

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

2012-04-25 Thread Karel Gardas
Hi, I've just attached my fix for hard-float ABI build failure on GHC HEAD to the #5914. I would be more than glad if you can attempt to merge it to 7.4.x you are packaging and test if it works for you on both soft and hard float ABI. Hard seems to be preferred these days at least on Linux.

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

2012-04-24 Thread Joachim Breitner
Hi, Am Dienstag, den 24.04.2012, 19:50 +0900 schrieb Jens Petersen: > >- 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. > > >

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

2012-04-24 Thread Jens Petersen
>    - 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: Thank

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

2012-04-22 Thread Joachim Breitner
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=lo

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

2012-04-22 Thread Jens Petersen
Hi, I have been struggling to build ghc74 on ARM (ideally with llvm3) on Fedora 18 (the current development tree). After applying 4 recent ARM patches from Debian the ghc-7.4.1 build gets to: : "inplace/bin/ghc-stage1" -H32m -O-package-name base-4.5.0.0 -hide-all-packages -i -ilibraries/ba