Hello!

I'm trying to compile 2.04 using 2.02 for solaris2, but I get this
error message:

------------------------------------------------------------------------
==fptools== make all;
 in /home/petli/ghc-2.04/build/solaris2.4/ghc/compiler
------------------------------------------------------------------------
ghc -cpp -fhaskell-1.3 -fglasgow-exts -DCOMPILING_GHC -Rghc-timing -I. -IcodeGen 
-InativeGen -Iparser -iutils -ibasicTypes -itypes -ihsSyn -iprelude -irename 
-itypecheck -ideSugar -icoreSyn -ispecialise -isimplCore -istranal -istgSyn -isimplStg 
-icodeGen -iabsCSyn -imain -ireader -iprofiling -iparser -inativeGen -recomp 
-DOMIT_DEFORESTER   -K2m  -c hsSyn/HsExpr.lhs -o hsSyn/HsExpr.o -osuf o
 
hsSyn/HsExpr.lhs:9: A group of type signatures have mismatched contexts
                        HsExpr.pprExpr :: 
                            (Name.NamedThing id{-a2gF-}, Outputable.Outputable 
id{-a2gF-}, Outputable.Outputable pat{-a2gG-}, PrelBase.Eq tyvar{-a2gH-}, 
Outputable.Outputable tyvar{-a2gH-}, PrelBase.Eq uvar{-a2gI-}, Outputable.Outputable 
uvar{-a2gI-}) => ...
                        HsExpr.pprParendExpr :: 
                            (Name.NamedThing id{-a2gJ-}, Outputable.Outputable 
id{-a2gJ-}, Outputable.Outputable pat{-a2gK-}, PrelBase.Eq tyvar{-a2gL-}, 
Outputable.Outputable tyvar{-a2gL-}, PrelBase.Eq uvar{-a2gM-}, Outputable.Outputable 
uvar{-a2gM-}) => ...
 
 
 
Compilation had errors
make[2]: *** [hsSyn/HsExpr.o] Error 1


I could probably make do with 2.02, but as has been noted before here,
it doesn't like solaris2.4, so I figured that this (in build.mk)
should fix this (after recompiling the 2.04 with itself, of course...):

 BUILD_LD_OPTS += -lc -L/usr/ucblib -lucb

Or is there an easier way to patch the compiler, preferably in a
binary dist?

Reply via email to