Hi,

  I tried to bootstrap ghc4.00 on AIX with the "--enable-hc-boot"
flag, but I got an error:

RTS -K2m -H10m -RTS    -g rename/ParseIface.y
make[2]: RTS: Command not found
make[2]: *** [rename/ParseIface.hs] Error 127
make[1]: *** [boot] Error 1
make: *** [boot] Error 1

It looks like the variable HAPPY in ghc/compiler/Makefile is not
defined, but since I'm bootstrapping I don't see why it would have
to be defined ?

Here are the commands I typed to produce the bug report,
which I have gzipped and attached (unfortunately netscape
attachments don't get through, so I'll send it as a seperate
mail after this one):

script myscript
uname -srv
gcc --version
make --version
tar -xf ghc-4.00-src.tar
cd fptools
./configure --enable-hc-boot
make boot
exit

I also tried to compile ghc2.10, but this gives the same error.

I can get "make boot" through by commenting out 6 lines related
to Happy and some dependencies in "ghc/compiler/Makefile". But the "make all"
does not get very far, the first thing it complains about is "etext"
being undefined in "ghc/includes/ClosureMacros.h", I changed to "_etext"
to "etext" in "ghc/includes/config.h". Then I added a line to
"ghc/rts/MBlock.c":
        #define ASK_FOR_MEM_AT 0x50000000
Then I copied the aix aix_TARGET_OS ifdef from "ghc/rts/PrimOps.hc" to
"ghc/includes/PrimOps.h".
The I got the following error:

make[4]: Leaving directory `/pluto/home/jan/fptools/ghc/rts/gmp/mpz'
../../ghc/driver/ghc  -I../includes -I. -Igum -optc-Wall  -optc-W
-optc-Wstrict-prototypes  -optc-Wmissing-proto
Assembler:
/tmp/ccHbwaUa.s: line 61: 1252-044 The specified source character 0xc does not have
        meaning in the command context used.
/tmp/ccHbwaUa.s: line 61: 1252-142 Syntax error.
make[2]: *** [StgRun.o] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1

I removed the assembler files from "ghc/rts/Makefile" (probably not a good
idea). Then I got the error:

------------------------------------------------------------------------
==fptools== make all --no-print-directory -r;
 in /pluto/home/jan/ghc4/fptools/ghc/lib/std
------------------------------------------------------------------------
make[3]: *** No rule to make target `Array.o', needed by `libHS.a'.  Stop.
make[2]: *** [all] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1

Which I don't understand, am I missing some hc files ?

Regards,
  Jan

-- 
--------
Jan Kort

Reply via email to