
On 10/06/10 00:02, Ian Lynagh wrote:
On Tue, Oct 05, 2010 at 07:21:43PM +0200, Karel Gardas wrote:
On 10/05/10 17:25, Ian Lynagh wrote:
Does the file exist?
If so, "make -dr all_ghc_stage2" should show why make thinks it's out of date, which should point to the problem.
The file exists and `gmake -dr all_ghc_stage2' shows following info. It seems `compiler/stage2/package-data.mk' is outdated due to `compiler/stage2/build/Config.hs' being newer that it.
Aha, OK, this should fix it:
touch -r inplace/lib/package.conf.d */*/package-data.mk */*/*/package-data.mk compiler/stage*/build/Config.hs
I've updated the wiki page.
Ian, thanks for the update. However it does not help here for I don't know what reason exactly (perhaps previous false attempts might also corrupt the build tree) so I'm running with today's sources again. Now, it even doesn't go that far and fails on first step: <T>$ make bootstrapping-files done on the target machine. This is the step right before you go (on Wiki) and describe what to do on host machine in `On the host machine' paragraph. The failure which I get from the step above is: [59 of 63] Compiling Distribution.Simple.Build ( libraries/Cabal/Distribution/Simple/Build.hs, bootstrapping/Distribution/Simple/Build.o ) [60 of 63] Compiling Distribution.Simple.Haddock ( libraries/Cabal/Distribution/Simple/Haddock.hs, bootstrapping/Distribution/Simple/Haddock.o ) [61 of 63] Compiling Distribution.Simple.Test ( libraries/Cabal/Distribution/Simple/Test.hs, bootstrapping/Distribution/Simple/Test.o ) [62 of 63] Compiling Distribution.Simple ( libraries/Cabal/Distribution/Simple.hs, bootstrapping/Distribution/Simple.o ) [63 of 63] Compiling Main ( utils/ghc-cabal/ghc-cabal.hs, bootstrapping/Main.o ) Linking utils/ghc-cabal/dist/build/tmp/ghc-cabal ... touch utils/ghc-cabal/dist/build/tmp/ghc-cabal "cp" utils/ghc-cabal/dist/build/tmp/ghc-cabal inplace/bin/ghc-cabal gmake[1]: *** No rule to make target `utils/ghc-pkg/dist-install/build/tmp/ghc-pkg', needed by `inplace/bin/ghc-pkg'. Stop. gmake: *** [bootstraping-files] Error 2 I think this is wrong, since `On the host machine' paragraph then requires to copy some includes files from the target directory build which are not on the required place. My guess is that they need to be generated in the `gmake bootstrapping-files' which fails here too early. Any idea what's going wrong here? Thanks! Karel