nhc98 and Win32



About this list Date view Thread view Subject view Author view

Mike Thomas (mthomas@gil.com.au)
Mon, 19 Jun 2000 09:22:43 +1000


Hi Malcolm. I spent some time on Sunday delving further into the build process under Windows. Some of this may be stuff you are already dealing with, but I include it all for completeness. ---------------------------------------------------------------------------- ------- 1. which() in the confhc script does not handle paths with spaces (important on Windows). Here is a new one: which () { # Must be able to handle spaces in path for Windows # so wrap up elements in double quotes and unwrap for the test ( for path in `echo \"$PATH\" | sed -e 's/:/\" \"/g'` do thefile=`echo $path | tr -d "\""`/$1 if [ -f $thefile ] then echo $thefile exit 0 fi done; exit 1 ) ---------------------------------------------------------------------------- ------- 2. Even though this which() finds nhc98 in /usr/local/bin, hcconf still claims that it hasn't found nhc98, because of this line: NHC98DIR=`grep NHC98INCDIR ${whichNHC} | grep ${up2_NHC} | cut -c27- | cut -d'}' -f1` which fails on my system because there is no NHC98INCDIR variable. ---------------------------------------------------------------------------- ------- 3. The old $(EXE) problem in two files: ./src/compiler98/Makefile mv $(OBJDIR)/Main $(TARGET) ./src/greencard/Makefile mv $(OBJDIR)/GreenCard $(TARGET) ---------------------------------------------------------------------------- ------- 4. While making the trace runtime: gcc -c -DTRACE -DDBGTRANS -DLOW_BYTE_FIRST -O2 -fomit-frame-pointer -I/cyg drive/f/lang/nhc98/include -o /cygdrive/f/lang/nhc98/targets/ix86-CYGWIN_98-4.10/objT/runtime/Kernel/dump. o dump.c dump.c: In function `prGraph': dump.c:248: too many arguments to function `setjmp' make[2]: *** [/cygdrive/f/lang/nhc98/targets/ix86-CYGWIN_98-4.10/objT/runtime/Kernel/dump .o] Error 1 make[2]: Leaving directory `/cygdrive/f/lang/nhc98/src/runtime/Kernel' make[1]: *** [ofiles] Error 2 make[1]: Leaving directory `/cygdrive/f/lang/nhc98/src/runtime' make: *** [targets/ix86-CYGWIN_98-4.10/traceruntime] Error 2 ---------------------------------------------------------------------------- ------- 5. Using hi to load a small program: Type :? for help [Std module... /usr/local/include/nhc98/Prelude.hi] Prelude> Main [Compiling... ==================================== Error when renaming:: Constructor Main used at 8:21 is not defined. (in overlap resolution) ...failed] Prelude> :q [Leaving hmake interactive...] BASH.EXE-2.04$ cat Main.hs main = putStr "Hello world!\n" BASH.EXE-2.04$ ---------------------------------------------------------------------------- ------- Have a pleasant day! Mike Thomas


About this list Date view Thread view Subject view Author view