#4318: Crash while building HEAD on OS X
-------------------------------+--------------------------------------------
Reporter: gwright | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 7.0.1
Component: Compiler | Version: 6.13
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: MacOS X | Blocking:
Architecture: x86_64 (amd64) | Failure: Building GHC failed
-------------------------------+--------------------------------------------
Comment(by gwright):
At last some progress: there's more than one bug here, and I've located
and fixed one of them. The check for `symbol->n_value == 0` in
`relocateSection` is just wrong. (In fact, according to the header file
comments and my reading of the Mach-O object file format, it is simply
nonsensical.) This is probably a remnant of the original reverse-
engineering approach used to get the Mach-O linker going. I've fixed it
to check the `symbol->n_type` flags correctly.
I still don't know why the RTS symbols are not being resolved. It's not a
failure to find the RTS symbols, instead, it appears as if there is no
attempt to look them up at all. I've added extensive debugging output to
the Mach-O linker and will include them with my eventual patch.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4318#comment:9>
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