<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>On Apr 26, 2014, at 7:41, Jessica Hamilton <<a href="mailto:jessica.l.hamilton@gmail.com">jessica.l.hamilton@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Hi,<div><br></div><div>I seem to have managed to build a cross-compiler for Haiku, but am having trouble installing it. Possibly I'm missing something during the build, which didn't get pointed out to me at the time.</div>
<div><br></div><div>On the Linux host, the build was basically:</div><div>export PATH=$PATH:/path/to/haiku/gcc4/cross-compiler</div><div>./configure --target=i586-pc-haiku --enable-unregisterised --prefix=/opt</div><div>make</div>
<div>make binary-dist</div><div><br></div><div>In Haiku, after editing configure to set GHC_PWD=pwd (the bundled ghc_pwd is built for the host, not the target...), that part seems to go well. But in make install I get the following errors/output:</div>
<div><br></div><div>> ./configure --prefix=/boot/home/config/non-packaged</div><div>....</div><div>Configuration done, ready to 'make install'</div><div><br></div><div>> make install</div><div>make -r --no-print-directory -f <a href="http://ghc.mk">ghc.mk</a> install BINDIST=YES NO_INCLUDE_DEPS=YES</div>
<div><a href="http://ghc.mk:680">ghc.mk:680</a>: libraries/old-time/<a href="http://ghc.mk">ghc.mk</a>: No such file or directory</div><div><a href="http://ghc.mk:680">ghc.mk:680</a>: libraries/haskell98/<a href="http://ghc.mk">ghc.mk</a>: No such file or directory</div>
<div><a href="http://ghc.mk:680">ghc.mk:680</a>: libraries/haskell2010/<a href="http://ghc.mk">ghc.mk</a>: No such file or directory</div><div>make[1]: *** No rule to make target `libraries/haskell2010/<a href="http://ghc.mk">ghc.mk</a>'.  Stop.</div>
<div>make: *** [install] Error 2</div><div><br></div><div>I presume those are the standard libraries it's trying to install?</div><div><br></div><div>Jessica</div></div></div></blockquote><br><div>Hi Jessica:</div><div><br></div><div>I think that can happen if the source tree isn't "booted".</div><div><br></div><div>Did you run `./sync-all --no-dph get && perl boot` on the Haiku target system?  (this might not be necessary with bindist, so I'm guessing)</div><div><br></div><div>It would be really cool to have GHC for Haiku.</div><div><br></div><div>Best,</div><div>Alain</div></body></html>