OK-- I'm probably not the most qualified person to try to port GHC to
the Alpha, but my attempt begins...

To get started, I want to generate .hc files using my existing
ghc-5.00.2 installation on my i386-unknown-linux box.  I tried to
follow the steps in

    http://www.cs.uu.nl/~atze/Programming/GHC/cp-b1-b2-all

as follows.  First I create a shadow directory tree and configure:

    mkdir c1 c1-obj
    cd c1
    lndir ../ghc-5.00.2
    ./configure --prefix=$PWD-obj

Second I create c1/mk/build.mk:

    GhcHcOpts    += -H24m -keep-hc-files-too -optc-DNO_REGS -optc-DUSE_MINIINTERPRETER 
-fno-asm-mangling -funregisterised -fvia-C
    GhcRtsHcOpts +=                          -optc-DNO_REGS -optc-DUSE_MINIINTERPRETER 
-fno-asm-mangling -funregisterised -fvia-C
    SplitObjs     = NO

Then I ran "make".  It stopped in c1/ghc/rts, at:

    ../../ghc/compiler/ghc-inplace -optc-O -optc-O2 -optc-fomit-frame-pointer 
-optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes 
-optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return 
-optc-Wbad-function-cast -optc-DCOMPILING_RTS -ldl -I../includes -I. -Iparallel -O2 
-optc-DNO_REGS -optc-DUSE_MINIINTERPRETER -fno-asm-mangling -funregisterised -fvia-C 
-DCOMPILING_RTS -static -c Adjustor.c -o Adjustor.o
    Segmentation fault (core dumped)

Indeed, even running ../../ghc/compiler/ghc-inplace by itself, or
running c1/ghc/compiler/ghc-5.00.2 by itself, gives a seg fault.

Being unfamiliar with the build system, I would appreciate any advice
on how to debug this problem.  Or has the .hc generation procedure
changed between ghc4 and ghc5?

-- 
Edit this signature at http://www.digitas.harvard.edu/cgi-bin/ken/sig
no

PGP signature

Reply via email to