Skip to content

ghci fails to load fat binary archives on OS X

ghci crashes when loading fat binary archives (i.e., multi-architecture .a files) on OS X. From looking at rts/Linker.c, the fat header isn't parsed at all.

This isn't hard to fix, it's just a matter of examining the fat header structure, computing the offset to the host architecture in the archive, and continuing with the processing in loadArchive.

This bug affect people who build universal architecture libraries on OS X. The only workaround now is to rebuild the library for a single architecture.

It would be good to get this fixed for 7.0.2; I'll try to produce a patch within a week.

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