Fix error (nthcon: n==0 con==37) due to an interface file

malcolm: Wed Dec 19 15:54:17 CET 2001 Update of /usr/src/master/nhc/src/prelude/LowB In directory hinken:/tmp/cvs-serv18916 Modified Files: PrimOpenSocket.hs Log Message: Fix error (nthcon: n==0 con==37) due to an interface file containing `data IO a' instead of `newtype IO a'.

On Wed, Dec 19, 2001 at 03:54:17PM +0100, Malcolm Wallace wrote:
malcolm: Wed Dec 19 15:54:17 CET 2001
Update of /usr/src/master/nhc/src/prelude/LowB In directory hinken:/tmp/cvs-serv18916
Modified Files: PrimOpenSocket.hs Log Message: Fix error (nthcon: n==0 con==37) due to an interface file containing `data IO a' instead of `newtype IO a'.
OK, that seems to have got it. I also had to compile Hat.hs by hand with "+RTS -K2M" as: /home/ian/cvs/nhc/script/nhc98 -cpp -p -c +CTS -lib -redefine -CTS -o /home/ian/cvs/nhc/targets/ix86-Linux/objp/prelude/Hat/Hat.p.o Hat.hs Stack space overflow: current size 1048576 bytes. Use `+RTS -Ksize' to increase it. make[2]: *** [/home/ian/cvs/nhc/targets/ix86-Linux/objp/prelude/Hat/Hat.p.o] Error 1 make[2]: Leaving directory `/home/ian/cvs/nhc/src/prelude/Hat' make[1]: *** [Hat.make] Error 2 make[1]: Leaving directory `/home/ian/cvs/nhc/src/prelude' make: *** [targets/ix86-Linux/profprelude] Error 2 (I couldn't find an environment variable for default options to NHC easily - is there one?) Ian, still building...

On Wed, Dec 19, 2001 at 03:45:07PM +0000, Ian Lynagh wrote:
Ian, still building...
I also needed to do Index: src/tracer/ui/Makefile =================================================================== RCS file: /cvs/nhc/src/tracer/ui/Makefile,v retrieving revision 1.6 diff -u -r1.6 Makefile --- src/tracer/ui/Makefile 2001/04/12 13:50:39 1.6 +++ src/tracer/ui/Makefile 2001/12/19 16:44:37 @@ -17,8 +17,8 @@ install: ${ARCHIVE} ${INSTALL} ${ARCHIVE} ${LIBDIR} clean: - rm -f ${ARCHIVE} nhctracer/*.class + rm -f ${ARCHIVE} nhctracer/nhctracer/*.class ${ARCHIVE} jar: classfiles - jar cf ${ARCHIVE} nhctracer/*.class + jar cf ${ARCHIVE} nhctracer/nhctracer/*.class and I gave up on src/tracer/hoodui/ as it seems to be a mess of dependency problems. Ian

I also had to compile src/prelude/Hat/Hat.hs by hand with "+RTS -K2M": ... (I couldn't find an environment variable for default options to NHC easily - is there one?)
If `hmake' is being used, then HFLAGS is the variable to use, but otherwise there is no environment variable for default options in nhc98, no. For building the prelude and libraries, we usually add a couple of lines to the appropriate Makefile, in this case src/prelude/Hat/Makefile, something like ifeq "${BUILDWITH}" "ghc" HEAP = +RTS -K2M -RTS endif EXTRA_H_FLAGS = $(HEAP) Regards, Malcolm

On Wed, Dec 19, 2001 at 05:01:26PM +0000, Malcolm Wallace wrote:
I also had to compile src/prelude/Hat/Hat.hs by hand with "+RTS -K2M": ... (I couldn't find an environment variable for default options to NHC easily - is there one?)
For building the prelude and libraries, we usually add a couple of lines to the appropriate Makefile, in this case src/prelude/Hat/Makefile, something like
ifeq "${BUILDWITH}" "ghc" HEAP = +RTS -K2M -RTS endif
EXTRA_H_FLAGS = $(HEAP)
OK, thanks - presumably nhc or nhc98 rather than ghc though. Ian
participants (3)
-
Ian Lynagh
-
Malcolm Wallace
-
malcolmīŧ sparud.net