#4013: build fails on OS X: Invalid Mach-O file:Address out of bounds while
relocating object file
-------------------------+--------------------------------------------------
Reporter: igloo | Owner:
Type: bug | Status: new
Priority: highest | Milestone: 6.14.1
Component: Compiler | Version: 6.13
Keywords: | Difficulty:
Os: MacOS X | Testcase:
Architecture: x86 | Failure: Building GHC failed
-------------------------+--------------------------------------------------
Comment(by PHO):
So I suspected that it was a memory corruption. But...
{{{
% otool -r /path/to/the/problematic/HSCabal-1.9.0.o
...
Relocation information (__TEXT,__text) 447043 entries
address pcrel length extern type scattered symbolnum/value
...
00222308 0 2 n/a 8 1 0x0036b674
00000000 0 2 n/a 1 1 0xffff1498 // Exactly same
as I saw with gdb!
...
% otool -t -v /path/to/the/problematic/HSCabal-1.9.0.o
...
___stginit_Cabalzm1zi9zi0_DistributionziSimpleziPackageIndex:
00222304 b 0x2221f8
l1000:
00222308 .long 0x0037a1dc // The strange reloc address.
0022230c .long 0x00000000
00222310 .long 0x00200001
...
_Cabalzm1zi9zi0_DistributionziSimpleziPreProcess_zdwa1_info:
00222468 addi r25,r25,0x2c
0022246c lwz r31,0x5c(r27)
...
% otool -r /path/to/the/problematic/Distribution/Simple/PreProcess.o
...
00000000 0 2 n/a 8 1 0x0000e240
00000000 0 2 n/a 1 1 0xfffffffc // Way too
large.
...
}}}
The relocation table was actually broken.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4013#comment:6>
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