=> Bootstrap dependency digest>=20010302: found digest-20160304
WARNING: [license.mk] Every package should define a LICENSE.
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
===> Building for nhc98-1.22nb2
cd src/runtime;        /usr/pkg/bin/gmake all nhc98heap
gmake[1]: Entering directory '/data/scratch/lang/nhc98/work/nhc98-1.22/src/runtime'
cd Kernel; /usr/pkg/bin/gmake links
gmake[2]: Entering directory '/data/scratch/lang/nhc98/work/nhc98-1.22/src/runtime/Kernel'
gmake[2]: Leaving directory '/data/scratch/lang/nhc98/work/nhc98-1.22/src/runtime/Kernel'
cd Integer;   /usr/pkg/bin/gmake links
gmake[2]: Entering directory '/data/scratch/lang/nhc98/work/nhc98-1.22/src/runtime/Integer'
sh: 1: Syntax error: ")" unexpected (expecting "then")
gmake[2]: Leaving directory '/data/scratch/lang/nhc98/work/nhc98-1.22/src/runtime/Integer'
cd Builtin;   /usr/pkg/bin/gmake links
gmake[2]: Entering directory '/data/scratch/lang/nhc98/work/nhc98-1.22/src/runtime/Builtin'
sh: 1: Syntax error: ")" unexpected (expecting "then")
gmake[2]: Leaving directory '/data/scratch/lang/nhc98/work/nhc98-1.22/src/runtime/Builtin'
cd Mk;        /usr/pkg/bin/gmake links
gmake[2]: Entering directory '/data/scratch/lang/nhc98/work/nhc98-1.22/src/runtime/Mk'
gmake[2]: Leaving directory '/data/scratch/lang/nhc98/work/nhc98-1.22/src/runtime/Mk'
mkdir -p /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime
mkdir -p /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel || /usr/bin/true
mkdir -p /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Mk || /usr/bin/true
mkdir -p /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Builtin || /usr/bin/true
mkdir -p /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Integer || /usr/bin/true
cd Kernel; /usr/pkg/bin/gmake all
gmake[2]: Entering directory '/data/scratch/lang/nhc98/work/nhc98-1.22/src/runtime/Kernel'
Link /data/scratch/lang/nhc98/work/nhc98-1.22/include/bytecode.h already exists.
Link /data/scratch/lang/nhc98/work/nhc98-1.22/include/cinterface.h already exists.
Link /data/scratch/lang/nhc98/work/nhc98-1.22/include/mutlib.h already exists.
Link /data/scratch/lang/nhc98/work/nhc98-1.22/include/newmacros.h already exists.
Link /data/scratch/lang/nhc98/work/nhc98-1.22/include/node.h already exists.
Link /data/scratch/lang/nhc98/work/nhc98-1.22/include/runtime.h already exists.
Link /data/scratch/lang/nhc98/work/nhc98-1.22/include/stableptr.h already exists.
Link /data/scratch/lang/nhc98/work/nhc98-1.22/include/newbytecode.h already exists.
Link /data/scratch/lang/nhc98/work/nhc98-1.22/include/bytecode_o.h already exists.
gcc -c   -DLOW_BYTE_FIRST -m32 -I/data/scratch/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/mutator.o mutator.c
gcc -c   -DLOW_BYTE_FIRST -m32 -I/data/scratch/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/mutlib.o mutlib.c
gcc -c   -DLOW_BYTE_FIRST -m32 -I/data/scratch/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/main.o main.c
gcc -c   -DLOW_BYTE_FIRST -m32 -I/data/scratch/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/haskellInit.o haskellInit.c
haskellInit.c:72:32: warning: expression result unused [-Wunused-value]
    default: assign(i,i*prefix)/sizeof(Node); break;
             ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
haskellInit.c:70:48: warning: expression result unused [-Wunused-value]
    case 'b': case 'B': s++; assign(i,i*prefix)/sizeof(Node); break;
                             ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
2 warnings generated.
gcc -c   -DLOW_BYTE_FIRST -m32 -I/data/scratch/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/dump.o dump.c
gcc -c   -DLOW_BYTE_FIRST -m32 -I/data/scratch/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/inscount.o inscount.c
gcc -c   -DLOW_BYTE_FIRST -m32 -I/data/scratch/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/collector.o collector.c
collector.c:56:43: warning: implicit declaration of function 'sbrk' is invalid in C99 [-Wimplicit-function-declaration]
      ((NodePtr)-1)== (hpStart = (NodePtr)sbrk((int)totalSize * sizeof(Node)))
                                          ^
collector.c:75:51: warning: format specifies type 'unsigned int' but the argument has type 'NodePtr' (aka 'unsigned long *') [-Wformat]
    fprintf(stderr,"  hpStart=0x%x, hpEnd=0x%x\n",hpStart,hpEnd);
                                ~~                ^~~~~~~
collector.c:75:59: warning: format specifies type 'unsigned int' but the argument has type 'NodePtr' (aka 'unsigned long *') [-Wformat]
    fprintf(stderr,"  hpStart=0x%x, hpEnd=0x%x\n",hpStart,hpEnd);
                                            ~~            ^~~~~
3 warnings generated.
gcc -c   -DLOW_BYTE_FIRST -m32 -I/data/scratch/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/mark.o mark.c
gcc -c   -DLOW_BYTE_FIRST -m32 -I/data/scratch/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/cdata.o cdata.c
gcc -c   -DLOW_BYTE_FIRST -m32 -I/data/scratch/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/timeUnix.o timeUnix.c
gcc -c   -DLOW_BYTE_FIRST -m32 -I/data/scratch/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/xlib_debug.o xlib_debug.c
gcc -c   -DLOW_BYTE_FIRST -m32 -I/data/scratch/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/stableptr.o stableptr.c
gcc -c   -DLOW_BYTE_FIRST -m32 -I/data/scratch/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/closureval.o closureval.c
closureval.c:25:5: warning: cast to 'NodePtr' (aka 'unsigned long *') from smaller integer type 'Code' (aka 'unsigned char') [-Wint-to-pointer-cast]
    C_CHECK(2*(args+1));
    ^
/data/scratch/lang/nhc98/work/nhc98-1.22/include/cinterface.h:57:52: note: expanded from macro 'C_CHECK'
#define C_CHECK(c)   if(Hp+(c)+BUFFER>(NodePtr)Sp){C_GC(c);}
                                                   ^
/data/scratch/lang/nhc98/work/nhc98-1.22/include/cinterface.h:62:33: note: expanded from macro 'C_GC'
     *--Sp = (NodePtr)Fp; *--Sp=(NodePtr)C_CODE;Fp=Sp; \
                                ^
1 warning generated.
gcc -c   -DLOW_BYTE_FIRST -m32 -I/data/scratch/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/ffiexport.o ffiexport.c
gcc -S   -DLOW_BYTE_FIRST -m32 -I/data/scratch/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -o - newtables.c |\
	sed -e '/.align 32/s/32/4/' -e '/.p2align 5/s/5/2/' |\
	gcc -c -x assembler-with-cpp   -DLOW_BYTE_FIRST -m32 -I/data/scratch/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/newtables.o -
gcc -S   -DLOW_BYTE_FIRST -m32 -I/data/scratch/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -o - newbuiltin.c |\
	sed -e '/.align 32/s/32/4/' -e '/.p2align 5/s/5/2/' |\
	gcc -c -x assembler-with-cpp   -DLOW_BYTE_FIRST -m32 -I/data/scratch/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/newbuiltin.o -
cd /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel; \
	ar rv /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/Runtime.a haskellInit.o dump.o inscount.o collector.o mark.o cdata.o timeUnix.o xlib_debug.o stableptr.o closureval.o ffiexport.o newtables.o newbuiltin.o
ar: creating /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/Runtime.a
a - haskellInit.o
a - dump.o
a - inscount.o
a - collector.o
a - mark.o
a - cdata.o
a - timeUnix.o
a - xlib_debug.o
a - stableptr.o
a - closureval.o
a - ffiexport.o
a - newtables.o
a - newbuiltin.o
gmake[2]: Leaving directory '/data/scratch/lang/nhc98/work/nhc98-1.22/src/runtime/Kernel'
cd Integer; /usr/pkg/bin/gmake all
gmake[2]: Entering directory '/data/scratch/lang/nhc98/work/nhc98-1.22/src/runtime/Integer'
sh: 1: Syntax error: ")" unexpected (expecting "then")
Link /data/scratch/lang/nhc98/work/nhc98-1.22/include/flt.h already exists.
sh: 1: Syntax error: ")" unexpected (expecting "then")
gcc -I../Kernel -I/data/scratch/lang/nhc98/work/nhc98-1.22/include  -O3 -DLOW_BYTE_FIRST -m32   `if [ xcre-mparam.c = x ];	\
		       then echo cre-mparam.c;		\
		       else echo cre-mparam.c; fi` -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Integer/cre-mparam
sh: 1: Syntax error: ")" unexpected (expecting "then")
/data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Integer/cre-mparam > tmp-gmp-mparam.h
sh: 1: Syntax error: ")" unexpected (expecting "then")
mv tmp-gmp-mparam.h gmp-mparam.h
sh: 1: Syntax error: ")" unexpected (expecting "then")
gcc -c -I../Kernel -I/data/scratch/lang/nhc98/work/nhc98-1.22/include  -O3 -DLOW_BYTE_FIRST -m32   -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Integer/mpz_add.o mpz_add.c
sh: 1: Syntax error: ")" unexpected (expecting "then")
mpz_add.c:25:1: warning: cast to 'NodePtr' (aka 'unsigned long *') from smaller integer type 'Code' (aka 'unsigned char') [-Wint-to-pointer-cast]
INTEGER2(primIntegerAdd,mpz_add,mpz_add_need)
^
./haskell2c.h:48:7: note: expanded from macro 'INTEGER2'
      C_CHECK_STMT(size,u = (MP_INT*)C_GETARG1(1);v = (MP_INT*)C_GETARG1(2);); \
      ^
