Ticket #3639 (closed bug: duplicate)

Opened 4 years ago

Last modified 4 years ago

GHC 6.10.1 fails to build with "../includes/ghcautoconf.h: No such file or directory"

Reported by: spookylukey Owned by:
Priority: normal Milestone:
Component: Build System Version: 6.10.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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). I have to compile from source because of #2211

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!

Change History

Changed 4 years ago by spookylukey

Cannot build with 6.8.3 either:

Configuring ghc-6.10.1...
cabal-bin: At least the following dependencies are missing:
Cabal -any,
base <3,
filepath >=1 && <1.2,
haskell98 -any,
hpc -any,
template-haskell -any,
unix -any
make[2]: *** [boot.stage.2] Error 1
make[2]: Leaving directory `/home/build/build/ghc-6.10.1/compiler'
make[1]: *** [stage2] Error 2
make[1]: Leaving directory `/home/build/build/ghc-6.10.1'
make: *** [bootstrap2] Error 2

Changed 4 years ago by simonpj

  • difficulty set to Unknown

Could this be related to #2619? (I have no idea, but it looks vaguely similar.)

Changed 4 years ago by spookylukey

  • status changed from new to closed
  • resolution set to duplicate

It looks like the original bug report is the same as #2619.

I don't know about the second part (the fact that I couldn't build 6.10.1 with 6.8.3. It's possibly due to additional libraries that I installed, above and beyond the base 6.8.3 distribution. I have now succeeded in building 6.10.1 (via building 6.6.1 !), and I don't have time to investigate this second part.

Note: See TracTickets for help on using tickets.