
hello, i ran into a compiler-detection bug in building nhc98 (the 1.10 tarball, but the same bug seems to be in cvs and earlier versions): the build process fails to detect the default ghc 5.02 installation on my debian linux machine as well as the ghc 5.00.2 installation on a redhat 7.1 box nearby. the problem turns out to be that script/confhc looks through the ghc executable for the wrong stuff (at least in the installations i mentioned above). i attached a patch (against the cvs tree) to fix this at least on these debian and redhat installations. cheers, -- mieszko Index: script/confhc =================================================================== RCS file: /cvs/nhc/script/confhc,v retrieving revision 1.29 diff -c -r1.29 confhc *** script/confhc 2001/10/02 14:49:02 1.29 --- script/confhc 2001/10/22 21:15:09 *************** *** 161,167 **** else #GHCDIR=`ghc-pkg --show-package std --field import_dirs` #GHCINCDIR=`dirname $GHCDIR` ! GHCDIR=`grep '^libdir' ${whichGHC} | head -1 | sed 's/^libdir=.\(.*\)./\1/'` if [ -d $GHCDIR/imports ] then GHCINCDIR=$GHCDIR/imports else GHCDIR="" --- 161,167 ---- else #GHCDIR=`ghc-pkg --show-package std --field import_dirs` #GHCINCDIR=`dirname $GHCDIR` ! GHCDIR=`grep '^TOPDIROPT' ${whichGHC} | head -1 | sed 's/^TOPDIROPT="*-B\([^";]*\).*/\1/'` if [ -d $GHCDIR/imports ] then GHCINCDIR=$GHCDIR/imports else GHCDIR=""
participants (1)
-
Mieszko Lis