logo       

Re: ghci failed to load static archive: msg#00002

lang.haskell.glasgow.bugs

Subject: Re: ghci failed to load static archive

On Fri, Aug 29, 2003 at 10:12:39AM +0100, Simon Marlow wrote:
> 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

It still doesn't load for me. Is it worth figuring out? I don't
understand the fudgets build process at all, so I don't know if it's
doing something strange or whether this is supported at all.
However, if you feel like tracking this down, here is the error. I
created the ghci command line based on what ghcxmake does.

% ghci -fglasgow-exts -package lang -package base
-i/home/pimlott/local/fudgets/lib/GhcFudgets -L/usr/X11R6/lib -lX11 -lXext
/home/pimlott/local/fudgets/lib/GhcFudgets/Fudget*.o
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 6.0.1, for Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.

Loading package base ... linking ... done.
Loading package lang ... linking ... done.
Loading object (static)
/home/pimlott/local/fudgets/lib/GhcFudgets/FudgetsXlib.o ... done
Loading object (static)
/home/pimlott/local/fudgets/lib/GhcFudgets/Fudgets.o ... done
Loading object (dynamic) X11 ... done
Loading object (dynamic) Xext ... done
final link ... /home/pimlott/local/fudgets/lib/GhcFudgets/Fudgets.o:
unknown symbol `__stginit_Maybe_'
ghc-6.0.1: linking extra libraries/objects failed

For reference, here is a ghcxmake command:

% ~/local/fudgets/bin/ghcxmake counter
ghc -fglasgow-exts -package lang -package base
-i/home/pimlott/local/fudgets/lib/GhcFudgets -c -o counter.o counter.hs
ghc -fglasgow-exts -package lang -package base
-i/home/pimlott/local/fudgets/lib/GhcFudgets -o counter counter.o
-L/home/pimlott/local/fudgets/lib/GhcFudgets -lFudgets -lFudgetsXlib
-L/usr/X11R6/lib -lX11 -lXext

Software versions:
gcc version 3.3.1 20030626 (Debian prerelease)
GNU ld version 2.14.90.0.4 20030523 Debian GNU/Linux

Andrew


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise