Hi, all. I've run into difficulty installing GHC-2.02 for Win95, and I
thought I'd write up my experiences. Apologies if this is not the correct
forum for this. I'd appreciate any help in getting GHC-2.02 up and
running, though, especially if someone has managed it on Win95.
The first few items are minor. The last is a trapped exception from the
compiler.
The "prof" bundle has different versions of two files from the "conc" and
"ghc" bundles:
lib/i386-unknown-cygwin32/ghc-2.02/hslibs/contrib/imports/
Adams_Predictor_Corrector_Approx
Newton_Interpolatory_Divided_Diff
[fix: ignore and hope for the best]
There is no "share/ghc-2.02" directory in the archive, causing the "make
install" to die in "install-dirs" that point.
[fix: add "share/ghc-2.02" manually]
The "hp2ps" specification for the PACKAGE_BINS in the makefile fails
because it is hp2ps.exe, causing the "make install" to die in "install-bins".
[fix: change "hp2ps" to "hp2ps.exe" in the makefile]
The "#!/bin/sh -- -*- perl-*-" line for the scripts confuses the cygwin32
sh, and the clever interaction between this and the "eval 'exec perl -S
...'" is not handled correctly.
[fix: change "#!/bin/sh -- -*- perl-*-" to "#!/usr/local/bin/perl"]
Exception occurs when trying to compile the "hello, world" program:
$ cat - > hello.hs
main = putStr "Hello, world.\n"
$ ghc -v -o hello hello.hs
The Glorious Glasgow Haskell Compilation System, version 2.02, patchlevel 0
Ineffective C pre-processor:
echo '#line 1 "hello.hs"' > /tmp/ghc1714.cpp && cat hello.hs >>
/tmp/ghc1714.cpp
0.00user 0.00system 0:00.14elapsed 0%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+0minor)pagefaults 0swaps
Haskell compiler:
/usr/local/lib/ghc-2.02/hsc ,-W ,/tmp/ghc1714.cpp -hisuf-prelude=.hi
-hisuf=.hi -fignore-interface-pragmas -fomit-interface-pragmas -fsimplify
\( -ffloat-lets-exposing-whnf -ffloat-primops-ok -fcase-of-case
-freuse-con -fpedantic-bottoms -fsimpl-uf-use-threshold0
-fessential-unfoldings-only -fmax-simplifier-iterations4 \)
-himap=.:/usr/local/lib/ghc-2.02/imports -v -hifile=/tmp/ghc1714.hi
-C=/tmp/ghc1714.hc +RTS -H6000000 -K1000000
(c:\usr\local\lib\ghc-2.02\hsc.exe 1720) In cygwin_except_handler
(c:\usr\local\lib\ghc-2.02\hsc.exe 1720) Exception trapped!
(c:\usr\local\lib\ghc-2.02\hsc.exe 1720) exception C0000005 at 1000
(c:\usr\local\lib\ghc-2.02\hsc.exe 1720) exception: ax 0 bx 2A0F6B4 cx 0 dx
8001BF
(c:\usr\local\lib\ghc-2.02\hsc.exe 1720) exception: si 5 di 1000B8B3 bp
2A0F19C sp 2A0F188
(c:\usr\local\lib\ghc-2.02\hsc.exe 1720) exception is: STATUS_ACCESS_VIOLATION
(c:\usr\local\lib\ghc-2.02\hsc.exe 1720) Stack trace:
(c:\usr\local\lib\ghc-2.02\hsc.exe 1720) frame 0: sp = 0x2A0EFA0, pc =
0x1000CEC2
(c:\usr\local\lib\ghc-2.02\hsc.exe 1720) frame 1: sp = 0x2A0EFBC, pc =
0xBFF76780
(c:\usr\local\lib\ghc-2.02\hsc.exe 1720) frame 2: sp = 0x2A0EFE0, pc =
0xBFF858F3
(c:\usr\local\lib\ghc-2.02\hsc.exe 1720) frame 3: sp = 0x2A0F078, pc =
0xFFECBAD7
(c:\usr\local\lib\ghc-2.02\hsc.exe 1720) frame 4: sp = 0x2A0F19C, pc = 0x0
(c:\usr\local\lib\ghc-2.02\hsc.exe 1720) End of stack trace
Command exited with non-zero status 2
0.00user 0.00system 0:00.15elapsed 0%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+0minor)pagefaults 0swaps
deleting... /tmp/ghc1714.hi /tmp/ghc1714.hc
rm -f /tmp/ghc1714*
I don't know the fix for this, and would appreciate any help. Thanks!
Charles Martin // [EMAIL PROTECTED]