Error building ghc on raspberry pi.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
71 messages Options
1234
Reply | Threaded
Open this post in threaded view
|

Re: Error building ghc on raspberry pi.

roconnor
What version of GHC did you build?

On Sat, 12 Jan 2013, Ben Gamari wrote:

> Karel Gardas <[hidden email]> writes:
>
>> On 01/11/13 09:25 PM, [hidden email] wrote:
>>> On Thu, 10 Jan 2013, Karel Gardas wrote:
>>>
>>>>
>>>> Hmm, are you using Raspbian? I.e. hard-float abi caught my eye in case
>>>> of ARMv6/ARM11 chip here...
>>>>
>>>> I'm afraid LLVM is not well guided in your case so could you be so
>>>> kind and test if adding -optlc=-mattr=+vfp2 helps? You need to add it
>>>> to your build.mk probably and you will need to rebuild everything
>>>> again...
>>>
>>> Add it to the GhcLibHcOpts?
>>
>> Probably too, I'm not the expert here, just make sure you use this
>> option for any ghc invocation which invokes llc to get consistent vfp
>> usage in your object files...
>>
> I've been struggling with this class of error recently as well.
>
> After several failed builds I arrived at the following on my Pandaboard,
>
>    SRC_HC_OPTS = -H64m -Rghc-timing -optc-mfloat-abi=hard -optc-mcpu=cortex-a9 -optlc-float-abi=hard -optlc-mcpu=cortex-a9
>
> I've found it's best to set both gcc and llc arguments as they tend to
> disagree when you least expect it. I'm not sure whether SRC_HC_OPTS is
> too large a hammer, but it seems to work for me.
>
> Cheers,
>
> - Ben
>

--
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
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Error building ghc on raspberry pi.

Ben Gamari
[hidden email] writes:

> What version of GHC did you build?
>
This was building from the ghc-7.4 branch. That being said, after this
build finished I noticed that the resulting stage 2 compiler wasn't
invoking llc with the correct parameters, resulting in the same linker
error when doing builds.

This might have been due to the fact that I changed `build.mk` several
times mid-build. I'm currently waiting for a clean rebuild. However, I'm
now using a more specific configuration as passing `-optlc-float-abi=hard`
in `HC_SRC_OPTS` caused the stage 0 build to fail with,

    ...
    *** LLVM Compiler:
    'llc-3.0' '-O1' '-relocation-model=static' '/tmp/ghc25792_0/ghc25792_0.bc' '-o' '/tmp/ghc25792_0/ghc25792_0.lm_s' '-float-abi=hard' '-mcpu=cortex-a9' '-mattr=+v7,+vfp3,+d16' '-float-abi=hard'
    llc-3.0: for the -float-abi option: may only occur zero or one times!

I'm not really sure where this second `-float-abi=hard` is coming from,
but using the following in `build.mk` works around the issue,

    SRC_HC_OPTS        = -H64m -Rghc-timing
    GhcStage1HcOpts    = -O -fvia-C
    GhcStage2HcOpts    = -O0 -fllvm -keep-llvm-files -debug -DDEBUG -optc-mfloat-abi=hard -optc-mcpu=cortex-a9 -optlc-float-abi=hard -optlc-mcpu=cortex-a9
    GhcLibHcOpts       = -O -fllvm -optc-mfloat-abi=hard -optc-mcpu=cortex-a9 -optlc-float-abi=hard -optlc-mcpu=cortex-a9

The build is still in stage 1 so it is unclear whether this will fix the
original linker error.

Cheers,

- Ben


_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Error building ghc on raspberry pi.

roconnor
On Sat, 12 Jan 2013, Ben Gamari wrote:

> [hidden email] writes:
>
>> What version of GHC did you build?
>>
> This was building from the ghc-7.4 branch. That being said, after this
> build finished I noticed that the resulting stage 2 compiler wasn't
> invoking llc with the correct parameters, resulting in the same linker
> error when doing builds.
>
> This might have been due to the fact that I changed `build.mk` several
> times mid-build. I'm currently waiting for a clean rebuild. However, I'm
> now using a more specific configuration as passing `-optlc-float-abi=hard`
> in `HC_SRC_OPTS` caused the stage 0 build to fail with,
>
>    ...
>    *** LLVM Compiler:
>    'llc-3.0' '-O1' '-relocation-model=static' '/tmp/ghc25792_0/ghc25792_0.bc' '-o' '/tmp/ghc25792_0/ghc25792_0.lm_s' '-float-abi=hard' '-mcpu=cortex-a9' '-mattr=+v7,+vfp3,+d16' '-float-abi=hard'
>    llc-3.0: for the -float-abi option: may only occur zero or one times!
>
> I'm not really sure where this second `-float-abi=hard` is coming from,
> but using the following in `build.mk` works around the issue,
>
>    SRC_HC_OPTS        = -H64m -Rghc-timing
>    GhcStage1HcOpts    = -O -fvia-C
>    GhcStage2HcOpts    = -O0 -fllvm -keep-llvm-files -debug -DDEBUG -optc-mfloat-abi=hard -optc-mcpu=cortex-a9 -optlc-float-abi=hard -optlc-mcpu=cortex-a9
>    GhcLibHcOpts       = -O -fllvm -optc-mfloat-abi=hard -optc-mcpu=cortex-a9 -optlc-float-abi=hard -optlc-mcpu=cortex-a9

You've written "-optc-mfloat-abi=hard -optc-mcpu=cortex-a9" twice in your
GhcLibHcOpts.

--
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
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Error building ghc on raspberry pi.

Austin Seipp
On Sat, Jan 12, 2013 at 10:23 PM,  <[hidden email]> wrote:
>>
>>    GhcLibHcOpts       = -O -fllvm -optc-mfloat-abi=hard -optc-mcpu=cortex-a9 -optlc-float-abi=hard -optlc-mcpu=cortex-a9
>
>
> You've written "-optc-mfloat-abi=hard -optc-mcpu=cortex-a9" twice in your
> GhcLibHcOpts.
>

Not quite. Notice the difference between '-optc-...' and '-optlc-...'

The first one will pass options onto the C compiler (since you use the
GHC executable to compile the RTS and other things, this is
necessary.)

The first one passes the options onto LLVM's code generator tool,
'llc', so it also gets the ABI options right.

--
Regards,
Austin

_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Error building ghc on raspberry pi.

Ben Gamari
In reply to this post by roconnor
[hidden email] writes:

> On Sat, 12 Jan 2013, Ben Gamari wrote:
>
>>    SRC_HC_OPTS        = -H64m -Rghc-timing
>>    GhcStage1HcOpts    = -O -fvia-C
>>    GhcStage2HcOpts    = -O0 -fllvm -keep-llvm-files -debug -DDEBUG -optc-mfloat-abi=hard -optc-mcpu=cortex-a9 -optlc-float-abi=hard -optlc-mcpu=cortex-a9
>>    GhcLibHcOpts       = -O -fllvm -optc-mfloat-abi=hard -optc-mcpu=cortex-a9 -optlc-float-abi=hard -optlc-mcpu=cortex-a9
>
> You've written "-optc-mfloat-abi=hard -optc-mcpu=cortex-a9" twice in your
> GhcLibHcOpts.
>
Not quite, one is -optc (apparently passed to gcc) and the other is
-optlc (passed to llc).

Cheers,

- Ben


_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Error building ghc on raspberry pi.

Austin Seipp
In reply to this post by Austin Seipp
On Sat, Jan 12, 2013 at 10:29 PM, Austin Seipp <[hidden email]> wrote:
>
> The first one passes the options onto LLVM's code generator tool,
> 'llc', so it also gets the ABI options right.

s/first/second/

--
Regards,
Austin

_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Building ghc on raspberry pi.

Neil Davies
Sounds like we're close - I must admit I've slightly lost track of the things that need to be done.

Can we start collecting the pre-conditionds and steps, when each complete build takes best part of a day, its difficult to keep the context.

So - taking the ghc 7.4.1 that is part of raspian wheezy (pkg version 7.4.1-4+rpi1) which depends upon (amongst others) llvm-3.0 (pkg version 3.0-10), can we capture the changes?


Which version of LLVM is being used?

Which ghc source(s) are you starting from?

What files did you need to touch in the make process?  Please supply diffs

Anything else?

Neil
 


_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Building ghc on raspberry pi.

roconnor
On Sun, 13 Jan 2013, Neil Davies wrote:

> Sounds like we're close - I must admit I've slightly lost track of the things that need to be done.
>
> Can we start collecting the pre-conditionds and steps, when each complete build takes best part of a day, its difficult to keep the context.
>
> So - taking the ghc 7.4.1 that is part of raspian wheezy (pkg version 7.4.1-4+rpi1) which depends upon (amongst others) llvm-3.0 (pkg version 3.0-10), can we capture the changes?
>
>
> Which version of LLVM is being used?

I'm using LLVM 3.1 and gcc 4.6.3 and ghc 7.4.1.

> Which ghc source(s) are you starting from?

ghc-7.6.1 with
http://hackage.haskell.org/trac/ghc/attachment/ticket/5914/0001-add-support-for-ARM-hard-float-ABI-fixes-5914.patch
applied, fixing the hunks in compiler/main/DriverPipeline.hs by hand.

> What files did you need to touch in the make process?  Please supply diffs

I've been fiddling with various parmameters in mk/build.mk.

> Anything else?

I haven't got it compiling yet.

Oh I'm currently using the raspian distriubtion with uses the hard-float
ABI, but my end-goal is to bootstrap a nix package.

--
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
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Building ghc on raspberry pi.

Neil Davies
Understood

I've got another RPi supposed to arrive this week - would more computation power help anyone out there?

Neil

On 13 Jan 2013, at 15:59, [hidden email] wrote:

> On Sun, 13 Jan 2013, Neil Davies wrote:
>
>> Sounds like we're close - I must admit I've slightly lost track of the things that need to be done.
>>
>> Can we start collecting the pre-conditionds and steps, when each complete build takes best part of a day, its difficult to keep the context.
>>
>> So - taking the ghc 7.4.1 that is part of raspian wheezy (pkg version 7.4.1-4+rpi1) which depends upon (amongst others) llvm-3.0 (pkg version 3.0-10), can we capture the changes?
>>
>>
>> Which version of LLVM is being used?
>
> I'm using LLVM 3.1 and gcc 4.6.3 and ghc 7.4.1.
>
>> Which ghc source(s) are you starting from?
>
> ghc-7.6.1 with http://hackage.haskell.org/trac/ghc/attachment/ticket/5914/0001-add-support-for-ARM-hard-float-ABI-fixes-5914.patch
> applied, fixing the hunks in compiler/main/DriverPipeline.hs by hand.
>
>> What files did you need to touch in the make process?  Please supply diffs
>
> I've been fiddling with various parmameters in mk/build.mk.
>
>> Anything else?
>
> I haven't got it compiling yet.
>
> Oh I'm currently using the raspian distriubtion with uses the hard-float ABI, but my end-goal is to bootstrap a nix package.
>
> --
> 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
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Error building ghc on raspberry pi.

