=> Bootstrap dependency digest>=20211023: found digest-20211023
WARNING: [license.mk] Every package should define a LICENSE.
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Building for nhc98-1.22nb2
cd src/runtime;        /usr/pkg/bin/gmake all nhc98heap
gmake[1]: Entering directory '/work/lang/nhc98/work/nhc98-1.22/src/runtime'
cd Kernel; /usr/pkg/bin/gmake links
gmake[2]: Entering directory '/work/lang/nhc98/work/nhc98-1.22/src/runtime/Kernel'
gmake[2]: Leaving directory '/work/lang/nhc98/work/nhc98-1.22/src/runtime/Kernel'
cd Integer;   /usr/pkg/bin/gmake links
gmake[2]: Entering directory '/work/lang/nhc98/work/nhc98-1.22/src/runtime/Integer'
gmake[2]: Leaving directory '/work/lang/nhc98/work/nhc98-1.22/src/runtime/Integer'
cd Builtin;   /usr/pkg/bin/gmake links
gmake[2]: Entering directory '/work/lang/nhc98/work/nhc98-1.22/src/runtime/Builtin'
gmake[2]: Leaving directory '/work/lang/nhc98/work/nhc98-1.22/src/runtime/Builtin'
cd Mk;        /usr/pkg/bin/gmake links
gmake[2]: Entering directory '/work/lang/nhc98/work/nhc98-1.22/src/runtime/Mk'
gmake[2]: Leaving directory '/work/lang/nhc98/work/nhc98-1.22/src/runtime/Mk'
mkdir -p /work/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime
mkdir -p /work/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel || /usr/bin/true
mkdir -p /work/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Mk || /usr/bin/true
mkdir -p /work/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Builtin || /usr/bin/true
mkdir -p /work/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 '/work/lang/nhc98/work/nhc98-1.22/src/runtime/Kernel'
Link /work/lang/nhc98/work/nhc98-1.22/include/bytecode.h already exists.
Link /work/lang/nhc98/work/nhc98-1.22/include/cinterface.h already exists.
Link /work/lang/nhc98/work/nhc98-1.22/include/mutlib.h already exists.
Link /work/lang/nhc98/work/nhc98-1.22/include/newmacros.h already exists.
Link /work/lang/nhc98/work/nhc98-1.22/include/node.h already exists.
Link /work/lang/nhc98/work/nhc98-1.22/include/runtime.h already exists.
Link /work/lang/nhc98/work/nhc98-1.22/include/stableptr.h already exists.
Link /work/lang/nhc98/work/nhc98-1.22/include/newbytecode.h already exists.
Link /work/lang/nhc98/work/nhc98-1.22/include/bytecode_o.h already exists.
gcc -c    -m32 -I/work/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /work/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/mutator.o mutator.c
gcc -c    -m32 -I/work/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /work/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/mutlib.o mutlib.c
gcc -c    -m32 -I/work/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /work/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/main.o main.c
gcc -c    -m32 -I/work/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /work/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/haskellInit.o haskellInit.c
gcc -c    -m32 -I/work/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /work/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/dump.o dump.c
gcc -c    -m32 -I/work/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /work/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/inscount.o inscount.c
gcc -c    -m32 -I/work/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /work/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/collector.o collector.c
collector.c: In function 'initGc':
collector.c:56:43: warning: implicit declaration of function 'sbrk'; did you mean 'strtok'? [-Wimplicit-function-declaration]
       ((NodePtr)-1)== (hpStart = (NodePtr)sbrk((int)totalSize * sizeof(Node)))
                                           ^~~~
                                           strtok
gcc -c    -m32 -I/work/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /work/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/mark.o mark.c
gcc -c    -m32 -I/work/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /work/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/cdata.o cdata.c
gcc -c    -m32 -I/work/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /work/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/timeUnix.o timeUnix.c
gcc -c    -m32 -I/work/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /work/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/xlib_debug.o xlib_debug.c
gcc -c    -m32 -I/work/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /work/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/stableptr.o stableptr.c
gcc -c    -m32 -I/work/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /work/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/closureval.o closureval.c
In file included from /work/lang/nhc98/work/nhc98-1.22/include/node.h:7:0,
                 from /work/lang/nhc98/work/nhc98-1.22/include/cinterface.h:4,
                 from /work/lang/nhc98/work/nhc98-1.22/include/mk.h:2,
                 from /work/lang/nhc98/work/nhc98-1.22/include/haskell2c.h:4,
                 from closureval.c:2:
closureval.c: In function 'buildClosure':
/work/lang/nhc98/work/nhc98-1.22/include/runtime.h:286:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define C_CODE ((Code)FN_Prelude_46primLeave)
                 ^
/work/lang/nhc98/work/nhc98-1.22/include/cinterface.h:62:42: note: in expansion of macro 'C_CODE'
      *--Sp = (NodePtr)Fp; *--Sp=(NodePtr)C_CODE;Fp=Sp; \
                                          ^~~~~~
/work/lang/nhc98/work/nhc98-1.22/include/cinterface.h:57:52: note: in expansion of macro 'C_GC'
 #define C_CHECK(c)   if(Hp+(c)+BUFFER>(NodePtr)Sp){C_GC(c);}
                                                    ^~~~
closureval.c:25:5: note: in expansion of macro 'C_CHECK'
     C_CHECK(2*(args+1));
     ^~~~~~~
gcc -c    -m32 -I/work/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -O3 -o /work/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/ffiexport.o ffiexport.c
gcc -S    -m32 -I/work/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    -m32 -I/work/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -o /work/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/newtables.o -
gcc -S    -m32 -I/work/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    -m32 -I/work/lang/nhc98/work/nhc98-1.22/include -DVERSION="\"1.22\""   -o /work/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel/newbuiltin.o -
cd /work/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Kernel; \
	ar rv /work/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 /work/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 '/work/lang/nhc98/work/nhc98-1.22/src/runtime/Kernel'
cd Integer; /usr/pkg/bin/gmake all
gmake[2]: Entering directory '/work/lang/nhc98/work/nhc98-1.22/src/runtime/Integer'
Link /work/lang/nhc98/work/nhc98-1.22/include/flt.h already exists.
gcc -I../Kernel -I/work/lang/nhc98/work/nhc98-1.22/include  -O3  -m32  -Wno-pointer-to-int-cast `if [ xcre-mparam.c = x ];	\
		       then echo cre-mparam.c;		\
		       else echo cre-mparam.c; fi` -o /work/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Integer/cre-mparam
/work/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD/obj/runtime/Integer/cre-mparam > tmp-gmp-mparam.h
/libkver.so: invalid ELF class 2; expected 1
gmake[2]: *** [Makefile:53: gmp-mparam.h] Error 1
gmake[2]: Leaving directory '/work/lang/nhc98/work/nhc98-1.22/src/runtime/Integer'
gmake[1]: *** [Makefile:33: afile] Error 2
gmake[1]: Leaving directory '/work/lang/nhc98/work/nhc98-1.22/src/runtime'
gmake: *** [Makefile:238: targets/x86_64-NetBSD/runtime] Error 2
*** Error code 2

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

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