<div dir="ltr">Christian, <div style>Yes, ghc 7.7/7.8 *should* fix all the ghci linker related problems on platforms that support dynamic linking!</div><div style><br></div><div style>If (or anyone else) finds problems with the ghci linker on 7.7, please report them post haste!</div>
<div style><br></div><div style>I'm also glad to hear that someone's finally tested out the new ghci functionality properly!</div><div style><br></div><div style>-Carter</div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Mon, Sep 16, 2013 at 8:52 AM, Christiaan Baaij <span dir="ltr"><<a href="mailto:christiaan.baaij@gmail.com" target="_blank">christiaan.baaij@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Here's a binary dist of my build: <a href="https://www.dropbox.com/s/d37rij0dnvjiqqy/ghc-7.7.20130915-x86_64-apple-darwin.tar.bz2" target="_blank">https://www.dropbox.com/s/d37rij0dnvjiqqy/ghc-7.7.20130915-x86_64-apple-darwin.tar.bz2</a><br>
In case someone wants to confirm my findings.<br>
<br>
Cheers,<br>
<br>
Christiaan<br>
<div class="HOEnZb"><div class="h5"><br>
On Sep 16, 2013, at 2:24 PM, Christiaan Baaij <<a href="mailto:christiaan.baaij@gmail.com">christiaan.baaij@gmail.com</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> I saw the same issue/crash on my machine using ghc 7.6.3.<br>
><br>
> I just build a "perf" build of GHC-head with<br>
> "85a9e2468dc74b9e5ccde0dd61be86219fd323a2" as the latest commit.<br>
><br>
> Now running, I get:<br>
> 1) > cabal install bindings-glfw<br>
> 2) > ghci<br>
> 3) ghci> :m Bindings.GLFW<br>
> 4) ghci> Bindings.GLFW.c'glfwInit<br>
> 5) ghci> 1<br>
><br>
> And doing:<br>
> 1.) > cabal install GLFW-b<br>
> 2.) > ghci -package GLFW-b<br>
> 3.) ghci> import Graphics.UI.GLFW as GLFW<br>
> 4.) ghci> GLFW.init<br>
> 5.) ghci> True<br>
><br>
> My platform:<br>
> - OSX 10.8.4<br>
> - ghc(i) 7.7.20130915<br>
> - cabal 1.18.0.1 (using 1.18.0 of the Cabal library)<br>
> - xcode cltools 4.6.2<br>
><br>
> So it seems that the new ghci linking infrastructure fixes things<br>
><br>
> Cheers,<br>
><br>
> Christiaan<br>
><br>
> On Sep 14, 2013, at 9:00 PM, Jan-Philip Loos <<a href="mailto:maxdaten@gmail.com">maxdaten@gmail.com</a>> wrote:<br>
><br>
>>> What I do for GLFW is use a dylib, then you don't rely on GHCi's static-ish linker.<br>
>>> The only wrinkle is figuring out where you want the dylib.<br>
>>> I think homebrew will put one in /usr/local/lib, which works out nicely, but they don't have GLFW 3 yet.<br>
>>> Another option is to build the dylib yourself from the GLFW source bundled with the GLFW-b package, then tell cabal where to find it.<br>
>><br>
>> Hi,<br>
>> for me the problem relocates now to the "bindings-glfw" package, since<br>
>> the native bindings moved to this package and are wrapped up with<br>
>> "glfw-b".<br>
>><br>
>> My way to the same exception already mentioned by Brian Lewis:<br>
>> 1) > cabal install bindings-glfw<br>
>> 2) > ghci<br>
>> 3) ghci> :m Bindings.GLFW<br>
>> 4) ghci> Bindings.GLFW.c'glfwInit<br>
>> 5) ghci terminates with exception: *** Terminating app due to uncaught<br>
>> exception 'NSInvalidArgumentException', reason: '-[NSAutoreleasePool<br>
>> init]: unrecognized selector sent to instance 0x7fc443c01b30'<br>
>><br>
>> Anthony Cowley mentioned to use ghci with GLFW as a dylib, I have no<br>
>> clue how to do this. I built the according glfw version on my own as a<br>
>> dylib and loaded ghci with it explicitly, this didn't help. I guess<br>
>> the compiled bindings-glfw is already statically packed up.<br>
>><br>
>> How can I get ghci to use the native glfw dylib in combination with<br>
>> bindings-glfw? If I have to compile bindings-glfw with different<br>
>> settings, which settings? I have some oversight over haskell but no<br>
>> really deep knowledge according to bindings and lib-loading of ghci,<br>
>> but I'm willing to learn it ;)<br>
>><br>
>> My Platform:<br>
>> - OSX 10.8.5<br>
>> - ghc(i) 7.6.3<br>
>> - cabal 1.18.0.1<br>
>> - xcode dev tools 4.6.3<br>
>><br>
>> Thanks and Greetings<br>
>><br>
>> Jan<br>
>> _______________________________________________<br>
>> Haskell-Cafe mailing list<br>
>> <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
>> <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
><br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br></div>