<div dir="ltr">After fixing that, and the prefix missing a "-", I've got a working make install! Hurray!<div><br></div><div>I'll tidy this up and make a patch.<br><div class="gmail_extra"><br></div><div class="gmail_extra">

Cheers</div><div class="gmail_extra">Luke<br><br><div class="gmail_quote">On Tue, Feb 4, 2014 at 9:24 PM, Luke Iannini <span dir="ltr"><<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Aha. Looks like the "target word size" is incorrect in the binary-dist version. <div>Here's arm-apple-darwin10ghc --info (i.e., the binary-dist version)</div>

<div><a href="http://lpaste.net/99489" target="_blank">http://lpaste.net/99489</a></div>
<div><br></div><div>and here's arm-apple-darwin10-ghc --info (from a working 'make install'ed version)</div><div><a href="http://lpaste.net/99490" target="_blank">http://lpaste.net/99490</a><br></div><div><br>

</div><div>A bad settings file, I guess. I'll see if I can fix that...</div>
<div>Cheers</div><span class="HOEnZb"><font color="#888888"><div>Luke</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 4, 2014 at 8:59 PM, Luke Iannini <span dir="ltr"><<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">OK, I've made a bit of progress here.<div><br></div><div>Again, I have very little understanding of the binary-dist system so I hope this isn't nonsense.</div>


<div><br></div><div>The <span style="color:rgb(68,68,68);font-size:13px">utils/ghc-cabal/dist-install/build/tmp/</span><span style="color:rgb(68,68,68);font-size:13px">ghc-cabal</span><span style="font-size:13px;color:rgb(68,68,68)"> and </span><span style="font-size:13px;color:rgb(68,68,68)">utils/ghc-pwd/dist-install/build/tmp/ghc-pwd executables have .a extensions, which is a bug, but more importantly are built for arm and thus can't be used.</span></div>



<div><span style="font-size:13px;color:rgb(68,68,68)"><br></span></div><div><span style="font-size:13px;color:rgb(68,68,68)"><div>lukexi@thopminkingscape:~/Code/ghc (ghc-7.8 *=)$ file utils/ghc-cabal/dist-install/build/tmp/ghc-cabal.a</div>



<div>utils/ghc-cabal/dist-install/build/tmp/ghc-cabal.a: Mach-O executable arm</div><div><br></div><div><div>lukexi@thopminkingscape:~/Code/ghc (ghc-7.8 *=)$ file utils/ghc-pwd/dist-install/build/tmp/ghc-pwd.a</div><div>


utils/ghc-pwd/dist-install/build/tmp/ghc-pwd.a: Mach-O executable arm</div>
</div></span></div><div><span style="font-size:13px;color:rgb(68,68,68)"><br></span></div><div><span style="font-size:13px;color:rgb(68,68,68)">So I tried switching them to the </span>inplace/bin/ghc-cabal and utils/ghc-pwd/dist-boot/ghc-pwd copies, respectively, with this patch:</div>



<div><a href="http://lpaste.net/99485" target="_blank">http://lpaste.net/99485</a><br></div><div><br></div><div>This let me build the .tar.gz without errors, and ./configure it fine, but make install fails here now.</div>


<div><div>"inplace/bin/ghc-cabal" register libraries/ghc-prim dist-install "/usr/local/lib/arm-apple-darwin10ghc-7.8.20140129/bin/ghc" "/usr/local/lib/arm-apple-darwin10ghc-7.8.20140129/bin/ghc-pkg" "/usr/local/lib/arm-apple-darwin10ghc-7.8.20140129" '' '/usr/local' '/usr/local/lib/arm-apple-darwin10ghc-7.8.20140129' '/usr/local/share/doc/ghc/html/libraries' NO  </div>



<div>ghc-cabal: Bad interface file: dist-install/build/GHC/CString.hi</div><div>magic number mismatch: old/corrupt interface file? (wanted 33214052, got</div><div>129742)</div></div><div><br></div><div><a href="http://lpaste.net/99486" target="_blank">http://lpaste.net/99486</a><br>



</div><div><br></div><div>(looks like a missing dash in the CrossCompilePrefix as well but that's a minor issue)</div><div><br></div><div>Does this offer any clues?</div><div><br></div><div>Cheers</div><span><font color="#888888"><div>


Luke</div>
</font></span></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 4, 2014 at 6:22 PM, Luke Iannini <span dir="ltr"><<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi folks,<div><br></div><div>I'm all set to release binaries for GHC iOS (arm and i386 simulator), but didn't realize the "make binary-dist" machinery is broken for cross-compilers.</div>



<div>
<br></div><div>I'm starting work on it but will be fumbling in the dark a bit so if anyone has any knowledge or link or ideas on where to look, I'd love to hear them!</div><div><br></div><div>Here's the output of "make binary-dist" on a tree after a successful "make" for arm-apple-darwin10 (which will "make install" perfectly).</div>




<div><a href="http://lpaste.net/99475" target="_blank">http://lpaste.net/99475</a></div><div><br></div><div>Cheers</div><span><font color="#888888"><div>Luke</div></font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div>