
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 make[1]: Leaving directory `/home/colin/ghc/libraries' make: *** [stage1] Error 2 I then tried the following: [colin@susannah ghc]$ ls libraries/bootstrapping.conf ls: cannot access libraries/bootstrapping.conf: No such file or directory [colin@susannah ghc]$ ls libraries/bootstrapping.conf.tmp libraries/bootstrapping.conf.tmp It looks to me like all I have to do is to rename libraries/bootstrapping.conf.tmp to libraries/bootstrapping.conf but I don't see why this is happening. -- Colin Adams Preston Lancashire

I tried again with the same result. Is this a known problem, or do I have investigate myself?
"Colin" == Colin Paul Adams
writes:
Colin> I have just downloaded a darcs snapshot, pulled patches and Colin> followed the instructions at Colin> http://hackage.haskell.org/trac/ghc/wiki/Building/QuickStart Colin> When I got to do Colin> make Colin> it didn't work. The tail of the output looks like this: Colin> [55 of 55] Compiling Main ( cabal-bin.hs, Colin> /home/colin/ghc/libraries/bootstrapping/Main.o ) Linking Colin> cabal-bin ... echo "[]" > bootstrapping.conf.tmp cd Colin> extensible-exceptions && Colin> /home/colin/ghc/libraries/cabal-bin ghc --make Colin> -fno-warn-unrecognised-pragmas Colin> /home/colin/ghc/libraries/bootstrapping.conf 1.7.0 clean Colin> --distpref=dist-bootstrapping unrecognised command: Colin> /home/colin/ghc/libraries/bootstrapping.conf (try --help) Colin> make[1]: [bootstrapping.conf] Error 1 (ignored) cd Colin> extensible-exceptions && Colin> /home/colin/ghc/libraries/cabal-bin ghc --make Colin> -fno-warn-unrecognised-pragmas Colin> /home/colin/ghc/libraries/bootstrapping.conf 1.7.0 Colin> configure --distpref=dist-bootstrapping --with-compiler=ghc Colin> --make -fno-warn-unrecognised-pragmas Colin> --with-hc-pkg=/usr/local/bin/ghc-pkg Colin> --package-db=/home/colin/ghc/libraries/bootstrapping.conf.tmp Colin> unrecognised command: Colin> /home/colin/ghc/libraries/bootstrapping.conf (try --help) Colin> make[1]: *** [bootstrapping.conf] Error 1 make[1]: Leaving Colin> directory `/home/colin/ghc/libraries' make: *** [stage1] Colin> Error 2 Colin> I then tried the following: Colin> [colin@susannah ghc]$ ls libraries/bootstrapping.conf ls: Colin> cannot access libraries/bootstrapping.conf: No such file or Colin> directory [colin@susannah ghc]$ ls Colin> libraries/bootstrapping.conf.tmp Colin> libraries/bootstrapping.conf.tmp Colin> It looks to me like all I have to do is to rename Colin> libraries/bootstrapping.conf.tmp Colin> to Colin> libraries/bootstrapping.conf Colin> but I don't see why this is happening. -- Colin Adams Preston Lancashire

"Colin" == Colin Paul Adams
writes:
Colin> I tried again with the same result. Is this a known Colin> problem, or do I have investigate myself?
"Colin" == Colin Paul Adams
writes:
Colin> I have just downloaded a darcs snapshot, pulled patches and P.S. This was the January 2009 snapshot of HEAD (the 118 MB version). -- Colin Adams Preston Lancashire

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

"Simon" == Simon Marlow
writes:
Simon> Your problem appears to be that you have set $(GHC) to Simon> ghc --make -fno-warn-unrecognised-pragmas Simon> $(GHC) should be set to the path to GHC, nothing else. You're right. I was using that prior to cabalizing my other project. I'll scrap it now. Thanks. -- Colin Adams Preston Lancashire
participants (2)
-
Colin Paul Adams
-
Simon Marlow