
On Fri, Sep 05, 2003 at 02:56:19PM +1000, Donald Bruce Stewart wrote:
(cough)
I was a bit too soon reporting the sparc-sun-solaris2, two attempts have died with stg_ap_v_ret. Same result sparc-*-openbsd.
Here's an updated list:
+-----------------+--------------------+---------------------------+ | HOST | TARGET | Unregisterised bootstrap | +-----------------+--------------------+---------------------------+ | i386-*-openbsd | i386-*-openbsd | YES | | | i386-*-freebsd | YES | | | i386-*-linux | YES | | | i386-*-solaris2 | YES | | | | | | | sparc-sun-solaris2 | stg_ap_v_ret | | | sparc-sun-openbsd | stg_ap_v_ret | | | | | | | m68k-apple-netbsd | boots libs, dies in gmp | | | | | | | alpha-dec-osf3 | in progress | +-----------------+--------------------+---------------------------+
Maybe it would help if I show you what I have been using and you can look for differences? I'm not 100% sure that this will go through cleanly, but I hope it is now right. You need to copy mk/config.h from the target arch to the same place as the attached files on the host arch. You'll also need to change fptools_dir and arch near the top of cross-port. Then run ./cross-port on the host and copy the resulting tarball to the target along with one containing all the .hi files (if someone can spot why this is necessary, and how to fix it, that would be great!). Untar these over a source tree; you'll then need to do this to fix up a few files that get overwritten with broken links: find ghc-6.0.1 -type l > to_get tar -jxvf ghc-6.0.1-src.tar.bz2 -T to_get Finally: ../hc-build --enable-hc-boot-unregisterised --prefix=/wherever/you/want/it make install stage=1 on the target. I've got a sparc compile done (more or less) this way and make install on m68k has just finished and compiles hello world OK, which is promising :-) Thanks Ian