#4828: ghci fails to load fat binary archives on OS X
---------------------------------+------------------------------------------
    Reporter:  gwright           |        Owner:  igloo     
        Type:  bug               |       Status:  patch     
    Priority:  normal            |    Milestone:  7.2.1     
   Component:  Runtime System    |      Version:  7.0.1     
    Keywords:                    |     Testcase:            
   Blockedby:                    |   Difficulty:            
          Os:  MacOS X           |     Blocking:            
Architecture:  Unknown/Multiple  |      Failure:  GHCi crash
---------------------------------+------------------------------------------

Comment(by hesselink):

 I think I've run into this bug, but not using GHCi. I'm building a package
 which uses HDBC-postgresql. During building, it tries to load a postgresql
 archive, and fails:

 {{{
 Loading package HDBC-postgresql-2.2.3.3 ... ghc: internal error:
 loadArchive: Not an archive: `/Library/PostgreSQL/8.4/lib/libpq.a'
     (GHC version 7.0.1 for i386_apple_darwin)
     Please report this as a GHC bug:
 http://www.haskell.org/ghc/reportabug
 }}}

 Examining the file in question shows it is a universal binary with two
 architectures:

 {{{
 $ file /Library/PostgreSQL/8.4/lib/libpq.a
 /Library/PostgreSQL/8.4/lib/libpq.a: Mach-O universal binary with 2
 architectures
 /Library/PostgreSQL/8.4/lib/libpq.a (for architecture ppc):     current ar
 archive random library
 /Library/PostgreSQL/8.4/lib/libpq.a (for architecture i386):    current ar
 archive
 }}}

 If I read this ticket correctly, it seems this means HDBC-postgresql will
 remain unusable with GHC 7.0, and thus with the coming haskell platform.
 It that correct?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4828#comment:17>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to