#4828: ghci fails to load fat binary archives on OS X
---------------------------------+------------------------------------------
    Reporter:  gwright           |       Owner:                
        Type:  bug               |      Status:  new           
    Priority:  normal            |   Component:  Runtime System
     Version:  7.0.1             |    Keywords:                
    Testcase:                    |   Blockedby:                
          Os:  MacOS X           |    Blocking:                
Architecture:  Unknown/Multiple  |     Failure:  GHCi crash    
---------------------------------+------------------------------------------
 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.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4828>
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

Reply via email to