current dist source fail to build when Happy not found
The daily source tarballs from http://www.haskell.org/ghc/dist/current/dist/ errors out at configure time if Happy is not found. This error was introduced in the ghc-6.11.20090913-src.tar.bz2 source.
A workaround to make it compile is to modify the configure script as:
--- configure.orig 2009-09-17 23:07:01.000000000 +0200
+++ configure 2009-09-17 23:07:39.000000000 +0200
@@ -5605,7 +5605,7 @@
fi
{ echo "as_me:LINENO: result: $fptools_cv_happy_version" >&5
echo "{ECHO_T}fptools_cv_happy_version" >&6; }
-if test ! -f compiler/parser/Parser.hs || test ! -f compiler/main/ParsePkgConf.hs || test ! -f compiler/cmm/CmmParse.hs || test ! -f compiler/parser/ParserCore.hs
+if test ! -f compiler/parser/Parser.hs || test ! -f compiler/cmm/CmmParse.hs || test ! -f compiler/parser/ParserCore.hs
then
fp_version1=$fptools_cv_happy_version; fp_version2=1.16
fp_save_IFS=$IFS; IFS='.'
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.11 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |