I had to do an "initial boot" of Glasgow Haskell to these two
machines, so I am making the binaries available. Please take account
of the huge disclaimers in the attached README file.
The files are on ftp.dcs.glasgow.ac.uk, in
pub/haskell/glasgow/working/.
Will
=====================================================================
The ghc-0.16-{decstation,hpux}.tar.gz.?? files are a HUGE (unpacks to
30MB), UNWIELDY, LARGELY UNTESTED distribution of an *unregisterised*
boot to a {DECstation running Ultrix, HP-PA machine running HP-UX}.
Whatever you do, don't expect it to be wonderful.
HP-UX: Note: Only seems to work with GCC as your C compiler.
Furthermore, it *doesn't* seem to work with the "better" GCC stuff
from jaguar.cs.utah.edu. I got a straight gcc-2.4.5, configured it in
the most obvious way ("./configure hppa1.1-hp-hpux8" [don't remember
exactly]) and built it. You get no -g support, but it seems to work
with this Haskell system.
To use it (this procedure is also untested...):
Unpack into a directory {ghc-0.17,ghc-0.16+} (this isn't really 0.16...):
% cat ghc-0.16-<machine>.tar.gz.?? | gunzip -c | tar xfv -
HP-UX: If you wish, rename "ghc-0.16+" to something else:
% mv ghc-0.16+ something-else
Edit the driver script, ghc-<num>/ghc/driver/ghc, to change all the
hardwired path names that point to this-and-that. It should be one
simple query-replace (in Emacs terms).
Oh yes, the driver (& perhaps other scripts) are invoked via
#!/usr/local/bin/perl; you may need to change these.
A straight driver bug you might want to fix (untested): Add a "unlink"
line in ghc/driver/ghc at *about* line 1498:
&run_something($to_do, 'C compiler');
$PostprocessCcOutput = 0;
unlink($cc_help, $cc_help_s);
Put something in your PATH that "points" to the driver; e.g.,
% ln -s ..../ghc-<num>/ghc/driver/ghc ~/bin/hppa/ghc
% rehash
Give it a little spin:
% cat > hello.hs
main _ = [AppendChan stdout "Hello, world!\n"]
^D
% ghc -v -o hello hello.hs
% ./hello
If you're struggling for space, you can probably "strip" the
ghc/compiler/hsc and ghc/parsers/hsp/hsp binaries.
Documentation: I didn't include it in these "distributions"; I'd
suggest you get a ghc-0.16-bin-sun4.tar.gz from any reputable Haskell
archive, unpack somewhere, keep the "docs" directory, and throw the
rest away.
Let me know if anything doesn't work.
Will Partain
[EMAIL PROTECTED]