roconnor
In reply to this post by Karel Gardas
On Thu, 10 Jan 2013, Karel Gardas wrote:

>
> Hmm, are you using Raspbian? I.e. hard-float abi caught my eye in case of
> ARMv6/ARM11 chip here...
>
> I'm afraid LLVM is not well guided in your case so could you be so kind and
> test if adding -optlc=-mattr=+vfp2 helps? You need to add it to your build.mk
> probably and you will need to rebuild everything again...

No change with

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

I still get the error:

===--- building final phase
make -r --no-print-directory -f ghc.mk phase=final all
   LD libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o
/usr/bin/ld: error: libraries/ghc-prim/dist-install/build/cbits/debug.o uses VFP register arguments, libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o does not
/usr/bin/ld: failed to merge target specific data of file libraries/ghc-prim/dist-install/build/cbits/debug.o

I don't really understand what is going on here.  The file
libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o doesn't even
exist, so when I manually run /usr/bin/ld I get:

$ /usr/bin/ld libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o
/usr/bin/ld: cannot find libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o: No such file or directory

What is make really doing here?

My research suggests that this error is a symptom of trying to link
something without the hard-float ABI together with something with a
soft-float ABI.  But I don't know where
libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o is coming from.

--
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
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Error building ghc on raspberry pi.

Thijs Alkemade-2

Op 14 jan. 2013, om 17:30 heeft [hidden email] het volgende geschreven:

> On Thu, 10 Jan 2013, Karel Gardas wrote:
>
>>
>> Hmm, are you using Raspbian? I.e. hard-float abi caught my eye in case of ARMv6/ARM11 chip here...
>>
>> I'm afraid LLVM is not well guided in your case so could you be so kind and test if adding -optlc=-mattr=+vfp2 helps? You need to add it to your build.mk probably and you will need to rebuild everything again...
>
> No change with
>
> 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
>
> I still get the error:
>
> ===--- building final phase
> make -r --no-print-directory -f ghc.mk phase=final all
>  LD libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o
> /usr/bin/ld: error: libraries/ghc-prim/dist-install/build/cbits/debug.o uses VFP register arguments, libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o does not
> /usr/bin/ld: failed to merge target specific data of file libraries/ghc-prim/dist-install/build/cbits/debug.o
>
> I don't really understand what is going on here.  The file libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o doesn't even exist, so when I manually run /usr/bin/ld I get:
>
> $ /usr/bin/ld libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o
> /usr/bin/ld: cannot find libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o: No such file or directory
>
> What is make really doing here?
>
> My research suggests that this error is a symptom of trying to link something without the hard-float ABI together with something with a soft-float ABI.  But I don't know where libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o is coming from.

libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o is the output ld was asked to generate. Apparently, some of the input .o files didn't use VFP register arguments, so ld concluded that the output should also not use VFP register arguments. But then ld encountered a .o file that did use VFP register arguments, and threw an error (something in cbits, so probably built with different CFLAGS).

From your flags I'd say you miss -optlc-float-abi=hard. I had it in GhcLibHcOpts, but I'm not sure that is the correct way to ensure it is passed to everything exactly once.

Thijs
_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Error building ghc on raspberry pi.

roconnor
On Mon, 14 Jan 2013, Thijs Alkemade wrote:

