GHC 6.10.1 fails to build with "../includes/ghcautoconf.h: No such file or directory"
I am attempting to build GHC 6.10.1 on a CentOS 4.5 machine.
At the 'make install' stage, I get this error:
/home/build/build/ghc-6.10.1/libraries/cabal-bin /home/build/local/bin/ghc /home/build/build/ghc-6.10.1/libraries/bootstrapping.conf build --distpref dist-stage1 --ghc-option=-H32m --ghc-option=-O --ghc-option=-H32m --ghc-option=-O
Preprocessing executables for ghc-bin-6.10.1...
Building ghc-bin-6.10.1...
In file included from Main.hs:13:0:
/home/build/local/lib/ghc-6.10.4/ghc-6.10.4/include/HsVersions.h:23:0:
../includes/ghcautoconf.h: No such file or directory
make[2]: *** [build.stage.1] Error 1
make[1]: *** [build.stage.1] Error 2
make: *** [stage1] Error 1
This was also reported here http://www.haskell.org/pipermail/glasgow-haskell-bugs/2008-November/015981.html but with no follow up.
I am building using GHC 6.10.4 (which I cannot use for other purposes because of bug #3179 (closed)). I have to compile from source because of #2211 (closed)
I already have GHC 6.8.3 built, so I will uninstall 6.10.4 to try to build 6.10.1 with 6.8.3 instead, and report back here if I have success.
Otherwise, as GHC 6.10.1 is apparently the only version of GHC that I can use (library dependencies rule out 6.8.*), I would really appreciate help on fixing this or a workaround!
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.10.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Build System |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |