-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 04 September 2003 01:45, Donald Bruce Stewart wrote:
I did something very slightly incorrect, I think, though I don't know what it was, because I got a working cross-port to freebsd yesterday, on a box that had previously given me the stg_ap_v_ret error. See yesterday's post of mine on that.
Ok, I made another try today, here is the detailed report : lunar@moon:~$ uname -a Linux moon 2.4.22-ben1 #1 Wed Aug 27 13:00:30 CEST 2003 ppc GNU/Linux lunar@moon:~$ wget http://www.haskell.org/ghc/dist/6.0.1/ghc-6.0.1-src.tar.bz2 lunar@moon:~$ md5sum ghc-6.0.1-src.tar.bz2 6e258de758b34905ecfc636a38fa9e23 ghc-6.0.1-src.tar.bz2 lunar@moon:~$ tar jxf ghc-6.0.1-src.tar.bz2 lunar@moon:~/ghc-6.0.1$ vim configure.in - --- Adding this at line 294 powerpc-unknown-linux*) HostPlatform=powerpc-unknown-linux TargetPlatform=powerpc-unknown-linux BuildPlatform=powerpc-unknown-linux HostPlatform_CPP='powerpc_unknown_linux' HostArch_CPP='powerpc' HostVendor_CPP='unknown' HostOS_CPP='linux' ;; - --- lunar@moon:~/ghc-6.0.1$ autoreconf2.50 lunar@moon:~/ghc-6.0.1$ ./configure --enable-hc-boot --enable-unregisterised lunar@moon:~/ghc-6.0.1$ cd ghc/includes/ lunar@moon:~/ghc-6.0.1/ghc/includes$ make config.h lunar@reglisse:~$ uname -a Linux reglisse 2.4.18-686-smp #1 SMP Sun Apr 14 12:07:19 EST 2002 i686 unknown lunar@reglisse:~$ wget http://www.haskell.org/ghc/dist/6.0.1/ghc-6.0.1-src.tar.bz2 lunar@reglisse:~$ md5sum ghc-6.0.1-src.tar.bz2 6e258de758b34905ecfc636a38fa9e23 ghc-6.0.1-src.tar.bz2 lunar@reglisse:~$ tar jxf ghc-6.0.1-src.tar.bz2 lunar@reglisse:~/ghc-6.0.1$ ./configure lunar@reglisse:~/ghc-6.0.1$ vim mk/build.mk lunar@moon:~/ghc-6.0.1/ghc/includes$ scp config.h lunar@reglisse:ghc-6.0.1/ghc/includes lunar@reglisse:~/ghc-6.0.1$ vim mk/config.mk - --- TARGETPLATFORM = powerpc-unknown-linux LeadingUnderscore=NO - --- lunar@reglisse:~/ghc-6.0.1$ vim libraries/mk/boilerplate.mk lunar@reglisse:~/ghc-6.0.1$ vim hslibs/mk/boilerplate.mk - --- Add Ian's AR, LD and SRC_HC_OPTS hack. - --- lunar@reglisse:~/ghc-6.0.1$ (cd glafp-utils && make boot && make) lunar@reglisse:~/ghc-6.0.1$ (cd ghc && make boot && make) lunar@reglisse:~/ghc-6.0.1$ (cd libraries && make boot && make) lunar@reglisse:~/ghc-6.0.1$ vim ghc/mk/boilerplate.mk - --- Still adding Ian's hack lunar@reglisse:~/ghc-6.0.1$ (cd ghc && make boot stage=2 && make stage=2) lunar@reglisse:~/ghc-6.0.1/ghc/utils$ make clean lunar@reglisse:~/ghc-6.0.1/ghc/utils$ make -k HC=~/ghc-6.0.1/ghc/compiler/stage1/ghc-inplace EXTRA_HC_OPTS='-O -fvia-C - -keep-hc-files' lunar@reglisse: ~/ghc-6.0.1$ make hc-file-bundle Project=Ghc lunar@moon:~/ghc-6.0.1/distrib$ wget -O hc-build http://cvs.haskell.org/cgi-bin/cvsweb.cgi/~checkout~/fptools/distrib/hc-buil... lunar@moon:~$ scp lunar@reglisse:ghc-6.0.1/ghc-6.0.1-powerpc-unknown-linux-hc.tar.gz . lunar@moon:~$ tar zxf ghc-6.0.1-powerpc-unknown-linux-hc.tar.gz lunar@moon:~/ghc-6.0.1$ ./distrib/hc-build --enable-hc-boot-unregisterised [...] ../../ghc/utils/ghc-pkg/ghc-pkg-inplace --update-package <package.conf.inplace ghc-pkg.bin: internal error: stg_ap_v_ret Please report this as a bug to glasgow-haskell-bugs@haskell.org, or http://www.sourceforge.net/projects/ghc/ gmake[1]: *** [../../ghc/driver/stamp-pkg-conf-base] Error 254 gmake: *** [boot] Error 1 gmake: Leaving directory `/home/lunar/ghc-6.0.1/libraries' I just saw today a binary version of GHC 5.04.3 for Linux/PPC. My next try will be to bootstrap from that one. Lunar. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/Vx8id1rcjNWgdWQRAidMAJ9S/TfDm8mPpp2Gdl05SNugYFVLGwCgoI0h q3Wf2Kp//DBxiE+fOu4VHO4= =wbf5 -----END PGP SIGNATURE-----