Oh well... looks like building ghc won&#39;t be easy, as it doesn&#39;t build with llvm-gcc and it&#39;s not easy to get a &quot;real&quot; gcc on Lion. But I don&#39;t stop trying :)<br><br><div class="gmail_quote">On Wed, Jan 11, 2012 at 11:12 AM, Eugene Kirpichov <span dir="ltr">&lt;<a href="mailto:ekirpichov@gmail.com">ekirpichov@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">Hi,<div><br></div><div>I&#39;m building gtk2hs on a mac with -fsplit-objs, and during compilation of the largest file, which produces about 7000 split objects, the linking phase fails.</div>
<div>I&#39;m assuming that&#39;s because the command line length has been exceeded, because other files compile fine, without -fsplit-objs it compiles fine too, and it compiles fine *with* -fsplit-objs on other OS - so perhaps the reason is in mac&#39;s tempfile name generation (they&#39;re longer than on other platforms) or something.</div>

<div><br></div><div>Anyway.</div><div><br></div><div>I think a nice fix would be to employ gcc&#39;s ability to read options from a file - gcc @file - and write overly long option strings into temp files.</div><div><br></div>

<div>It&#39;d be fun for me to implement this as my first contribution to ghc; is this a good idea in general?<span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br>Eugene Kirpichov<br>Principal Engineer, Mirantis Inc. <a href="http://www.mirantis.com/" target="_blank">http://www.mirantis.com/</a><br>

Editor, <a href="http://fprog.ru/" target="_blank">http://fprog.ru/</a><br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Eugene Kirpichov<br>Principal Engineer, Mirantis Inc. <a href="http://www.mirantis.com/" target="_blank">http://www.mirantis.com/</a><br>Editor, <a href="http://fprog.ru/" target="_blank">http://fprog.ru/</a><br>