../Kernel/cinterface.h:58:62: note: expanded from macro 'C_CHECK_STMT'
#define C_CHECK_STMT(c,stmt)   if(Hp+(c)+BUFFER>(NodePtr)Sp){C_GC(c);stmt}
                                                             ^
../Kernel/cinterface.h:62:33: note: expanded from macro 'C_GC'
     *--Sp = (NodePtr)Fp; *--Sp=(NodePtr)C_CODE;Fp=Sp; \
                                ^
mpz_add.c:26:1: warning: cast to 'NodePtr' (aka 'unsigned long *') from smaller integer type 'Code' (aka 'unsigned char') [-Wint-to-pointer-cast]
INTEGER2_C(primIntegerAddC,mpz_add,mpz_add_need)
^
./haskell2c.h:63:7: note: expanded from macro 'INTEGER2_C'
      C_CHECK(size); \
      ^
../Kernel/cinterface.h:57:52: note: expanded from macro 'C_CHECK'
#define C_CHECK(c)   if(Hp+(c)+BUFFER>(NodePtr)Sp){C_GC(c);}
                                                   ^
../Kernel/cinterface.h:62:33: note: expanded from macro 'C_GC'
     *--Sp = (NodePtr)Fp; *--Sp=(NodePtr)C_CODE;Fp=Sp; \
                                ^
2 warnings generated.
sh: 1: Syntax error: ")" unexpected (expecting "then")
gcc -c -I../Kernel -I/data/scratch/lang/nhc98/work/nhc98-1.22/include  -O3 -DLOW_BYTE_FIRST -m32   -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Integer/mpz_sub.o mpz_sub.c
sh: 1: Syntax error: ")" unexpected (expecting "then")
mpz_sub.c:25:1: warning: cast to 'NodePtr' (aka 'unsigned long *') from smaller integer type 'Code' (aka 'unsigned char') [-Wint-to-pointer-cast]
INTEGER2(primIntegerSub,mpz_sub,mpz_sub_need)
^
./haskell2c.h:48:7: note: expanded from macro 'INTEGER2'
      C_CHECK_STMT(size,u = (MP_INT*)C_GETARG1(1);v = (MP_INT*)C_GETARG1(2);); \
      ^
../Kernel/cinterface.h:58:62: note: expanded from macro 'C_CHECK_STMT'
#define C_CHECK_STMT(c,stmt)   if(Hp+(c)+BUFFER>(NodePtr)Sp){C_GC(c);stmt}
                                                             ^
../Kernel/cinterface.h:62:33: note: expanded from macro 'C_GC'
     *--Sp = (NodePtr)Fp; *--Sp=(NodePtr)C_CODE;Fp=Sp; \
                                ^
mpz_sub.c:26:1: warning: cast to 'NodePtr' (aka 'unsigned long *') from smaller integer type 'Code' (aka 'unsigned char') [-Wint-to-pointer-cast]
INTEGER2_C(primIntegerSubC,mpz_sub,mpz_sub_need)
^
./haskell2c.h:63:7: note: expanded from macro 'INTEGER2_C'
      C_CHECK(size); \
      ^
../Kernel/cinterface.h:57:52: note: expanded from macro 'C_CHECK'
#define C_CHECK(c)   if(Hp+(c)+BUFFER>(NodePtr)Sp){C_GC(c);}
                                                   ^
../Kernel/cinterface.h:62:33: note: expanded from macro 'C_GC'
     *--Sp = (NodePtr)Fp; *--Sp=(NodePtr)C_CODE;Fp=Sp; \
                                ^
2 warnings generated.
sh: 1: Syntax error: ")" unexpected (expecting "then")
gcc -c -I../Kernel -I/data/scratch/lang/nhc98/work/nhc98-1.22/include  -O3 -DLOW_BYTE_FIRST -m32   -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Integer/mpz_mul.o mpz_mul.c
sh: 1: Syntax error: ")" unexpected (expecting "then")
mpz_mul.c:25:1: warning: cast to 'NodePtr' (aka 'unsigned long *') from smaller integer type 'Code' (aka 'unsigned char') [-Wint-to-pointer-cast]
INTEGER2(primIntegerMul,mpz_mul,mpz_mul_need)
^
./haskell2c.h:48:7: note: expanded from macro 'INTEGER2'
      C_CHECK_STMT(size,u = (MP_INT*)C_GETARG1(1);v = (MP_INT*)C_GETARG1(2);); \
      ^
