Hi Ian, the solution turns out to be very simple, and already visible in my first mail.
Ian Lynagh wrote: > > Hi Jost, > > On Mon, Jul 14, 2008 at 06:03:15PM +0200, Jost Berthold wrote: >> >> cd hpc && /home/t-josber/BUILDS/HEAD/libraries/cabal-bin >> /home/t-josber/bin/ghc-6.8.3 >> /home/t-josber/BUILDS/HEAD/libraries/bootstrapping.conf build >> --distpref=dist-bootstrapping >> Preprocessing library hpc-0.5... >> compiling dist-bootstrapping/build/Trace/Hpc/Reflect_hsc_make.c failed >> command was: ghc -c -D__GLASGOW_HASKELL__=608 >> dist-bootstrapping/build/Trace/Hpc/Reflect_hsc_make.c -o >> dist-bootstrapping/build/Trace/Hpc/Reflect_hsc_make.o >> make[1]: *** [bootstrapping.conf] Error 1 >> make[1]: Leaving directory `/home/t-josber/BUILDS/HEAD/libraries' >> make: *** [stage1] Error 2 > > Hmm, I haven't seen this before. What platform are you on? I am on a RedHat linux where ghc and other tools are custom-built, and I have put links to the necessary (see below..) tools are in $HOME/bin. > I'm not sure if Cabal is hiding the command output - what happens if you > run the command(s) by hand? (Add -v to the end of the cabal-bin > commandline if you need to see what it is running). well... I already suspected from the output "command was: ghc -c blablabla" that the build process for hpc (and maybe in general) assumes a compiler named exactly "ghc". I have confirmed that by putting a fake-ghc in my path: #>echo 'echo "I do not have GHC!"' > ~/bin/ghc; chmod u+x ~/bin/ghc and the make output now is: ... cd hpc && /home/t-josber/BUILDS/HEAD/libraries/cabal-bin /home/t-josber/bin/ghc-6.8.3 /home/t-josber/BUILDS/HEAD/libraries/bootstrapping.conf configure --distpref=dist-bootstrapping --with-compiler=/home/t-josber/bin/ghc-6.8.3 --with-hc-pkg=/home/t-josber/bin/ghc-pkg-6.8.3 --package-db=/home/t-josber/BUILDS/HEAD/libraries/bootstrapping.conf.tmp Configuring hpc-0.5... cd hpc && /home/t-josber/BUILDS/HEAD/libraries/cabal-bin /home/t-josber/bin/ghc-6.8.3 /home/t-josber/BUILDS/HEAD/libraries/bootstrapping.conf build --distpref=dist-bootstrapping Preprocessing library hpc-0.5... I do not have ghc! I do not have ghc! running dist-bootstrapping/build/Trace/Hpc/Reflect_hsc_make failed command was: dist-bootstrapping/build/Trace/Hpc/Reflect_hsc_make >dist-bootstrapping/build/Trace/Hpc/Reflect.hs make[1]: *** [bootstrapping.conf] Error 1 make[1]: Leaving directory `/home/t-josber/BUILDS/HEAD/libraries' make: *** [stage1] Error 2 For some complicated-to-explain reason, I do not have it (but I do have one called "ghc-6.8.3" in the path). As you can see, I configured the build to use ghc-6.8.3 as the haskell compiler. However, it calls "ghc" here. Unsure if this is particular to hpc. It might well be that cabal-bin calls it in general. So for now, I will create a link "ghc"->ghc-6.8.3 and build. But I am sure this is not the intention, and suspect it is due to Cabal. Jost _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
