GHC build fails without alex

Peter Simons
09 Sep 2003 15:06:25 +0200

Simon Marlow writes:

 > I'll switch the default build order so that these packages get build
 > before GHC if you say 'make' at the top level.

Great -- thanks!

While I am at it, maybe someone can help me with this build problem?

 | make[1]: Entering directory `/usr/local/src/ghc-current/ghc/compiler'
 |     ../../ghc/compiler/stage1/ghc-inplace -H16m -O -istage2/utils
 |     -istage2/basicTypes -istage2/types -istage2/hsSyn -istage2/prelude
 |     -istage2/rename -istage2/typecheck -istage2/deSugar -istage2/coreSyn
 |     -istage2/specialise -istage2/simplCore -istage2/stranal
 |     -istage2/stgSyn -istage2/simplStg -istage2/codeGen -istage2/absCSyn
 |     -istage2/main -istage2/profiling -istage2/parser -istage2/cprAnalysis
 |     -istage2/compMan -istage2/ndpFlatten -istage2/cbits -istage2/nativeGen
 |     -istage2/ghci -DGHCI -package haskell-src -package unix -package
 |     readline -cpp -fglasgow-exts -Rghc-timing -I. -IcodeGen -InativeGen
 |     -Iparser -recomp -Rghc-timing -H16M '-#include "hschooks.h"' -c
 |     typecheck/TcSimplify.lhs -o stage2/typecheck/TcSimplify.o -ohi
 |     stage2/typecheck/TcSimplify.hi
 | typecheck/TcSimplify.lhs:22:
 |     Failed to load interface for `TcUnify':
 |         Bad interface file: stage2/typecheck/TcUnify.hi-boot-6
 |             stage2/typecheck/TcUnify.hi-boot-6:6: parse error on input `.'
 | typecheck/TcSimplify.lhs:22:
 |     Module `TcUnify' (hi-boot interface) does not export `unifyTauTy'
 | make[1]: *** [stage2/typecheck/TcSimplify.o] Error 1
 | make[1]: Leaving directory `/usr/local/src/ghc-current/ghc/compiler'
 | make: *** [stage2] Error 2

I performed a 'distclean', a 'cvs update', and tried it again -- same
problem. I'm compiling on Linux/x86 using GHC 5.04.3 and GCC 3.2.3.