<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Message: 5<br>
Date: Thu, 11 Nov 2010 12:43:40 +1030<br>
From: Mark Spezzano <<a href="mailto:mark.spezzano@chariot.net.au">mark.spezzano@chariot.net.au</a>><br>
Subject: Nothing can link with gtk on Snow Leopard<br>
To: <a href="mailto:libraries@haskell.org">libraries@haskell.org</a><br>
Message-ID: <<a href="mailto:E68B9F5E-2EBF-43E5-B72E-BEA044DFF948@chariot.net.au">E68B9F5E-2EBF-43E5-B72E-BEA044DFF948@chariot.net.au</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
Hi,<br>
<br>
I'm running Mac OS X Snow Leopard. I've done a "sudo cabal install gtk --global" on my system, and it warns me that "file was built for unsupported file format which is not the architecture being linked (i386)". What does this refer to?<br>
<br>
Subsequently, nothing else _links_ properly with gtk.<br>
<br>
For example, hp2any-manager (or other tools) all fail during linking with gtk.<br>
<br>
Am I doing something wrong?<br></blockquote><div><br></div><div>At one point I had this problem due to hsc2hs attempting to build 64-bit. What happens if you try running:</div><div><br></div><div>cabal install gtk --global --hsc2hs-flags=--cflags=-m32</div>
<div><br></div><div>(I think that's the incantation I used).</div><div><br></div><div>Apologies for not remembering more details, but I'm strongly suspicious that the issue lies in hsc2hs.</div><div><br></div><div>
John</div></div>