Skip to content

Building ghc-6.8.3 with ghc-6.2.2 failed on Red Hat 7.3 machine

I'm trying to compile ghc-6.8.3 on an old Red Hat 7.3 system.

Using an older ghc-6.2.2 compiler I configure:

> ./configure --with-ghc=/opt/ghc/ghc-6.2.2/bin/ghc --prefix=/opt/ghc/ghc-6.8.3
...

I make:

> make
...
/opt/ghc/ghc-6.2.2/bin/ghc -H16m -O  -istage1/utils  -istage1/basicTypes  -istage1/types  -istage1/hsSyn  -istage1/prelude  -istage1/rename  -istage1/typecheck  -istage1/deSugar  -istage1/coreSyn  -istage1/vectorise  -istage1/specialise  -istage1/simplCore  -istage1/stranal  -istage1/stgSyn  -istage1/simplStg  -istage1/codeGen  -istage1/main  -istage1/profiling  -istage1/parser  -istage1/cprAnalysis  -istage1/ndpFlatten  -istage1/iface  -istage1/cmm  -istage1/nativeGen -Wall -fno-warn-name-shadowing -Istage1 -cpp -fglasgow-exts -fno-generics -Rghc-timing -I. -Iparser -package unix -recomp -Rghc-timing  -H16M '-#include "cutils.h"' -DUSING_COMPAT -i../compat -package unix    -c typecheck/TcBinds.lhs -o stage1/typecheck/TcBinds.o  -ohi stage1/typecheck/TcBinds.hi

typecheck/TcBinds.lhs:523:
    Couldn't match
	`BoxyType -> TcM a' against `TcM (HsWrapper, MatchGroup TcId)'
	Expected type: BoxyType -> TcM a
	Inferred type: TcM (HsWrapper, MatchGroup TcId)
    Probable cause: `tcMatchesFun' is applied to too many arguments in the call
	(tcMatchesFun name inf matches)
    In the first argument of `tcInfer', namely
	`(tcMatchesFun name inf matches)'

typecheck/TcBinds.lhs:672:
    Couldn't match `TcM (HsWrapper, MatchGroup TcId)' against `t -> t1'
	Expected type: TcM (HsWrapper, MatchGroup TcId)
	Inferred type: t -> t1
    Probable cause: `tcMatchesFun' is applied to too many arguments in the call
	(tcMatchesFun (idName mono_id) inf matches (idType mono_id))
    In a 'do' expression:
	(co_fn, matches') <- tcMatchesFun (idName mono_id)
					  inf
					  matches
					  (idType mono_id)
<<ghc: 239363224 bytes, 226 GCs, 7917634/20950144 avg/max bytes residency (6 samples), 39M in use, 0.00 INIT (0.00 elapsed), 0.48 MUT (1.04 elapsed), 0.34 GC (0.55 elapsed) :ghc>>
make[1]: *** [stage1/typecheck/TcBinds.o] Error 1
make: *** [stage1] Error 1
Trac metadata
Trac field Value
Version 6.8.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Build System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information