[ solaris/x86 problems ... ]
> 1) I remove hp2ps and hstags from the Makefile as they cause problems,
> and don't seem essential to getting a basic compiler going.

What problems exactly?

> 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

What goes wrong when you just type 'make' in ghc/ ?

> 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)

Something has gone wrong with ugen, by the looks of it.

> 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:deSuga
r: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'

This indicates that the dependencies haven't been generated properly.  Did
you get any errors when doing 'make boot'?

> 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:deSuga
r: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

This is probably your best bet - bootstrapping from HC files.  It looks like
something went wrong with building the libraries though - could you send me
the full output from 'make boot' and 'make all'?

Cheers,
        Simon

Reply via email to