Hi, I'm trying to get GHC 5.00 installed on my SuSE 7.1 box. I have
tried (a) the binary distribution, (b) the source distribution, (c) a
CVS snapshot.
The binary distribution ghc-5.00-i386-unknown-linux.tar.bz2 does to
some extent work if I either install libreadline.so.3 manually or just
symlink it to libreadline.so.4. I can compile and run trivial
programs and use ghci a bit.
However the toy exe I build terminates with an "Illegal
instruction" signal (whether or not I use -via-C), and the same quite
quickly happens to ghci if I play around. If I copy the toy exe onto
a Mandrake (~ RedHat) 6.0 machine I get the same. (If I copy it onto
an RH5 machine I get segfault instead.)
The source distribution ghc-5.00-src.tar.bz2, with
ghc-5.00-i386-hc.tar.bz2 overlaid on it, gets some way through
compilation (using distrib/hc-build) and then fails:
PWD = /home/williamc/packages/dist/ghc-5.00-snapshot/hslibs/util
------------------------------------------------------------------------
../../ghc/utils/hsc2hs/hsc2hs-inplace Readline.hsc
gmake[1]: ../../ghc/utils/hsc2hs/hsc2hs-inplace: Command not found
If I edit the Makefile in that directory to skip Readline, I can get
it to continue on until:
in /home/williamc/packages/dist/ghc-5.00-snapshot/ghc/driver
------------------------------------------------------------------------
gmake[1]: *** No rule to make target `PackageSrc.o', needed by `pkgconf'. Stop.
gmake: *** [all] Error 1
gmake: Leaving directory `/home/williamc/packages/dist/ghc-5.00-snapshot/ghc'
The CVS snapshot I obtained tonight, with ghc-5.00-i386-hc.tar.bz2
overlaid on it, gets some way through compilation (using autoconf and
distrib/hc-build), and then fails as follows:
PWD = /home/williamc/packages/dist/ghc-5.00/fptools/hslibs/util
------------------------------------------------------------------------
gmake[1]: *** No rule to make target `Readline_hsc.o', needed by `libHSutil.a'.
Stop.
If I edit the Makefile in that directory to skip Readline, I can get
it to continue on until:
PWD = /home/williamc/packages/dist/ghc-5.00/fptools/ghc/lib/std
------------------------------------------------------------------------
gcc -x c Directory.hc -o Directory.raw_s -S -O ..... `echo | sed
's/^$/-DSTOLEN_X86_REGS=4/'`
Directory.hc:3: Directory_hsc.h: No such file or directory
gmake[2]: *** [Directory.raw_s] Error 1
Any ideas??
Cheers,
William
P.S. I can see now why the ocaml team keep the bytecode interpreter
alive---it does make bootstrapping an awful lot easier ...
P.P.S. By the way I __love__ `echo | sed 's/^$/-DSTOLEN_X86_REGS=4/'` ;-)
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs