Skip to content

Failed building GHC - Error linking on OS X

When linking:

"/usr/bin/ld" -r -o compiler/stage2/build/HSghc-6.13.20100919.o <many things>

ld quits with the following error:

ld: scattered reloc r_address too large for inferred architecture i386 make[1]: *** [compiler/stage2/build/HSghc-6.13.20100919.o] Error 1

I'm running OS X 10.6, on a Core 2 Duo (which I'm pretty sure is 64 bit).

I'm building with ghc 6.12.2

I've successfully built 6.13.20100911, but it looks like a lot of changes have moved in since then. This build is from the same tree, but I did a make clean before the pull and a 'perl boot' after, which I thought was the correct process.

Let me know if you need more information, or if there is something I should try.

Trac metadata
Trac field Value
Version 6.13
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Build System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
Edited by AntoineLatter
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information