#2031: relocation overflow
-------------------------+--------------------------------------------------
Reporter: maeder | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.8.2
Severity: normal | Keywords:
Difficulty: Unknown | Testcase:
Architecture: powerpc | Os: MacOS X
-------------------------+--------------------------------------------------
I've created a statically linked ghc-6.8.2 for PPC Mac OS 10.4 (Tiger).
http://www.dfki.de/sks/hets/mac/versions/ghc-6.8.2-powerpc-apple-darwin-
static-libs.tar.bz2
When linking our big hets binary after compilation with optimization I get
millions (actually 34999 lines) of entries like:
{{{
/usr/bin/ld: PGIP/XMLparsing.o relocation overflow for relocation entry 63
in section (__TEXT,__text) (displacement too large)
...
/usr/bin/ld: SoftFOL/Sign.o relocation overflow for relocation entry 45280
in section (__TEXT,__text) (displacement too large)
collect2: ld returned 1 exit status
make: *** [hets] Error 1
}}}
I had such messages before and got rid of them by rearranging code and
imports (just by wild guesses, a strategy would be helpful). It is sort of
a known (Apple PPC) deficiency (and I misuse this ticket to document it
here).
Linking works fine after compilation without optimization or when linking
against GMP and GNUreadline frameworks using my other binary distribution.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2031>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs