(no subject)



About this list Date view Thread view Subject view Author view

Malcolm Wallace (malcolm-nhc@cs.york.ac.uk)
Thu, 9 Mar 2000 16:34:06 +0000


Jose writes: > hmake -ghc +CTS -syslib exts -CTS > -d /home/romildo/rpms/BUILD/nhc98-1.0pre16/targets/ix86-Linux/obj/greencard > GreenCard > > Fail: failed > Reason: Can't find module IOExts Alexander replies: > I've encountered the same problem building the previous (pre15) nhc98. > Simply use ghc-4.04 but not 4.06 Yes, it seems that this is due to GHC's recent library reorganisation: hmake is configured by default to look for the old (<=4.04) libraries. If you don't want to downgrade to 4.04, changing to the new (>=4.06) libraries should be fairly easy: a patch is attached. After applying it, you will just need to remove the file script/hmake.config and re-run ./configure - then the build should proceed normally. Regards, Malcolm diff -u -r1.13 confhc --- script/confhc 2000/01/20 18:05:06 1.13 +++ script/confhc 2000/03/09 16:31:38 @@ -229,6 +229,7 @@ 0.29) sed -e "s|^GHC=0$|GHC=2|" ;; 2.*) sed -e "s|^GHC=0$|GHC=3|" ;; 3.*) sed -e "s|^GHC=0$|GHC=4|" ;; + 4.06) sed -e "s|^GHC=0$|GHC=6|" ;; 4.*) sed -e "s|^GHC=0$|GHC=5|" ;; *) sed -e "s|^GHC=0$|GHC=6|" ;; esac diff -u -r1.6 hmakeconfig.inst --- script/hmakeconfig.inst 2000/01/25 10:31:57 1.6 +++ script/hmakeconfig.inst 2000/03/09 16:31:39 @@ -90,6 +90,7 @@ # Depending on compiler version, we have to choose cpp symbols. # GHC can take the values 2,3,4,5, corresponding to 1.2, 1.3, 1.4, and 98. +# (value 6 added to allow for hslibs reorganisation) GHC=0 if [ ${GHC} -lt 5 ] then @@ -97,11 +98,17 @@ # GHCINCPATH is a colon-separated list of directories containing .hi files GHCINCPATH=":"${GHCINCPATH-${GHCINCDIR}} GHCCPP="-Z__HASKELL1__=${GHC}" -else +else if [ ${GHC} -lt 6 ] # ghc, for Haskell'98 # GHCINCPATH is a colon-separated list of directories containing .hi files GHCINCPATH=":"${GHCINCPATH-"${GHCINCDIR}/std:${GHCINCDIR}/exts:${GHCINCDIR}/misc:${GHCINCDIR}/posix"} GHCCPP="-Z__HASKELL1__=5 ${HASKELL98}" +else + # ghc, for Haskell'98, with new hslibs + # GHCINCPATH is a colon-separated list of directories containing .hi files + GHCINCPATH=":"${GHCINCPATH-"${GHCINCDIR}/std:${GHCINCDIR}/data:${GHCINCDIR}/lang:${GHCINCDIR}/posix:${GHCINCDIR}/net:${GHCINCDIR}/num:${GHCINCDIR}/text:${GHCINCDIR}/util:${GHCINCDIR}/win32"} + GHCCPP="-Z__HASKELL1__=5 ${HASKELL98}" +fi fi GHCPRELOPTS=`echo $GHCINCPATH | sed -e "s/:/ -P/g"` -------------------------------------------------------------------- To unsubscribe, send a message containing the word `unsubscribe' to: nhc-users-request@cs.york.ac.uk --------------------------------------------------------------------


About this list Date view Thread view Subject view Author view