../Kernel/cinterface.h:58:62: note: expanded from macro 'C_CHECK_STMT'
#define C_CHECK_STMT(c,stmt)   if(Hp+(c)+BUFFER>(NodePtr)Sp){C_GC(c);stmt}
                                                             ^
../Kernel/cinterface.h:62:33: note: expanded from macro 'C_GC'
     *--Sp = (NodePtr)Fp; *--Sp=(NodePtr)C_CODE;Fp=Sp; \
                                ^
mpz_mul.c:26:1: warning: cast to 'NodePtr' (aka 'unsigned long *') from smaller integer type 'Code' (aka 'unsigned char') [-Wint-to-pointer-cast]
INTEGER2_C(primIntegerMulC,mpz_mul,mpz_mul_need)
^
./haskell2c.h:63:7: note: expanded from macro 'INTEGER2_C'
      C_CHECK(size); \
      ^
../Kernel/cinterface.h:57:52: note: expanded from macro 'C_CHECK'
#define C_CHECK(c)   if(Hp+(c)+BUFFER>(NodePtr)Sp){C_GC(c);}
                                                   ^
../Kernel/cinterface.h:62:33: note: expanded from macro 'C_GC'
     *--Sp = (NodePtr)Fp; *--Sp=(NodePtr)C_CODE;Fp=Sp; \
                                ^
2 warnings generated.
sh: 1: Syntax error: ")" unexpected (expecting "then")
gcc -c -I../Kernel -I/data/scratch/lang/nhc98/work/nhc98-1.22/include  -O3 -DLOW_BYTE_FIRST -m32   -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Integer/mpz_div.o mpz_div.c
sh: 1: Syntax error: ")" unexpected (expecting "then")
mpz_div.c:27:1: warning: cast to 'NodePtr' (aka 'unsigned long *') from smaller integer type 'Code' (aka 'unsigned char') [-Wint-to-pointer-cast]
INTEGER2(primIntegerQuot,mpz_div,mpz_div_need)
^
./haskell2c.h:48:7: note: expanded from macro 'INTEGER2'
      C_CHECK_STMT(size,u = (MP_INT*)C_GETARG1(1);v = (MP_INT*)C_GETARG1(2);); \
      ^
../Kernel/cinterface.h:58:62: note: expanded from macro 'C_CHECK_STMT'
#define C_CHECK_STMT(c,stmt)   if(Hp+(c)+BUFFER>(NodePtr)Sp){C_GC(c);stmt}
                                                             ^
../Kernel/cinterface.h:62:33: note: expanded from macro 'C_GC'
     *--Sp = (NodePtr)Fp; *--Sp=(NodePtr)C_CODE;Fp=Sp; \
                                ^
mpz_div.c:28:1: warning: cast to 'NodePtr' (aka 'unsigned long *') from smaller integer type 'Code' (aka 'unsigned char') [-Wint-to-pointer-cast]
INTEGER2_C(primIntegerQuotC,mpz_div,mpz_div_need)
^
./haskell2c.h:63:7: note: expanded from macro 'INTEGER2_C'
      C_CHECK(size); \
      ^
../Kernel/cinterface.h:57:52: note: expanded from macro 'C_CHECK'
#define C_CHECK(c)   if(Hp+(c)+BUFFER>(NodePtr)Sp){C_GC(c);}
                                                   ^
../Kernel/cinterface.h:62:33: note: expanded from macro 'C_GC'
     *--Sp = (NodePtr)Fp; *--Sp=(NodePtr)C_CODE;Fp=Sp; \
                                ^
2 warnings generated.
sh: 1: Syntax error: ")" unexpected (expecting "then")
gcc -c -I../Kernel -I/data/scratch/lang/nhc98/work/nhc98-1.22/include  -O3 -DLOW_BYTE_FIRST -m32   -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Integer/mpz_mod.o mpz_mod.c
sh: 1: Syntax error: ")" unexpected (expecting "then")
mpz_mod.c:28:1: warning: cast to 'NodePtr' (aka 'unsigned long *') from smaller integer type 'Code' (aka 'unsigned char') [-Wint-to-pointer-cast]
INTEGER2(primIntegerRem,mpz_mod,mpz_mod_need)
^
./haskell2c.h:48:7: note: expanded from macro 'INTEGER2'
      C_CHECK_STMT(size,u = (MP_INT*)C_GETARG1(1);v = (MP_INT*)C_GETARG1(2);); \
      ^
../Kernel/cinterface.h:58:62: note: expanded from macro 'C_CHECK_STMT'
#define C_CHECK_STMT(c,stmt)   if(Hp+(c)+BUFFER>(NodePtr)Sp){C_GC(c);stmt}
                                                             ^
../Kernel/cinterface.h:62:33: note: expanded from macro 'C_GC'
     *--Sp = (NodePtr)Fp; *--Sp=(NodePtr)C_CODE;Fp=Sp; \
                                ^