> Op 14 jan. 2013, om 17:30 heeft [hidden email] het volgende geschreven:
>
>> On Thu, 10 Jan 2013, Karel Gardas wrote:
>>
>>>
>>> Hmm, are you using Raspbian? I.e. hard-float abi caught my eye in case of ARMv6/ARM11 chip here...
>>>
>>> I'm afraid LLVM is not well guided in your case so could you be so kind and test if adding -optlc=-mattr=+vfp2 helps? You need to add it to your build.mk probably and you will need to rebuild everything again...
>>
>> No change with
>>
>> 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
>>
>> I still get the error:
>>
>> ===--- building final phase
>> make -r --no-print-directory -f ghc.mk phase=final all
>>  LD libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o
>> /usr/bin/ld: error: libraries/ghc-prim/dist-install/build/cbits/debug.o uses VFP register arguments, libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o does not
>> /usr/bin/ld: failed to merge target specific data of file libraries/ghc-prim/dist-install/build/cbits/debug.o
>>
>> I don't really understand what is going on here.  The file libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o doesn't even exist, so when I manually run /usr/bin/ld I get:
>>
>> $ /usr/bin/ld libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o
>> /usr/bin/ld: cannot find libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o: No such file or directory
>>
>> What is make really doing here?
>>
>> My research suggests that this error is a symptom of trying to link something without the hard-float ABI together with something with a soft-float ABI.  But I don't know where libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o is coming from.
>
> libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o is the output ld was asked to generate. Apparently, some of the input .o files didn't use VFP register arguments, so ld concluded that the output should also not use VFP register arguments. But then ld encountered a .o file that did use VFP register arguments, and threw an error (something in cbits, so probably built with different CFLAGS).
>
> From your flags I'd say you miss -optlc-float-abi=hard. I had it in GhcLibHcOpts, but I'm not sure that is the correct way to ensure it is passed to everything exactly once.

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
/usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, utils/hsc2hs/dist-install/build/HSCParser.o does not
/usr/bin/ld: failed to merge target specific data of file utils/hsc2hs/dist-install/build/HSCParser.o
/usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, utils/hsc2hs/dist-install/build/DirectCodegen.o does not
/usr/bin/ld: failed to merge target specific data of file utils/hsc2hs/dist-install/build/DirectCodegen.o
/usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, utils/hsc2hs/dist-install/build/CrossCodegen.o does not
/usr/bin/ld: failed to merge target specific data of file utils/hsc2hs/dist-install/build/CrossCodegen.o
/usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, utils/hsc2hs/dist-install/build/UtilsCodegen.o does not
/usr/bin/ld: failed to merge target specific data of file utils/hsc2hs/dist-install/build/UtilsCodegen.o
/usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, utils/hsc2hs/dist-install/build/Common.o does not
/usr/bin/ld: failed to merge target specific data of file utils/hsc2hs/dist-install/build/Common.o
/usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, utils/hsc2hs/dist-install/build/C.o does not
/usr/bin/ld: failed to merge target specific data of file utils/hsc2hs/dist-install/build/C.o
/usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, utils/hsc2hs/dist-install/build/Flags.o does not
/usr/bin/ld: failed to merge target specific data of file utils/hsc2hs/dist-install/build/Flags.o
/usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, utils/hsc2hs/dist-install/build/Paths_hsc2hs.o does not
/usr/bin/ld: failed to merge target specific data of file utils/hsc2hs/dist-install/build/Paths_hsc2hs.o
/usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(Apply.o) does not
/usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(Apply.o)
/usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(Exception.o) does not
/usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(Exception.o)
/usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(HeapStackCheck.o) does not
/usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(HeapStackCheck.o)
/usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(PrimOps.o) does not
/usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(PrimOps.o)
/usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(StgMiscClosures.o) does not
/usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(StgMiscClosures.o)
/usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(StgStartup.o) does not
/usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(StgStartup.o)
/usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(StgStdThunks.o) does not
/usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(StgStdThunks.o)
/usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(Updates.o) does not
/usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(Updates.o)
/usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(AutoApply.o) does not
/usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(AutoApply.o)
collect2: ld returned 1 exit status
<<ghc: 10689448 bytes, 2 GCs, 95944/95944 avg/max bytes residency (1 samples), 62M in use, 0.00 INIT (0.00 elapsed), 0.81 MUT (9.41 elapsed), 0.13 GC (0.13 elapsed) :ghc>>
make[1]: *** [utils/hsc2hs/dist-install/build/tmp/hsc2hs] Error 1
make: *** [all] Error 2

--
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
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Error building ghc on raspberry pi.

Thijs Alkemade-2

Op 15 jan. 2013, om 17:36 heeft [hidden email] 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.

Thijs
_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Error building ghc on raspberry pi.

Neil Davies
In reply to this post by roconnor
Hi - would another RPi (or even 2 from tomorrow another one arriving) help?

I can make them accessible (i.e. in our DMZ) -

Neil

On 15 Jan 2013, at 16:36, [hidden email] wrote:

