building ghc from source tarball requires alex?
Building a recent GHC snapshot via my usual Nix expression for doing this resulted in an error:
building utils/haddock/dist/package-data.mk
"inplace/bin/ghc-cabal" configure --with-ghc="/tmp/nix-build-j66qzyg325kggqaj69vmmfgvq54cg83y-ghc-7.3.20111212.drv-0/ghc-7.3.20111212/inplace/bin/ghc-stage1" --with-ghc-pkg="/tmp/nix-build-j66qzyg325kggqaj69vmmfgvq54cg83y-ghc-7.3.20111212.drv-0/ghc-7.3.20111212/inplace/bin/ghc-pkg" --flag in-ghc-tree --enable-library-profiling --enable-shared --enable-library-for-ghci --configure-option=CFLAGS=" -fno-stack-protector " --configure-option=LDFLAGS=" -Wl,--hash-size=31 -Wl,--reduce-memory-overheads " --configure-option=CPPFLAGS=" " --with-gcc="/nix/store/2yghakb86zfivd2da4x1ipcz03xmz6rd-gcc-wrapper-4.5.1/bin/gcc" --configure-option=--with-cc="/nix/store/2yghakb86zfivd2da4x1ipcz03xmz6rd-gcc-wrapper-4.5.1/bin/gcc" --with-ar="/nix/store/9b3q62czfh5zld9zg2p8sbk65hkbvpzi-binutils-2.21/bin/ar" --with-ranlib="true" -- dist utils/haddock
Configuring haddock-2.9.4...
ghc-cabal: The program alex version >=2.3 is required but it could not be
found.
make[1]: *** [utils/haddock/dist/package-data.mk] Error 1
[qmake: *** [all] Error 2
[q[q[qbuilder for `/nix/store/j66qzyg325kggqaj69vmmfgvq54cg83y-ghc-7.3.20111212.drv' failed; keeping build directory `/tmp/nix-build-j66qzyg325kggqaj69vmmfgvq54cg83y-ghc-7.3.20111212.drv-0'
builder for `/nix/store/j66qzyg325kggqaj69vmmfgvq54cg83y-ghc-7.3.20111212.drv' failed with exit code 2
cannot build derivation `/nix/store/gmllr5nfxlxw2cfvmvfymk3y6q9qzdlv-ghc-7.3.20111212-wrapper.drv': 1 dependencies couldn't be built
error: build of `/nix/store/gmllr5nfxlxw2cfvmvfymk3y6q9qzdlv-ghc-7.3.20111212-wrapper.drv' failed
The requirement for alex seems new. At least I know that the same Nix expression successfully built older (i.e., 7.1) snapshots. Is alex really required to build from a source tarball?
Trac metadata
Trac field | Value |
---|---|
Version | 7.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Build System |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |