RE: GHC build fails without alex

When building the current version of GHC from CVS without having alex installed, the build tries to use "alex-inplace" instead, but apparently the dependency that tells make(1) to build that executable before using it is missing. I had to execute
make ProjectsThatExist=alex
in the top level before the build of GHC itself would succeed. I guess, this qualifies as a bug. :-)
It's not really a bug (well, the same situation arises with Happy and Haddock). There are no dependencies between top-level projects. I'll switch the default build order so that these packages get build before GHC if you say 'make' at the top level. Cheers, Simon

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. Peter

Peter Simons wrote:
[...] | 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.
Just update again... :-) Cheers, S.
participants (3)
-
Peter Simons
-
Simon Marlow
-
Sven Panne