> On Mon, 14 Jan 2013, Thijs Alkemade wrote:
>
>> Op 14 jan. 2013, om 17:30 heeft [hidden email] het volgende geschreven:
>>
>>> On Thu, 10 Jan 2013, Karel Gardas wrote:
>>>
>>>>
>>>> Hmm, are you using Raspbian? I.e. hard-float abi caught my eye in case of ARMv6/ARM11 chip here...
>>>>
>>>> I'm afraid LLVM is not well guided in your case so could you be so kind and test if adding -optlc=-mattr=+vfp2 helps? You need to add it to your build.mk probably and you will need to rebuild everything again...
>>>
>>> No change with
>>>
>>> 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
>>>
>>> I still get the error:
>>>
>>> ===--- building final phase
>>> make -r --no-print-directory -f ghc.mk phase=final all
>>> LD libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o
>>> /usr/bin/ld: error: libraries/ghc-prim/dist-install/build/cbits/debug.o uses VFP register arguments, libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o does not
>>> /usr/bin/ld: failed to merge target specific data of file libraries/ghc-prim/dist-install/build/cbits/debug.o
>>>
>>> I don't really understand what is going on here.  The file libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o doesn't even exist, so when I manually run /usr/bin/ld I get:
>>>
>>> $ /usr/bin/ld libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o
>>> /usr/bin/ld: cannot find libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o: No such file or directory
>>>
>>> What is make really doing here?
>>>
>>> My research suggests that this error is a symptom of trying to link something without the hard-float ABI together with something with a soft-float ABI.  But I don't know where libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o is coming from.
>>
>> libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o is the output ld was asked to generate. Apparently, some of the input .o files didn't use VFP register arguments, so ld concluded that the output should also not use VFP register arguments. But then ld encountered a .o file that did use VFP register arguments, and threw an error (something in cbits, so probably built with different CFLAGS).
>>
>> From your flags I'd say you miss -optlc-float-abi=hard. I had it in GhcLibHcOpts, but I'm not sure that is the correct way to ensure it is passed to everything exactly once.
>
> 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
> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, utils/hsc2hs/dist-install/build/HSCParser.o does not
> /usr/bin/ld: failed to merge target specific data of file utils/hsc2hs/dist-install/build/HSCParser.o
> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, utils/hsc2hs/dist-install/build/DirectCodegen.o does not
> /usr/bin/ld: failed to merge target specific data of file utils/hsc2hs/dist-install/build/DirectCodegen.o
> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, utils/hsc2hs/dist-install/build/CrossCodegen.o does not
> /usr/bin/ld: failed to merge target specific data of file utils/hsc2hs/dist-install/build/CrossCodegen.o
> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, utils/hsc2hs/dist-install/build/UtilsCodegen.o does not
> /usr/bin/ld: failed to merge target specific data of file utils/hsc2hs/dist-install/build/UtilsCodegen.o
> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, utils/hsc2hs/dist-install/build/Common.o does not
> /usr/bin/ld: failed to merge target specific data of file utils/hsc2hs/dist-install/build/Common.o
> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, utils/hsc2hs/dist-install/build/C.o does not
> /usr/bin/ld: failed to merge target specific data of file utils/hsc2hs/dist-install/build/C.o
> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, utils/hsc2hs/dist-install/build/Flags.o does not
> /usr/bin/ld: failed to merge target specific data of file utils/hsc2hs/dist-install/build/Flags.o
> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, utils/hsc2hs/dist-install/build/Paths_hsc2hs.o does not
> /usr/bin/ld: failed to merge target specific data of file utils/hsc2hs/dist-install/build/Paths_hsc2hs.o
> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(Apply.o) does not
> /usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(Apply.o)
> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(Exception.o) does not
> /usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(Exception.o)
> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(HeapStackCheck.o) does not
> /usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(HeapStackCheck.o)
> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(PrimOps.o) does not
> /usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(PrimOps.o)
> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(StgMiscClosures.o) does not
> /usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(StgMiscClosures.o)
> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(StgStartup.o) does not
> /usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(StgStartup.o)
> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(StgStdThunks.o) does not
> /usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(StgStdThunks.o)
> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(Updates.o) does not
> /usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(Updates.o)
> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(AutoApply.o) does not
> /usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(AutoApply.o)
> collect2: ld returned 1 exit status
> <<ghc: 10689448 bytes, 2 GCs, 95944/95944 avg/max bytes residency (1 samples), 62M in use, 0.00 INIT (0.00 elapsed), 0.81 MUT (9.41 elapsed), 0.13 GC (0.13 elapsed) :ghc>>
> make[1]: *** [utils/hsc2hs/dist-install/build/tmp/hsc2hs] Error 1
> make: *** [all] Error 2
>
> --
> 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
> [hidden email]
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Error building ghc on raspberry pi.

roconnor
In reply to this post by Thijs Alkemade-2
On Tue, 15 Jan 2013, Thijs Alkemade wrote:

>
> Op 15 jan. 2013, om 17:36 heeft [hidden email] 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
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Error building ghc on raspberry pi.

roconnor
In reply to this post by Neil Davies
In theory we could try a couple variations of builds at the same time.
But at the moment, I'm running low on ideas on what to try.

I just got the, extensive, raspbian patches for 7.4.1 and I'm going to
browse through them when I get time (apt-get source ghc).

On Tue, 15 Jan 2013, Neil Davies wrote:

> Hi - would another RPi (or even 2 from tomorrow another one arriving) help?
>
> I can make them accessible (i.e. in our DMZ) -
>
> Neil
>
> On 15 Jan 2013, at 16:36, [hidden email] wrote:
>
>> On Mon, 14 Jan 2013, Thijs Alkemade wrote:
>>
>>> Op 14 jan. 2013, om 17:30 heeft [hidden email] het volgende geschreven:
>>>
>>>> On Thu, 10 Jan 2013, Karel Gardas wrote:
>>>>
>>>>>
>>>>> Hmm, are you using Raspbian? I.e. hard-float abi caught my eye in case of ARMv6/ARM11 chip here...
>>>>>
>>>>> I'm afraid LLVM is not well guided in your case so could you be so kind and test if adding -optlc=-mattr=+vfp2 helps? You need to add it to your build.mk probably and you will need to rebuild everything again...
>>>>
>>>> No change with
>>>>
>>>> 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
>>>>
>>>> I still get the error:
>>>>
>>>> ===--- building final phase
>>>> make -r --no-print-directory -f ghc.mk phase=final all
>>>> LD libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o
>>>> /usr/bin/ld: error: libraries/ghc-prim/dist-install/build/cbits/debug.o uses VFP register arguments, libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o does not
>>>> /usr/bin/ld: failed to merge target specific data of file libraries/ghc-prim/dist-install/build/cbits/debug.o
>>>>
>>>> I don't really understand what is going on here.  The file libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o doesn't even exist, so when I manually run /usr/bin/ld I get:
>>>>
>>>> $ /usr/bin/ld libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o
>>>> /usr/bin/ld: cannot find libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o: No such file or directory
>>>>
>>>> What is make really doing here?
>>>>
>>>> My research suggests that this error is a symptom of trying to link something without the hard-float ABI together with something with a soft-float ABI.  But I don't know where libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o is coming from.
>>>
>>> libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o is the output ld was asked to generate. Apparently, some of the input .o files didn't use VFP register arguments, so ld concluded that the output should also not use VFP register arguments. But then ld encountered a .o file that did use VFP register arguments, and threw an error (something in cbits, so probably built with different CFLAGS).
>>>
>>> From your flags I'd say you miss -optlc-float-abi=hard. I had it in GhcLibHcOpts, but I'm not sure that is the correct way to ensure it is passed to everything exactly once.
>>
>> 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
>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, utils/hsc2hs/dist-install/build/HSCParser.o does not
>> /usr/bin/ld: failed to merge target specific data of file utils/hsc2hs/dist-install/build/HSCParser.o
>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, utils/hsc2hs/dist-install/build/DirectCodegen.o does not
>> /usr/bin/ld: failed to merge target specific data of file utils/hsc2hs/dist-install/build/DirectCodegen.o
>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, utils/hsc2hs/dist-install/build/CrossCodegen.o does not
>> /usr/bin/ld: failed to merge target specific data of file utils/hsc2hs/dist-install/build/CrossCodegen.o
>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, utils/hsc2hs/dist-install/build/UtilsCodegen.o does not
>> /usr/bin/ld: failed to merge target specific data of file utils/hsc2hs/dist-install/build/UtilsCodegen.o
>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, utils/hsc2hs/dist-install/build/Common.o does not
>> /usr/bin/ld: failed to merge target specific data of file utils/hsc2hs/dist-install/build/Common.o
>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, utils/hsc2hs/dist-install/build/C.o does not
>> /usr/bin/ld: failed to merge target specific data of file utils/hsc2hs/dist-install/build/C.o
>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, utils/hsc2hs/dist-install/build/Flags.o does not
>> /usr/bin/ld: failed to merge target specific data of file utils/hsc2hs/dist-install/build/Flags.o
>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, utils/hsc2hs/dist-install/build/Paths_hsc2hs.o does not
>> /usr/bin/ld: failed to merge target specific data of file utils/hsc2hs/dist-install/build/Paths_hsc2hs.o
>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(Apply.o) does not
>> /usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(Apply.o)
>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(Exception.o) does not
>> /usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(Exception.o)
>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(HeapStackCheck.o) does not
>> /usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(HeapStackCheck.o)
>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(PrimOps.o) does not
>> /usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(PrimOps.o)
>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(StgMiscClosures.o) does not
>> /usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(StgMiscClosures.o)
>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(StgStartup.o) does not
>> /usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(StgStartup.o)
>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(StgStdThunks.o) does not
>> /usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(StgStdThunks.o)
>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(Updates.o) does not
>> /usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(Updates.o)
>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses VFP register arguments, /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(AutoApply.o) does not
>> /usr/bin/ld: failed to merge target specific data of file /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(AutoApply.o)
>> collect2: ld returned 1 exit status
>> <<ghc: 10689448 bytes, 2 GCs, 95944/95944 avg/max bytes residency (1 samples), 62M in use, 0.00 INIT (0.00 elapsed), 0.81 MUT (9.41 elapsed), 0.13 GC (0.13 elapsed) :ghc>>
>> make[1]: *** [utils/hsc2hs/dist-install/build/tmp/hsc2hs] Error 1
>> make: *** [all] Error 2
>>
>> --
>> 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
>> [hidden email]
>> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
>

--
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
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Error building ghc on raspberry pi.

Karel Gardas

Well, if you make some board available in DMZ I'm certainly interested
to run at least configure on it from GHC HEAD to see what we need to
hack in order to add support for RPi into GHC HEAD.

Unfortunately GHC HEAD is now in a wrong state w.r.t. LLVM based build,
but Austin is working on this. I think I can hack support for RPi in the
meantime for testing later on fixed GHC HEAD LLVM build...

Karel

On 01/15/13 06:07 PM, [hidden email] wrote:

