Compile problems with ghc-5.0

I use Redhat 6.2. The binary install is ok, but when I compile ghc-5.0 from source using ghc-5.0, I get the following error after 'make all': ../../../ghc/utils/hsc2hs/hsc2hs-inplace Directory.hsc ../../../ghc/utils/hsc2hs/hsc2hs-inplace: /test/v-julsew/Nightly-HEAD/i386-unknown-linux/stage1/ghc/utils/hsc2hs/hsc2hs-bin: No such file or directory Furthermore, most available libraries seem to be uncompilable with ghc-5.0, e.g. c2hs and gtk2hs. -- Gérard Milmeister Tannenrauchstr. 35 8038 Zürich

* Gérard Milmeister
I use Redhat 6.2. The binary install is ok, but when I compile ghc-5.0 from source using ghc-5.0, I get the following error after 'make all':
../../../ghc/utils/hsc2hs/hsc2hs-inplace Directory.hsc ../../../ghc/utils/hsc2hs/hsc2hs-inplace: /test/v-julsew/Nightly-HEAD/i386-unknown-linux/stage1/ghc/utils/hsc2hs/hsc2hs-bin: No such file or directory
Furthermore, most available libraries seem to be uncompilable with ghc-5.0, e.g. c2hs and gtk2hs.
For c2hs I provided a patch for configure, which made it think it's dealing with ghc-4.11. I don't have it at hand, but you can ask Manuel Chakravarty. AFAIK, he already updated the c2hs CVS repo and provided a Real Solution(tm). Cheers, Michael -- () ASCII ribbon campaign | Chair for Computer Science II | GPG: F65C68CD /\ against HTML mail | RWTH Aachen, Germany | PGP: 1D0DD0B9 "I WILL NOT SELL MIRACLE CURES" -- Bart Simpson in 9F16

michael.weber@post.rwth-aachen.de (Michael Weber) wrote,
* Gérard Milmeister
[2001-05-12T13:28+0200]: I use Redhat 6.2. The binary install is ok, but when I compile ghc-5.0 from source using ghc-5.0, I get the following error after 'make all':
../../../ghc/utils/hsc2hs/hsc2hs-inplace Directory.hsc ../../../ghc/utils/hsc2hs/hsc2hs-inplace: /test/v-julsew/Nightly-HEAD/i386-unknown-linux/stage1/ghc/utils/hsc2hs/hsc2hs-bin: No such file or directory
Furthermore, most available libraries seem to be uncompilable with ghc-5.0, e.g. c2hs and gtk2hs.
For c2hs I provided a patch for configure, which made it think it's dealing with ghc-4.11.
I don't have it at hand, but you can ask Manuel Chakravarty.
I append the patch.
AFAIK, he already updated the c2hs CVS repo and provided a Real Solution(tm).
That's right. The CVS version works with 5.00 and has some more new goodies. I will put out a release (with binaries) as soon as the new features are sufficiently bug free. As for Gtk+HS, which was also mentioned, I will take care of that after c2hs is done. Are you (that is Gérard) on the Gtk+HS mailing list? http://www.cse.unsw.edu.au/~chak/haskell/gtk/#ml The list doesn't have much traffic, but carries news regarding new versions of the library etc. Cheers, Manuel -=- --- c2hs-0.8.2.orig/configure.in +++ c2hs-0.8.2/configure.in @@ -113,6 +113,11 @@ dnl set GHC, as this is what the following command inspects GHC=$HC CTK_GHC_VERSION(hc_maj_vers,hc_min_vers) + if test $hc_maj_vers -eq 5; then + # HACK HACK HACK + hc_maj_vers=4 + hc_min_vers=11 + fi if test $hc_maj_vers -lt 3 -o $hc_min_vers -lt 2; then AC_MSG_ERROR([You need version 3.02 or 4.02 upwards of ghc! ** Check \"http://haskell.org/ghc/\". **]) --- c2hs-0.8.2.orig/c2hs/lib/Makefile +++ c2hs-0.8.2/c2hs/lib/Makefile @@ -95,7 +95,7 @@ # * The following enables the use of the FFI and sucks in the prototypes needed # by external calls # -EXTRAHCFLAGS = -fglasgow-exts $(LIB_HCFLAGS) +EXTRAHCFLAGS = -fglasgow-exts -package lang $(LIB_HCFLAGS) # make all object files #
participants (3)
-
Gérard Milmeister
-
Manuel M. T. Chakravarty
-
michael.weber@post.rwth-aachen.de