mpz_mod.c:29:1: warning: cast to 'NodePtr' (aka 'unsigned long *') from smaller integer type 'Code' (aka 'unsigned char') [-Wint-to-pointer-cast]
INTEGER2_C(primIntegerRemC,mpz_mod,mpz_mod_need)
^
./haskell2c.h:63:7: note: expanded from macro 'INTEGER2_C'
      C_CHECK(size); \
      ^
../Kernel/cinterface.h:57:52: note: expanded from macro 'C_CHECK'
#define C_CHECK(c)   if(Hp+(c)+BUFFER>(NodePtr)Sp){C_GC(c);}
                                                   ^
../Kernel/cinterface.h:62:33: note: expanded from macro 'C_GC'
     *--Sp = (NodePtr)Fp; *--Sp=(NodePtr)C_CODE;Fp=Sp; \
                                ^
2 warnings generated.
sh: 1: Syntax error: ")" unexpected (expecting "then")
gcc -c -I../Kernel -I/data/scratch/lang/nhc98/work/nhc98-1.22/include  -O3 -DLOW_BYTE_FIRST -m32   -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Integer/mpz_neg.o mpz_neg.c
sh: 1: Syntax error: ")" unexpected (expecting "then")
mpz_neg.c:26:1: warning: cast to 'NodePtr' (aka 'unsigned long *') from smaller integer type 'Code' (aka 'unsigned char') [-Wint-to-pointer-cast]
INTEGER1(primIntegerNeg,mpz_neg)   /* INTEGER1 check size */
^
./haskell2c.h:15:7: note: expanded from macro 'INTEGER1'
      C_CHECK_STMT(1+(Int)CONINFO_LARGESIZEU(*nodeptr)+EXTRA,nodeptr = C_GETARG1(1);); \
      ^
../Kernel/cinterface.h:58:62: note: expanded from macro 'C_CHECK_STMT'
#define C_CHECK_STMT(c,stmt)   if(Hp+(c)+BUFFER>(NodePtr)Sp){C_GC(c);stmt}
                                                             ^
../Kernel/cinterface.h:62:33: note: expanded from macro 'C_GC'
     *--Sp = (NodePtr)Fp; *--Sp=(NodePtr)C_CODE;Fp=Sp; \
                                ^
mpz_neg.c:27:1: warning: cast to 'NodePtr' (aka 'unsigned long *') from smaller integer type 'Code' (aka 'unsigned char') [-Wint-to-pointer-cast]
INTEGER1_C(primIntegerNegC,mpz_neg)   /* INTEGER1 check size */
^
./haskell2c.h:28:7: note: expanded from macro 'INTEGER1_C'
      C_CHECK(1+(Int)CONINFO_LARGESIZEU(*x)+EXTRA); \
      ^
../Kernel/cinterface.h:57:52: note: expanded from macro 'C_CHECK'
#define C_CHECK(c)   if(Hp+(c)+BUFFER>(NodePtr)Sp){C_GC(c);}
                                                   ^
../Kernel/cinterface.h:62:33: note: expanded from macro 'C_GC'
     *--Sp = (NodePtr)Fp; *--Sp=(NodePtr)C_CODE;Fp=Sp; \
                                ^
2 warnings generated.
sh: 1: Syntax error: ")" unexpected (expecting "then")
gcc -c -I../Kernel -I/data/scratch/lang/nhc98/work/nhc98-1.22/include  -O3 -DLOW_BYTE_FIRST -m32   -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Integer/mpz_abs.o mpz_abs.c
sh: 1: Syntax error: ")" unexpected (expecting "then")
mpz_abs.c:24:1: warning: cast to 'NodePtr' (aka 'unsigned long *') from smaller integer type 'Code' (aka 'unsigned char') [-Wint-to-pointer-cast]
INTEGER1(primIntegerAbs,mpz_abs) /* INTEGER1 check size */
^
./haskell2c.h:15:7: note: expanded from macro 'INTEGER1'
      C_CHECK_STMT(1+(Int)CONINFO_LARGESIZEU(*nodeptr)+EXTRA,nodeptr = C_GETARG1(1);); \
      ^
../Kernel/cinterface.h:58:62: note: expanded from macro 'C_CHECK_STMT'
#define C_CHECK_STMT(c,stmt)   if(Hp+(c)+BUFFER>(NodePtr)Sp){C_GC(c);stmt}
                                                             ^
../Kernel/cinterface.h:62:33: note: expanded from macro 'C_GC'
     *--Sp = (NodePtr)Fp; *--Sp=(NodePtr)C_CODE;Fp=Sp; \
                                ^
