Henk van Lingen <[EMAIL PROTECTED]> wrote,
> I'm trying to install some haskell stuff on Solaris systems from
> source code. However, this seems to be a little bit hard and
> undocumented. Using binaries is not an option in my case so I have
> to do some bootstrapping.
>
> For GHC I tried this:
>
> sh ./distrib/hc-build --prefix=/sw/pkg/ghc
>
> but this fails with:
>
> ===fptools== Finished making `all' in cbits ...
> PWD = /export/share/sw-solaris-sparc/pkg/haskell/src/fptools/hslibs/lang
> ------------------------------------------------------------------------
> gmake[2]: *** No rule to make target `Addr.o', needed by `libHSlang.a'. Stop.
> gmake[1]: *** [all] Error 1
> gmake: *** [all] Error 1
>
> What did I do wrong in the 'chicken/egg' jungle haskell installation
> seems to be?
>
> gcc is:
>
> april:src/fptools-: gcc -v
> Reading specs from /sw/pkg/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/specs
> gcc version 2.95.2 19991024 (release)
I presume that you tried version 4.08.1 of the compiler (the
most recent one). I built that version myself from scratch
a short while ago and didn't have any problems (this was on
x86/Solaris with the same version of gcc). Which tar balls
did you download? I guess, you are aware that you need the
source tar ball *plus* the hc-file tar ball. The error
message seems to indicate that you might not have gotten the
hc-files or didn't unpack them at the correct location.
In fact, I just checked the download page and their isn't a
hc-file package for Sparc only one for x86. So, you most
certainly don't have alll the files that you need for the
build.
SimonM, is there a hc-file tar ball for Sparc somewhere?
> By the way: the various tools [ghc, happy, ..] seems to be different
> parts of the same source tree. Why isn't there a tarball which has it
> all and installs cleanly ?
You are right, they are from the same tree. Wrapping them
all into one tar ball wouldn't make the installation easier,
I think. The problem with ghc is - as it is written in
Haskell - that you have the chicken/egg problem if you
install on a machine that hasn't got a Haskell compiler
yet. However, the hc build is these days rather painless
(once you got all the required files that is).
Cheers,
Manuel