<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&#39;m also glad to hear that someone&#39;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">&lt;<a href="mailto:christiaan.baaij@gmail.com" target="_blank">christiaan.baaij@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Here&#39;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 &lt;<a href="mailto:christiaan.baaij@gmail.com">christiaan.baaij@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; I saw the same issue/crash on my machine using ghc 7.6.3.<br>
&gt;<br>
&gt; I just build a &quot;perf&quot; build of GHC-head with<br>
&gt; &quot;85a9e2468dc74b9e5ccde0dd61be86219fd323a2&quot; as the latest commit.<br>
&gt;<br>
&gt; Now running, I get:<br>
&gt; 1) &gt; cabal install bindings-glfw<br>
&gt; 2) &gt; ghci<br>
&gt; 3) ghci&gt; :m Bindings.GLFW<br>
&gt; 4) ghci&gt; Bindings.GLFW.c&#39;glfwInit<br>
&gt; 5) ghci&gt; 1<br>
&gt;<br>
&gt; And doing:<br>
&gt; 1.) &gt; cabal install GLFW-b<br>
&gt; 2.) &gt; ghci -package GLFW-b<br>
&gt; 3.) ghci&gt; import Graphics.UI.GLFW as GLFW<br>
&gt; 4.) ghci&gt; GLFW.init<br>
&gt; 5.) ghci&gt; True<br>
&gt;<br>
&gt; My platform:<br>
&gt; - OSX 10.8.4<br>
&gt; - ghc(i) 7.7.20130915<br>
&gt; - cabal 1.18.0.1 (using 1.18.0 of the Cabal library)<br>
&gt; - xcode cltools 4.6.2<br>
&gt;<br>
&gt; So it seems that the new ghci linking infrastructure fixes things<br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; Christiaan<br>
&gt;<br>
&gt; On Sep 14, 2013, at 9:00 PM, Jan-Philip Loos &lt;<a href="mailto:maxdaten@gmail.com">maxdaten@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt;&gt; What I do for GLFW is use a dylib, then you don&#39;t rely on GHCi&#39;s static-ish linker.<br>
&gt;&gt;&gt; The only wrinkle is figuring out where you want the dylib.<br>
&gt;&gt;&gt; I think homebrew will put one in /usr/local/lib, which works out nicely, but they don&#39;t have GLFW 3 yet.<br>
&gt;&gt;&gt; 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>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt; for me the problem relocates now to the &quot;bindings-glfw&quot; package, since<br>
&gt;&gt; the native bindings moved to this package and are wrapped up with<br>
&gt;&gt; &quot;glfw-b&quot;.<br>
&gt;&gt;<br>
&gt;&gt; My way to the same exception already mentioned by Brian Lewis:<br>
&gt;&gt; 1) &gt; cabal install bindings-glfw<br>
&gt;&gt; 2) &gt; ghci<br>
&gt;&gt; 3) ghci&gt; :m Bindings.GLFW<br>
&gt;&gt; 4) ghci&gt; Bindings.GLFW.c&#39;glfwInit<br>
&gt;&gt; 5) ghci terminates with exception: *** Terminating app due to uncaught<br>
&gt;&gt; exception &#39;NSInvalidArgumentException&#39;, reason: &#39;-[NSAutoreleasePool<br>
&gt;&gt; init]: unrecognized selector sent to instance 0x7fc443c01b30&#39;<br>
&gt;&gt;<br>
&gt;&gt; Anthony Cowley mentioned to use ghci with GLFW as a dylib, I have no<br>
&gt;&gt; clue how to do this. I built the according glfw version on my own as a<br>
&gt;&gt; dylib and loaded ghci with it explicitly, this didn&#39;t help. I guess<br>
&gt;&gt; the compiled bindings-glfw is already statically packed up.<br>
&gt;&gt;<br>
&gt;&gt; How can I get ghci to use the native glfw dylib in combination with<br>
&gt;&gt; bindings-glfw? If I have to compile bindings-glfw with different<br>
&gt;&gt; settings, which settings? I have some oversight over haskell but no<br>
&gt;&gt; really deep knowledge according to bindings and lib-loading of ghci,<br>
&gt;&gt; but I&#39;m willing to learn it ;)<br>
&gt;&gt;<br>
&gt;&gt; My Platform:<br>
&gt;&gt; - OSX 10.8.5<br>
&gt;&gt; - ghc(i) 7.6.3<br>
&gt;&gt; - cabal 1.18.0.1<br>
&gt;&gt; - xcode dev tools 4.6.3<br>
&gt;&gt;<br>
&gt;&gt; Thanks and Greetings<br>
&gt;&gt;<br>
&gt;&gt; Jan<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Haskell-Cafe mailing list<br>
&gt;&gt; <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
&gt;&gt; <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
&gt;<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>