mpz_abs.c:25:1: warning: cast to 'NodePtr' (aka 'unsigned long *') from smaller integer type 'Code' (aka 'unsigned char') [-Wint-to-pointer-cast]
INTEGER1_C(primIntegerAbsC,mpz_abs) /* INTEGER1 check size */
^
./haskell2c.h:28:7: note: expanded from macro 'INTEGER1_C'
      C_CHECK(1+(Int)CONINFO_LARGESIZEU(*x)+EXTRA); \
      ^
../Kernel/cinterface.h:57:52: note: expanded from macro 'C_CHECK'
#define C_CHECK(c)   if(Hp+(c)+BUFFER>(NodePtr)Sp){C_GC(c);}
                                                   ^
../Kernel/cinterface.h:62:33: note: expanded from macro 'C_GC'
     *--Sp = (NodePtr)Fp; *--Sp=(NodePtr)C_CODE;Fp=Sp; \
                                ^
2 warnings generated.
sh: 1: Syntax error: ")" unexpected (expecting "then")
gcc -c -I../Kernel -I/data/scratch/lang/nhc98/work/nhc98-1.22/include  -O3 -DLOW_BYTE_FIRST -m32   -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Integer/mpz_cmp.o mpz_cmp.c
sh: 1: Syntax error: ")" unexpected (expecting "then")
sh: 1: Syntax error: ")" unexpected (expecting "then")
gcc -c -I../Kernel -I/data/scratch/lang/nhc98/work/nhc98-1.22/include  -O3 -DLOW_BYTE_FIRST -m32   -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Integer/mpz_or.o mpz_or.c
sh: 1: Syntax error: ")" unexpected (expecting "then")
mpz_or.c:25:1: warning: cast to 'NodePtr' (aka 'unsigned long *') from smaller integer type 'Code' (aka 'unsigned char') [-Wint-to-pointer-cast]
INTEGER2(primIntegerOr,mpz_or,mpz_or_need)
^
./haskell2c.h:48:7: note: expanded from macro 'INTEGER2'
      C_CHECK_STMT(size,u = (MP_INT*)C_GETARG1(1);v = (MP_INT*)C_GETARG1(2);); \
      ^
../Kernel/cinterface.h:58:62: note: expanded from macro 'C_CHECK_STMT'
#define C_CHECK_STMT(c,stmt)   if(Hp+(c)+BUFFER>(NodePtr)Sp){C_GC(c);stmt}
                                                             ^
../Kernel/cinterface.h:62:33: note: expanded from macro 'C_GC'
     *--Sp = (NodePtr)Fp; *--Sp=(NodePtr)C_CODE;Fp=Sp; \
                                ^
mpz_or.c:26:1: warning: cast to 'NodePtr' (aka 'unsigned long *') from smaller integer type 'Code' (aka 'unsigned char') [-Wint-to-pointer-cast]
INTEGER2_C(primIntegerOrC,mpz_or,mpz_or_need)
^
./haskell2c.h:63:7: note: expanded from macro 'INTEGER2_C'
      C_CHECK(size); \
      ^
../Kernel/cinterface.h:57:52: note: expanded from macro 'C_CHECK'
#define C_CHECK(c)   if(Hp+(c)+BUFFER>(NodePtr)Sp){C_GC(c);}
                                                   ^
../Kernel/cinterface.h:62:33: note: expanded from macro 'C_GC'
     *--Sp = (NodePtr)Fp; *--Sp=(NodePtr)C_CODE;Fp=Sp; \
                                ^
2 warnings generated.
sh: 1: Syntax error: ")" unexpected (expecting "then")
gcc -c -I../Kernel -I/data/scratch/lang/nhc98/work/nhc98-1.22/include  -O3 -DLOW_BYTE_FIRST -m32   -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Integer/mpz_and.o mpz_and.c
sh: 1: Syntax error: ")" unexpected (expecting "then")
mpz_and.c:25:1: warning: cast to 'NodePtr' (aka 'unsigned long *') from smaller integer type 'Code' (aka 'unsigned char') [-Wint-to-pointer-cast]
INTEGER2(primIntegerAnd,mpz_and,mpz_and_need)
^
./haskell2c.h:48:7: note: expanded from macro 'INTEGER2'
      C_CHECK_STMT(size,u = (MP_INT*)C_GETARG1(1);v = (MP_INT*)C_GETARG1(2);); \
      ^
../Kernel/cinterface.h:58:62: note: expanded from macro 'C_CHECK_STMT'
#define C_CHECK_STMT(c,stmt)   if(Hp+(c)+BUFFER>(NodePtr)Sp){C_GC(c);stmt}
                                                             ^
../Kernel/cinterface.h:62:33: note: expanded from macro 'C_GC'
     *--Sp = (NodePtr)Fp; *--Sp=(NodePtr)C_CODE;Fp=Sp; \
                                ^
mpz_and.c:26:1: warning: cast to 'NodePtr' (aka 'unsigned long *') from smaller integer type 'Code' (aka 'unsigned char') [-Wint-to-pointer-cast]
INTEGER2_C(primIntegerAndC,mpz_and,mpz_and_need)
^
./haskell2c.h:63:7: note: expanded from macro 'INTEGER2_C'
      C_CHECK(size); \
      ^
