Error building ghc on raspberry pi.

Neil Davies semanticphilosopher at gmail.com
Wed Jan 16 12:27:34 CET 2013


I looked at that route - the issue is that the emulator only has 256M of RAM (and that's not changeable) - so there are going to be build issues with the GHC tool chain - it was then that I moved to "real" hardware.

Neil

On 15 Jan 2013, at 17:01, roconnor at theorem.ca wrote:

> On Tue, 15 Jan 2013, Thijs Alkemade wrote:
> 
>> 
>> Op 15 jan. 2013, om 17:36 heeft roconnor at theorem.ca het volgende geschreven:
>> 
>>> Okay, I tried:
>>> 
>>> SRC_HC_OPTS        = -H64m -Rghc-timing -optc-mfloat-abi=hard -optc-march=armv6 -optc-mfpu=vfp -optlc=-mattr=+vfp2
>>> GhcStage1HcOpts    = -O -fllvm
>>> GhcStage2HcOpts    = -O0 -fllvm
>>> GhcLibHcOpts       = -O -fllvm -optlc-float-abi=hard
>>> 
>>> and I got the same error at a different build step.  I'm not sure if it is earlier or later.
>>> 
>>> It seems still not everything is using the hard-float ABI.
>>> 
>>> ===--- building final phase
>>> make -r --no-print-directory -f ghc.mk phase=final all
>>> HC [stage 1] utils/hsc2hs/dist-install/build/tmp/hsc2hs
>>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, utils/hsc2hs/dist-install/build/Main.o does not
>>> /usr/bin/ld: failed to merge target specific data of file utils/hsc2hs/dist-install/build/Main.o
>> ...
>> 
>> Did you do a `make clean` first? If not, try removing just (some of) the offending .o files, and see if rebuilding just those results in the same error.
> 
> I did a make clean first I'm afarid.
> 
> -- 
> Russell O'Connor                                      <http://r6.ca/>
> ``All talk about `theft,''' the general counsel of the American Graphophone
> Company wrote, ``is the merest claptrap, for there exists no property in
> ideas musical, literary or artistic, except as defined by statute.''
> 
> _______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users




More information about the Glasgow-haskell-users mailing list