> In theory we could try a couple variations of builds at the same time.
> But at the moment, I'm running low on ideas on what to try.
>
> I just got the, extensive, raspbian patches for 7.4.1 and I'm going to
> browse through them when I get time (apt-get source ghc).
>
> On Tue, 15 Jan 2013, Neil Davies wrote:
>
>> Hi - would another RPi (or even 2 from tomorrow another one arriving)
>> help?
>>
>> I can make them accessible (i.e. in our DMZ) -
>>
>> Neil
>>
>> On 15 Jan 2013, at 16:36, [hidden email] wrote:
>>
>>> On Mon, 14 Jan 2013, Thijs Alkemade wrote:
>>>
>>>> Op 14 jan. 2013, om 17:30 heeft [hidden email] het volgende
>>>> geschreven:
>>>>
>>>>> On Thu, 10 Jan 2013, Karel Gardas wrote:
>>>>>
>>>>>>
>>>>>> Hmm, are you using Raspbian? I.e. hard-float abi caught my eye in
>>>>>> case of ARMv6/ARM11 chip here...
>>>>>>
>>>>>> I'm afraid LLVM is not well guided in your case so could you be so
>>>>>> kind and test if adding -optlc=-mattr=+vfp2 helps? You need to add
>>>>>> it to your build.mk probably and you will need to rebuild
>>>>>> everything again...
>>>>>
>>>>> No change with
>>>>>
>>>>> 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
>>>>>
>>>>> I still get the error:
>>>>>
>>>>> ===--- building final phase
>>>>> make -r --no-print-directory -f ghc.mk phase=final all
>>>>> LD libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o
>>>>> /usr/bin/ld: error:
>>>>> libraries/ghc-prim/dist-install/build/cbits/debug.o uses VFP
>>>>> register arguments,
>>>>> libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o does not
>>>>> /usr/bin/ld: failed to merge target specific data of file
>>>>> libraries/ghc-prim/dist-install/build/cbits/debug.o
>>>>>
>>>>> I don't really understand what is going on here. The file
>>>>> libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o doesn't
>>>>> even exist, so when I manually run /usr/bin/ld I get:
>>>>>
>>>>> $ /usr/bin/ld
>>>>> libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o
>>>>> /usr/bin/ld: cannot find
>>>>> libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o: No such
>>>>> file or directory
>>>>>
>>>>> What is make really doing here?
>>>>>
>>>>> My research suggests that this error is a symptom of trying to link
>>>>> something without the hard-float ABI together with something with a
>>>>> soft-float ABI. But I don't know where
>>>>> libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o is
>>>>> coming from.
>>>>
>>>> libraries/ghc-prim/dist-install/build/HSghc-prim-0.3.0.0.o is the
>>>> output ld was asked to generate. Apparently, some of the input .o
>>>> files didn't use VFP register arguments, so ld concluded that the
>>>> output should also not use VFP register arguments. But then ld
>>>> encountered a .o file that did use VFP register arguments, and threw
>>>> an error (something in cbits, so probably built with different CFLAGS).
>>>>
>>>> From your flags I'd say you miss -optlc-float-abi=hard. I had it in
>>>> GhcLibHcOpts, but I'm not sure that is the correct way to ensure it
>>>> is passed to everything exactly once.
>>>
>>> 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
>>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses
>>> VFP register arguments, utils/hsc2hs/dist-install/build/HSCParser.o
>>> does not
>>> /usr/bin/ld: failed to merge target specific data of file
>>> utils/hsc2hs/dist-install/build/HSCParser.o
>>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses
>>> VFP register arguments,
>>> utils/hsc2hs/dist-install/build/DirectCodegen.o does not
>>> /usr/bin/ld: failed to merge target specific data of file
>>> utils/hsc2hs/dist-install/build/DirectCodegen.o
>>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses
>>> VFP register arguments,
>>> utils/hsc2hs/dist-install/build/CrossCodegen.o does not
>>> /usr/bin/ld: failed to merge target specific data of file
>>> utils/hsc2hs/dist-install/build/CrossCodegen.o
>>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses
>>> VFP register arguments,
>>> utils/hsc2hs/dist-install/build/UtilsCodegen.o does not
>>> /usr/bin/ld: failed to merge target specific data of file
>>> utils/hsc2hs/dist-install/build/UtilsCodegen.o
>>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses
>>> VFP register arguments, utils/hsc2hs/dist-install/build/Common.o does
>>> not
>>> /usr/bin/ld: failed to merge target specific data of file
>>> utils/hsc2hs/dist-install/build/Common.o
>>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses
>>> VFP register arguments, utils/hsc2hs/dist-install/build/C.o does not
>>> /usr/bin/ld: failed to merge target specific data of file
>>> utils/hsc2hs/dist-install/build/C.o
>>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses
>>> VFP register arguments, utils/hsc2hs/dist-install/build/Flags.o does not
>>> /usr/bin/ld: failed to merge target specific data of file
>>> utils/hsc2hs/dist-install/build/Flags.o
>>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses
>>> VFP register arguments,
>>> utils/hsc2hs/dist-install/build/Paths_hsc2hs.o does not
>>> /usr/bin/ld: failed to merge target specific data of file
>>> utils/hsc2hs/dist-install/build/Paths_hsc2hs.o
>>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses
>>> VFP register arguments,
>>> /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(Apply.o) does not
>>> /usr/bin/ld: failed to merge target specific data of file
>>> /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(Apply.o)
>>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses
>>> VFP register arguments,
>>> /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(Exception.o) does not
>>> /usr/bin/ld: failed to merge target specific data of file
>>> /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(Exception.o)
>>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses
>>> VFP register arguments,
>>> /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(HeapStackCheck.o) does not
>>> /usr/bin/ld: failed to merge target specific data of file
>>> /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(HeapStackCheck.o)
>>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses
>>> VFP register arguments,
>>> /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(PrimOps.o) does not
>>> /usr/bin/ld: failed to merge target specific data of file
>>> /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(PrimOps.o)
>>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses
>>> VFP register arguments,
>>> /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(StgMiscClosures.o) does not
>>> /usr/bin/ld: failed to merge target specific data of file
>>> /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(StgMiscClosures.o)
>>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses
>>> VFP register arguments,
>>> /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(StgStartup.o) does not
>>> /usr/bin/ld: failed to merge target specific data of file
>>> /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(StgStartup.o)
>>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses
>>> VFP register arguments,
>>> /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(StgStdThunks.o) does not
>>> /usr/bin/ld: failed to merge target specific data of file
>>> /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(StgStdThunks.o)
>>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses
>>> VFP register arguments,
>>> /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(Updates.o) does not
>>> /usr/bin/ld: failed to merge target specific data of file
>>> /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(Updates.o)
>>> /usr/bin/ld: error: utils/hsc2hs/dist-install/build/tmp/hsc2hs uses
>>> VFP register arguments,
>>> /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(AutoApply.o) does not
>>> /usr/bin/ld: failed to merge target specific data of file
>>> /tmp/ghc-7.6.1b/rts/dist/build/libHSrts.a(AutoApply.o)
>>> collect2: ld returned 1 exit status
>>> <<ghc: 10689448 bytes, 2 GCs, 95944/95944 avg/max bytes residency (1
>>> samples), 62M in use, 0.00 INIT (0.00 elapsed), 0.81 MUT (9.41
>>> elapsed), 0.13 GC (0.13 elapsed) :ghc>>
>>> make[1]: *** [utils/hsc2hs/dist-install/build/tmp/hsc2hs] Error 1
>>> make: *** [all] Error 2
>>>
>>> --
>>> 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
>>> [hidden email]
>>> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
>>
>