../Kernel/cinterface.h:57:52: note: expanded from macro 'C_CHECK'
#define C_CHECK(c)   if(Hp+(c)+BUFFER>(NodePtr)Sp){C_GC(c);}
                                                   ^
../Kernel/cinterface.h:62:33: note: expanded from macro 'C_GC'
     *--Sp = (NodePtr)Fp; *--Sp=(NodePtr)C_CODE;Fp=Sp; \
                                ^
2 warnings generated.
sh: 1: Syntax error: ")" unexpected (expecting "then")
gcc -c -I../Kernel -I/data/scratch/lang/nhc98/work/nhc98-1.22/include  -O3 -DLOW_BYTE_FIRST -m32   -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Integer/mpn_cmp.o mpn_cmp.c
sh: 1: Syntax error: ")" unexpected (expecting "then")
sh: 1: Syntax error: ")" unexpected (expecting "then")
gcc -c -I../Kernel -I/data/scratch/lang/nhc98/work/nhc98-1.22/include  -O3 -DLOW_BYTE_FIRST -m32   -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Integer/mpn_sub.o mpn_sub.c
sh: 1: Syntax error: ")" unexpected (expecting "then")
sh: 1: Syntax error: ")" unexpected (expecting "then")
gcc -c -I../Kernel -I/data/scratch/lang/nhc98/work/nhc98-1.22/include  -O3 -DLOW_BYTE_FIRST -m32   -o /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Integer/mpn_div.o mpn_div.c
sh: 1: Syntax error: ")" unexpected (expecting "then")
mpn_div.c:89:25: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
            udiv_qrnnd (quot_ptr[i], n1, n1, n0, d);
            ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
./asmlong.h:109:30: note: expanded from macro 'udiv_qrnnd'
        : "=a" ((unsigned long int)(q)), "=d" ((unsigned long int)(r))  \
                ~~~~~~~~~~~~~~~~~~~~^~
mpn_div.c:89:38: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
            udiv_qrnnd (quot_ptr[i], n1, n1, n0, d);
            ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
./asmlong.h:109:61: note: expanded from macro 'udiv_qrnnd'
        : "=a" ((unsigned long int)(q)), "=d" ((unsigned long int)(r))  \
                                               ~~~~~~~~~~~~~~~~~~~~^~
mpn_div.c:135:33: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
                    add_ssaaaa (n0, n1, r - d1, n2, 0, d1);
                    ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
./asmlong.h:94:36: note: expanded from macro 'add_ssaaaa'
       : "=r" ((unsigned long int)(sh)), "=&r" ((unsigned long int)(sl))\
               ~~~~~~~~~~~~~~~~~~~~^~~
mpn_div.c:135:37: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
                    add_ssaaaa (n0, n1, r - d1, n2, 0, d1);
                    ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
./asmlong.h:94:69: note: expanded from macro 'add_ssaaaa'
       : "=r" ((unsigned long int)(sh)), "=&r" ((unsigned long int)(sl))\
                                                ~~~~~~~~~~~~~~~~~~~~^~~
mpn_div.c:144:29: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
                udiv_qrnnd (q, r, n0, n1, d0);
                ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
./asmlong.h:109:30: note: expanded from macro 'udiv_qrnnd'
        : "=a" ((unsigned long int)(q)), "=d" ((unsigned long int)(r))  \
                ~~~~~~~~~~~~~~~~~~~~^~
mpn_div.c:144:32: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
                udiv_qrnnd (q, r, n0, n1, d0);
                ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
./asmlong.h:109:61: note: expanded from macro 'udiv_qrnnd'
        : "=a" ((unsigned long int)(q)), "=d" ((unsigned long int)(r))  \
                                               ~~~~~~~~~~~~~~~~~~~~^~
mpn_div.c:145:32: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
                umul_ppmm (n0, n1, d1, q);
                ~~~~~~~~~~~~~~~^~~~~~~~~~
./asmlong.h:105:30: note: expanded from macro 'umul_ppmm'
        : "=a" ((unsigned long int)(w0)), "=d" ((unsigned long int)(w1))\
                ~~~~~~~~~~~~~~~~~~~~^~~
mpn_div.c:145:28: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
                umul_ppmm (n0, n1, d1, q);
                ~~~~~~~~~~~^~~~~~~~~~~~~~
./asmlong.h:105:62: note: expanded from macro 'umul_ppmm'
        : "=a" ((unsigned long int)(w0)), "=d" ((unsigned long int)(w1))\
                                                ~~~~~~~~~~~~~~~~~~~~^~~
mpn_div.c:155:29: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
                sub_ddmmss (n0, n1, n0, n1, 0, d1);
                ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
