<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">&gt; Hi,<br>
&gt;<br>
&gt; I&#39;m running Mac OS X Snow Leopard. I&#39;ve done a &quot;sudo cabal install gtk<br>
&gt; --global&quot; on my system, and it warns me that &quot;file was built for unsupported<br>
&gt; file format which is not the architecture being linked (i386)&quot;. What does<br>
&gt; this refer to?<br>
&gt;<br>
&gt; Subsequently, nothing else _links_ properly with gtk.<br>
&gt;<br>
&gt; For example, hp2any-manager (or other tools) all fail during linking with<br>
&gt; gtk.<br>
&gt;<br>
&gt; Am I doing something wrong?<br>
&gt;<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&#39;s the incantation I used).<br>
<br>
Apologies for not remembering more details, but I&#39;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 &quot;lipo -info&quot; to see the available architectures.</div>
</div>