> when attempting to bootstrap under netbsd-current:
>
> ==fptools== gmake all -r;
> in /orb/s/netbsd/usr/pkgsrc/lang/ghc/work.i386/fptools/ghc/lib/misc
> --------------------------------------------------------------
> ----------
> rm -f CString.o ; if [ ! -d CString ]; then mkdir CString;
> else find CString -name '*.o' -print | xargs rm -f __rm_food ; fi ;
> ../../../ghc/driver/ghc -i../concurrent:../posix -recomp -cpp
> -fglasgow-exts -fvia-C -Rghc-timing -O -split-objs -odir
> CString -static -c CString.lhs -o CString.o -osuf o
> <<ghc: 90101184 bytes, 52 GCs, 2037934/3905668 avg/max bytes
> residency (4 samples), 10M in use, 0.00 INIT (0.00 elapsed),
> 2.22 MUT (2.51 elapsed), 0.97 GC (0.96 elapsed) :ghc>>
> ghc: module version unchanged at 1
> touch CString.o ;
> rm -f SocketPrim.o ; if [ ! -d SocketPrim ]; then mkdir
> SocketPrim; else find SocketPrim -name '*.o' -print | xargs
> rm -f __rm_food ; fi ;
> ../../../ghc/driver/ghc -i../concurrent:../posix -recomp -cpp
> -fglasgow-exts -fvia-C -Rghc-timing -O -split-objs -odir
> SocketPrim -static -I../std/cbits -H12m
> -optc-DNON_POSIX_SOURCE -c SocketPrim.lhs -o SocketPrim.o -osuf o
>
> SocketPrim.lhs:14: Variable not in scope: `packSocketType'
[ etc. ]
Thanks for the report. I haven't tried building GHC on a NetBSD box (and I
don't have one to hand), so you'll have to help us debug this one. I assume
you're trying to build lang/ghc from the FreeBSD ports tree?
A good first approximation is probably to go through SocketPrim.lhs and add
netbsd_TARGET_OS to all the #ifdefs with freebsd[23]_TARGET_OS in them.
BTW, the ports tree version will only work with x86 at the moment.
Cheers,
Simon