./asmlong.h:100:36: note: expanded from macro 'sub_ddmmss'
       : "=r" ((unsigned long int)(sh)), "=&r" ((unsigned long int)(sl))\
               ~~~~~~~~~~~~~~~~~~~~^~~
mpn_div.c:155:33: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
                sub_ddmmss (n0, n1, n0, n1, 0, d1);
                ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
./asmlong.h:100:69: note: expanded from macro 'sub_ddmmss'
       : "=r" ((unsigned long int)(sh)), "=&r" ((unsigned long int)(sl))\
                                                ~~~~~~~~~~~~~~~~~~~~^~~
mpn_div.c:162:25: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
            sub_ddmmss (n0, n1, r, n2, n0, n1);
            ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
./asmlong.h:100:36: note: expanded from macro 'sub_ddmmss'
       : "=r" ((unsigned long int)(sh)), "=&r" ((unsigned long int)(sl))\
               ~~~~~~~~~~~~~~~~~~~~^~~
mpn_div.c:162:29: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
            sub_ddmmss (n0, n1, r, n2, n0, n1);
            ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
./asmlong.h:100:69: note: expanded from macro 'sub_ddmmss'
       : "=r" ((unsigned long int)(sh)), "=&r" ((unsigned long int)(sl))\
                                                ~~~~~~~~~~~~~~~~~~~~^~~
mpn_div.c:216:29: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
                udiv_qrnnd (q, r, n0, num_ptr[-1], d0);
                ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
./asmlong.h:109:30: note: expanded from macro 'udiv_qrnnd'
        : "=a" ((unsigned long int)(q)), "=d" ((unsigned long int)(r))  \
                ~~~~~~~~~~~~~~~~~~~~^~
mpn_div.c:216:32: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
                udiv_qrnnd (q, r, n0, num_ptr[-1], d0);
                ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
./asmlong.h:109:61: note: expanded from macro 'udiv_qrnnd'
        : "=a" ((unsigned long int)(q)), "=d" ((unsigned long int)(r))  \
                                               ~~~~~~~~~~~~~~~~~~~~^~
mpn_div.c:217:32: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
                umul_ppmm (n1, n0, d1, q);
                ~~~~~~~~~~~~~~~^~~~~~~~~~
./asmlong.h:105:30: note: expanded from macro 'umul_ppmm'
        : "=a" ((unsigned long int)(w0)), "=d" ((unsigned long int)(w1))\
                ~~~~~~~~~~~~~~~~~~~~^~~
mpn_div.c:217:28: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
                umul_ppmm (n1, n0, d1, q);
                ~~~~~~~~~~~^~~~~~~~~~~~~~
./asmlong.h:105:62: note: expanded from macro 'umul_ppmm'
        : "=a" ((unsigned long int)(w0)), "=d" ((unsigned long int)(w1))\
                                                ~~~~~~~~~~~~~~~~~~~~^~~
mpn_div.c:236:32: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
                umul_ppmm (n1, n0, d, q);
                ~~~~~~~~~~~~~~~^~~~~~~~~
./asmlong.h:105:30: note: expanded from macro 'umul_ppmm'
        : "=a" ((unsigned long int)(w0)), "=d" ((unsigned long int)(w1))\
                ~~~~~~~~~~~~~~~~~~~~^~~
mpn_div.c:236:28: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
                umul_ppmm (n1, n0, d, q);
                ~~~~~~~~~~~^~~~~~~~~~~~~
./asmlong.h:105:62: note: expanded from macro 'umul_ppmm'
        : "=a" ((unsigned long int)(w0)), "=d" ((unsigned long int)(w1))\
                                                ~~~~~~~~~~~~~~~~~~~~^~~
mpn_div.c:263:32: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
                umul_ppmm (n1, n0, d, q);
                ~~~~~~~~~~~~~~~^~~~~~~~~
./asmlong.h:105:30: note: expanded from macro 'umul_ppmm'
        : "=a" ((unsigned long int)(w0)), "=d" ((unsigned long int)(w1))\
                ~~~~~~~~~~~~~~~~~~~~^~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
Makefile:35: recipe for target '/data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Integer/mpn_div.o' failed
gmake[2]: *** [/data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Integer/mpn_div.o] Error 1
gmake[2]: Leaving directory '/data/scratch/lang/nhc98/work/nhc98-1.22/src/runtime/Integer'
Makefile:33: recipe for target 'afile' failed
gmake[1]: *** [afile] Error 2
gmake[1]: Leaving directory '/data/scratch/lang/nhc98/work/nhc98-1.22/src/runtime'
Makefile:238: recipe for target 'targets/x86_64-NetBSD/runtime' failed
gmake: *** [targets/x86_64-NetBSD/runtime] Error 2
*** Error code 2

Stop.
make[1]: stopped in /data/pkgsrc/lang/nhc98
*** Error code 1

Stop.
make: stopped in /data/pkgsrc/lang/nhc98