#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 gwright):
Replying to [comment:17 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?
As igloo noted, this bug isn't you're problem. I've not finished testing
my patches for this issue because it's been pushed back to 7.2.1 and there
have been more urgent issues with the OS X linker (e.g., #4867).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4828#comment:19>
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