
Hi, I just tried to build the latest nhc98 version on Gentoo Linux/ix86. And failed. ;-) The build was initiated with $ ./configue --prefix=/usr/local/nhc98 +docs $ make and it got this far: (Line-wrapping is mine.) make[1]: Entering directory `/usr/local/src/nhc98-1.14a/src/prelude/ix86-Linux' rm -f *.hi rm -f DErrNo.hc rm -f /usr/local/src/nhc98-1.14a/targets/ix86-Linux/obj/prelude/DErrNo/*.o *.o rm -f rm -f /usr/local/src/nhc98-1.14a/script/nhc98 -cpp -c +CTS -lib -redefine -CTS +RTS -H32M -RTS -o /usr/local/src/nhc98-1.14a/targets/ix86-Linux/obj/prelude/DErrNo/DErrNo.o DErrNo.hs /usr/local/src/nhc98-1.14a/script/nhc98: line 600: 32003 Segmentation fault $COMP $RUNFLAGS $COMPFLAGS $HINCDIRS $UNLIT -P${NHC98INCDIR} $HSFILE $POSTGRFILE $TMPHIFILE $TMPCPPASFILE make[1]: *** [/usr/local/src/nhc98-1.14a/targets/ix86-Linux/obj/prelude/DErrNo/DErrNo.o] Error 1 make[1]: Leaving directory `/usr/local/src/nhc98-1.14a/src/prelude/ix86-Linux' make: *** [targets/ix86-Linux/compiler-gcc] Error 2 I am quite lost what to do and what to try. Does anyone have an idea? One more thing: Is it possible that the build is screwed up pretty much in case I do have a version of hmake installed already? (I do, and hmake has been compiled with ghc support only, so far. I had to take it out of the PATH to make the build get this far at all.) -peter

Peter Simons
I just tried to build the latest nhc98 version on Gentoo Linux/ix86. And failed. ;-)
/usr/local/src/nhc98-1.14a/script/nhc98: line 600: 32003 Segmentation fault
I am quite lost what to do and what to try. Does anyone have an idea?
My guess is that your system has gcc-3.xx by default, which is known to break nhc98. I'm not totally sure why, but I think it has to do with data layout in array initialisation statements in C. The only current work-around I know is to use gcc-2.9x if you can. I don't know whether it possible for you to have both versions of gcc installed simultaneously, but if so, then I would suggest starting a fresh build with something like CC=gcc-2.96 ./configure --prefix=/usr/local/nhc98 It may also be necessary for you to set the CC variable for any subsequent compilations performed by nhc98, since it uses your C compiler as a portable back-end for code generation.
One more thing: Is it possible that the build is screwed up pretty much in case I do have a version of hmake installed already?
No, that is unlikely. Regards, Malcolm
participants (2)
-
Malcolm Wallace
-
Peter Simons