[Haskell-cafe] problem building hmake on Mac OS X

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Thu Dec 2 05:38:16 EST 2004


Steven Elkins <sgelkins at gmail.com> writes:

> I'm trying to build hmake on version 10.3.6 of Mac OS,
> 
> GHCSYM=#pragma GCC set_debug_pwd "/Users/sge/haskell/hmake-3.09"
> 602

Thanks for the bug report - another MacOS user has already reported
it and supplied a patch (attached).  Apparently Apple's version of
gcc always inserts that nasty pragma line.

Regards,
    Malcolm
-------------- next part --------------
Index: script/confhc
===================================================================
RCS file: /home/cvs/root/nhc98/script/confhc,v
retrieving revision 1.41
diff -u -r1.41 confhc
--- script/confhc	12 Nov 2004 17:53:45 -0000	1.41
+++ script/confhc	2 Dec 2004 10:35:06 -0000
@@ -65,8 +65,9 @@
 # Now look for GHC.  Determining the version number here is due to Simon Marlow.
 ghcsym () {
   echo __GLASGOW_HASKELL__ >ghcsym.hs;
-  $1 -E -cpp -optP-P ghcsym.hs -o $2;
-  rm -f ghcsym.hs;
+  $1 -E -cpp -optP-P ghcsym.hs -o ghcsym.out;
+  grep -e '^[0-9]*$' ghcsym.out > $2;
+  rm -f ghcsym.hs ghcsym.out;
 }
 echo -n "  Looking for ghc...   "
 if which ghc >/dev/null 2>&1


More information about the Haskell-Cafe mailing list