ghci failed to load static archive
Simon Marlow
simonmar at microsoft.com
Fri Aug 29 05:12:39 EDT 2003
> I'm sure this is pilot error, but I'm reporting it like the message
> says. I was trying to figure out how to get the fudgets library
> loaded into ghci. (I still haven't succeeded, in case you have any
> tips. Fudgets programs work fine when compiled with ghcxmake.)
>
> % ghci -fglasgow-exts
> /home/pimlott/local/fudgets/lib/GhcFudgets/libFudgets*
> ___ ___ _
> / _ \ /\ /\/ __(_)
> / /_\// /_/ / / | | GHC Interactive, version
> 6.0.1, for Haskell 98.
> / /_\\/ __ / /___| | http://www.haskell.org/ghc/
> \____/\/ /_/\____/|_| Type :? for help.
>
> Loading package base ... linking ... done.
> Loading object (static)
> /home/pimlott/local/fudgets/lib/GhcFudgets/libFudgetsXlib.a
> ...
> /home/pimlott/local/fudgets/lib/GhcFudgets/libFudgetsXlib.a:
> not an ELF object
> ghc-6.0.1: panic! (the `impossible' happened, GHC version 6.0.1):
> loadObj: failed
GHCi can't load .a libraries. The documentation (sec. 4.10.3) explains how to turn a .a library into a .o that GHCi can load:
http://www.haskell.org/ghc/docs/latest/html/users_guide/packages.html#BUILDING-PACKAGES
Cheers,
Simon
More information about the Glasgow-haskell-bugs
mailing list