Hi,
On Sun, Sep 16, 2012 at 10:16:40PM +0100, Nigel Taylor wrote:
> Message-ID: <[email protected]>
> Date: Sun, 16 Sep 2012 22:16:40 +0100
> From: Nigel Taylor <[email protected]>
> To: ports <[email protected]>
> Subject: Re: hs-* fallout, some notes about ghc
>
> On 09/08/12 22:22, Matthias Kilian wrote:
> > Please be aware that the patch is *not* a proper fix but rather a
> > quick hack. I only want to see wether it's worth patching ghc's
> > internal linker at all. The other option would be to enable shared
> > haskell libraries.
[...]
> Missed the e-mail on @ports till mentioned on icb, have only just tried this
>
> I applied the patches to both amd64 and i386, the two failing ports
> hs-vector and hs-type-level built on i386, not on amd64.
Thanks for the tests.
On amd64, did you still get messages like
Loading package integer-gmp ... linking ... ghc: /usr/local/lib/libgmp.a:
unknown symbol `__guard_local'
or just segfaults? (I'd expect the latter).
Anyway, I tried to understand ghc's own runtime linker this day,
and got lost in #ifdef hell, so I'll probably just enable shared
libraries in ghc (in the hope that ghci will use dlopen(3) to load
hs-libraries).
Ciao,
Kili