happy required to build ghc 6.8.1 from source
I am building GHC 6.8.1 from source tarballs:
f91de87e7c0a3fe2f27c5a83212d9743 ghc-6.8.1-src-extralibs.tar.bz2
8d47d4dcde96c31fe8bedcee7f99eaf1 ghc-6.8.1-src.tar.bz2
The sequence "./configure --prefix=/... ; make" results in the error during "make"
Configuring haskell-src-1.0.1.1...
rm -f haskell-src/GNUmakefile
cp Makefile.local haskell-src
if ifBuildable/ifBuildable haskell-src; then \
cd haskell-src && setup/Setup makefile -f GNUmakefile; \
fi
Preprocessing library haskell-src-1.0.1.1...
Setup: The program happy is required but it could not be found
make[1]: *** [haskell-src/GNUmakefile] Error 1
make[1]: Leaving directory `/tmp/g1/ghc-6.8.1/libraries'
make: *** [stage1] Error 2
However, the Building guide Building/Prerequisites says
If you start from a source tarball of GHC (i.e. not a darcs checkout), then you don't need Happy, because we supply the pre-processed versions of the Happy parsers.
I have been able to repeat this problem both on an i386 Debian Etch system and a x86_64 RHEL4 system.
The workaround is to install happy.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.8.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | Unknown |
| Architecture | Unknown |