<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">> Hi,<br>
><br>
> I'm running Mac OS X Snow Leopard. I've done a "sudo cabal install gtk<br>
> --global" on my system, and it warns me that "file was built for unsupported<br>
> file format which is not the architecture being linked (i386)". What does<br>
> 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<br>
> gtk.<br>
><br>
> Am I doing something wrong?<br>
><br>
<br>
At one point I had this problem due to hsc2hs attempting to build 64-bit.<br>
What happens if you try running:<br>
<br>
cabal install gtk --global --hsc2hs-flags=--cflags=-m32<br>
<br>
(I think that's the incantation I used).<br>
<br>
Apologies for not remembering more details, but I'm strongly suspicious that<br>
the issue lies in hsc2hs.<br></blockquote><div><br></div><div>Small addendum - this is assuming that gtk+ is indeed available as 32-bit, as Greg confirmed is necessary. I would check the gtk libraries with "lipo -info" to see the available architectures.</div>
</div>