_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Error building ghc on raspberry pi.

Ben Gamari
In reply to this post by roconnor
[hidden email] writes:

> 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

I found this as well and have been unable to figure out what in the
build system needs to be tweaked. This is ultimately where I gave up on
7.4.

Anyone have any ideas what flags this is built with? It seems that
neither GhcStage2HcOpts nor GhcLibHcOpts make it to the compiler here,

    "inplace/bin/ghc-stage1"   -H64m -Rghc-timing -v    -hide-all-packages -i -iutils/hsc2hs/. -iutils/hsc2hs/dist-install/build -iutils/hsc2hs/dist-install/build/autogen -Iutils/hsc2hs/dist-install/build -Iutils/hsc2
    hs/dist-install/build/autogen     -optP-include -optPutils/hsc2hs/dist-install/build/autogen/cabal_macros.h -package base-4.5.1.0 -package containers-0.4.2.1 -package directory-1.1.0.2 -package process-1.1.0.1  -X
    Haskell98 -XCPP -XForeignFunctionInterface  -no-user-package-conf -rtsopts     -odir utils/hsc2hs/dist-install/build -hidir utils/hsc2hs/dist-install/build -stubdir utils/hsc2hs/dist-install/build -hisuf hi -osuf
     o -hcsuf hc -c utils/hsc2hs/./Main.hs -o utils/hsc2hs/dist-install/build/Main.o


Cheers,

 - Ben

_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Error building ghc on raspberry pi.

Karel Gardas

Well, just wild guessing what's needed on RPi, but could you who do have
this board attempt to use attached patch? Don't forget to ./boot as this
change configure. Also testing it on completely clean tree may be wise
idea. Also after configure run please check that you do have VFPv2 in
the ext list. -- this is indeed a wild guess for ARMv6, but as we do the
same for ARMv7 (guessing VFPv3) I don't think this is show-stopper now...

Please let me know if this is working...

Karel

On 01/15/13 06:25 PM, Ben Gamari wrote:

> [hidden email] writes:
>
>> 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
>
> I found this as well and have been unable to figure out what in the
> build system needs to be tweaked. This is ultimately where I gave up on
> 7.4.
>
> Anyone have any ideas what flags this is built with? It seems that
> neither GhcStage2HcOpts nor GhcLibHcOpts make it to the compiler here,
>
>      "inplace/bin/ghc-stage1"   -H64m -Rghc-timing -v    -hide-all-packages -i -iutils/hsc2hs/. -iutils/hsc2hs/dist-install/build -iutils/hsc2hs/dist-install/build/autogen -Iutils/hsc2hs/dist-install/build -Iutils/hsc2
>      hs/dist-install/build/autogen     -optP-include -optPutils/hsc2hs/dist-install/build/autogen/cabal_macros.h -package base-4.5.1.0 -package containers-0.4.2.1 -package directory-1.1.0.2 -package process-1.1.0.1  -X
>      Haskell98 -XCPP -XForeignFunctionInterface  -no-user-package-conf -rtsopts     -odir utils/hsc2hs/dist-install/build -hidir utils/hsc2hs/dist-install/build -stubdir utils/hsc2hs/dist-install/build -hisuf hi -osuf
>       o -hcsuf hc -c utils/hsc2hs/./Main.hs -o utils/hsc2hs/dist-install/build/Main.o
>
>
> Cheers,
>
>   - Ben
>
> _______________________________________________
> Glasgow-haskell-users mailing list
> [hidden email]
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
>

_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

rpi.diff (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Error building ghc on raspberry pi.

Thijs Alkemade-2
In reply to this post by Karel Gardas

Op 15 jan. 2013, om 18:16 heeft Karel Gardas <[hidden email]> het volgende geschreven:

> Well, if you make some board available in DMZ I'm certainly interested to run at least configure on it from GHC HEAD to see what we need to hack in order to add support for RPi into GHC HEAD.
>
> Unfortunately GHC HEAD is now in a wrong state w.r.t. LLVM based build, but Austin is working on this. I think I can hack support for RPi in the meantime for testing later on fixed GHC HEAD LLVM build...
>
> Karel

This might be helpful, it's a guide to emulate a raspberry pi using qemu, which I was using to (try to) build GHC:

http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/

While I haven't done any real measurements, it seemed somewhat faster too on my machine.

Thijs
_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
1234