Hi,

I am trying to get Haskell working on a Solaris 2.7 / Intel machine.
I would like to confess in advance that this is the first GHC
installation I've tried, and apologise if this is known / trivial - I
couldn't see solutions on the mailing list archives, READMEs, or from
more experienced help I've had.

Thanks in advance for any help or advice you can give!

I have a full installation of Solaris 2.7 (the free dist) plus Solaris
freeware / GNU compiled on my machine:
make-3.77
gcc-2.8.1
libstdc++-2.8.1.1
bash-2.02
tcsh-6.08.00
gzip-1.2.4a
perl-5.005_03
flex-2.5.4a
autoconf-2.13
binutils-2.8.1 (not ld)
m4-1.4
tar-1.13
texinfo-3.12
bison-1.28
happy-1.6

Using the binary distribution I have an (in-place) copy of ghc-2.10.

Next I have tried to install ghc-3.02 from source.
The following problems occur both trying to compile using ghc-2, or
using hc bootstrap:
1) I remove hp2ps and hstags from the Makefile as they cause problems,
and don't seem essential to getting a basic compiler going.

2) There are directories in which I have to unlit or ugen by hand: 
/usr/local/ghc-3.02/ghc/includes/*.lh
/usr/local/ghc-3.02/ghc/runtime/storage/*.lh
/usr/local/ghc-3.02/ghc/compiler/parser/*.ugen

3) Then:
==fptools== make all --no-print-directory -r;
 in /usr/local/ghc-3.02/ghc/compiler
...
parser/type2context.o parser/util.o
: libhsp.a
gcc -o hsp -Iparser -I. -I../includes -O    parser/printtree.o
parser/main.o libhsp.a
Undefined                       first referenced
 symbol                             in file
mkconstrpre                         libhsp.a(hsparser.tab.o)
mkcasee                             libhsp.a(hsparser.tab.o)
... (long list of of symbols, mostly first refd. as above)



So, I then tried 4.04 patch level 1:
1) Again, I remove hp2ps and hstags from the Makefile.

2) Compiling using ghc-2 I get the following problems:
==fptools== make all --no-print-directory -r;
 in /usr/local/ghc-4.04.p1/ghc/compiler
...
ghc -cpp -fglasgow-exts -Rghc-timing -I. -IcodeGen -InativeGen -Iparser
-iutils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:specialise:simplCore:stranal:stgSyn:simplStg:codeGen:absCSyn:main:profiling:parser:usageSP:cprAnalysis:nativeGen
-recomp   -fvia-C  -c utils/FastString.lhs -o utils/FastString.o -osuf o
 
utils/FastString.lhs:87:
    Could not find valid interface file `PrimPacked'

Compilation had errors
make[2]: *** [utils/FastString.o] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1



3) Compiling using ./configure --enable-hc-boot I get these problems:
==fptools== make all --no-print-directory -r;
 in /usr/local/ghc-4.04.p1.hc/ghc/compiler
...
../driver/ghc -o hsc -cpp -fglasgow-exts -Rghc-timing -I. -IcodeGen
-InativeGen -Iparser
-iutils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:specialise:simplCore:stranal:stgSyn:simplStg:codeGen:absCSyn:main:profiling:parser:usageSP:cprAnalysis:nativeGen
-recomp     -no-link-chk    rename/ParseIface.o  parser/Parser.o
parser/ctypes.o parser/hschooks.o 
ld: warning: file
/usr/local/ghc-4.04.p1.hc/ghc/driver/../lib/exts/libHSexts.a ignored:
unable to locate archive symbol table
ld: fatal: library -lHSexts: not found
ld: warning: file
/usr/local/ghc-4.04.p1.hc/ghc/driver/../lib/std/libHS.a ignored: unable
to locate archive symbol table
ld: fatal: library -lHS: not found
ld: warning: file
/usr/local/ghc-4.04.p1.hc/ghc/driver/../lib/std/cbits/libHS_cbits.a
ignored: unable to locate archive symbol table
ld: fatal: library -lHS_cbits: not found
ld: warning: file /usr/local/ghc-4.04.p1.hc/ghc/driver/../rts/libHSrts.a
ignored: unable to locate archive symbol table
ld: fatal: library -lHSrts: not found
ld: fatal: File processing errors. No output written to hsc
make[2]: *** [hsc] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1

I suspect this might have something to do with it (but I'm not sure
why it's happening):
-rw-r--r--   1 root     other          8 Nov  5 13:02 libHSexts.a
-rw-r--r--   1 root     other          8 Nov  5 13:02 libHS.a


----------------------------------------------------------------------
 Dan Chalmers, Research Associate,
 Department of Computing,                     E-mail: [EMAIL PROTECTED]
 Imperial College,                        Phone: (+44|0) 207 594 8235
 180 Queen's Gate,                          Fax: (+44|0) 207 581 8024
 London SW7 2BZ, U.K.            Web: http://www-dse.doc.ic.ac.uk/~dc

Reply via email to