Hi all.  Some build gotchas which I haven't seen reported (which
makes me wonder what stupid thing I did that others have not).

Setup is Solaris 2.5, ghc-3.02.

Firstly: gnumake all fails in build gmp, thusly:

gnumake -C gmp MAKEFLAGS=
cd mpn; gnumake "CC=../../ghc/driver/ghc " "CFLAGS=-O" "XCFLAGS=" libmpn.a
gnumake[3]: Entering directory 
`/export/home/ferguson/ghc-4.00/build/ghc/rts/gmp/mpn'
../../ghc/driver/ghc  -c -I. -I.. -I. -I./.. -O  mp_bases.c
gnumake[3]: ../../ghc/driver/ghc: Command not found


Looks like it needs to be using ../../../../ghc/driver/ghc at this
point, so far as I can tell.


Hacking around this, I then get some assembler problems:

../../../../ghc/driver/ghc  -c tmp-udiv_fp.s -o udiv_fp.o
/usr/ccs/bin/as: "tmp-udiv_fp.s", line 1: error: invalid character (0x7b)
/usr/ccs/bin/as: "tmp-udiv_fp.s", line 1: error: invalid character (0x4c)
/usr/ccs/bin/as: "tmp-udiv_fp.s", line 1: error: unknown opcode "LINE"
/usr/ccs/bin/as: "tmp-udiv_fp.s", line 1: error: invalid character (0x7d)
/usr/ccs/bin/as: "tmp-udiv_fp.s", line 1: error: statement syntax
/usr/ccs/bin/as: "tmp-udiv_fp.s", line 38: error: statement syntax
/usr/ccs/bin/as: "tmp-udiv_fp.s", line 39: error: unknown opcode "C_SYMBOL_NAME"
/usr/ccs/bin/as: "tmp-udiv_fp.s", line 39: error: statement syntax


Offending lines look like:

{-# LINE 1 "udiv_fp.S" -}

(Unrecognised comment, it seems.)  and:

        .global C_SYMBOL_NAME(__udiv_qrnnd)
C_SYMBOL_NAME(__udiv_qrnnd):

(Which is bad label syntax.)


Then I get 83 million similiar errors in tmp-add_n.s, in the same place.
At this point I lost the will to live, much less debug assembler by
hand.  Satnam Singh suggests the problem is a missing include of a
bunch of as-macros which make the above make sense, if that helps.

Slan libh,
Alex.

Reply via email to