Bootstrapping the compiler
Simon Marlow
marlowsd at gmail.com
Wed Mar 18 08:20:06 EDT 2009
Colin Paul Adams wrote:
> I have just downloaded a darcs snapshot, pulled patches and followed
> the instructions at
> http://hackage.haskell.org/trac/ghc/wiki/Building/QuickStart
>
> When I got to do
>
> make
>
> it didn't work. The tail of the output looks like this:
>
> [55 of 55] Compiling Main ( cabal-bin.hs, /home/colin/ghc/libraries/bootstrapping/Main.o )
> Linking cabal-bin ...
> echo "[]" > bootstrapping.conf.tmp
> cd extensible-exceptions && /home/colin/ghc/libraries/cabal-bin ghc --make -fno-warn-unrecognised-pragmas /home/colin/ghc/libraries/bootstrapping.conf 1.7.0 clean --distpref=dist-bootstrapping
> unrecognised command: /home/colin/ghc/libraries/bootstrapping.conf (try --help)
> make[1]: [bootstrapping.conf] Error 1 (ignored)
> cd extensible-exceptions && /home/colin/ghc/libraries/cabal-bin ghc --make -fno-warn-unrecognised-pragmas /home/colin/ghc/libraries/bootstrapping.conf 1.7.0 configure --distpref=dist-bootstrapping --with-compiler=ghc --make -fno-warn-unrecognised-pragmas --with-hc-pkg=/usr/local/bin/ghc-pkg --package-db=/home/colin/ghc/libraries/bootstrapping.conf.tmp
> unrecognised command: /home/colin/ghc/libraries/bootstrapping.conf (try --help)
> make[1]: *** [bootstrapping.conf] Error 1
Your problem appears to be that you have set $(GHC) to
ghc --make -fno-warn-unrecognised-pragmas
$(GHC) should be set to the path to GHC, nothing else.
Cheers,
Simon
More information about the Glasgow-haskell-users
mailing list