Hadrian build failure: ghc-gmp.h: removeLink: does not exist
In a fresh build tree my Hadrian builds usually stop with
| Configure package 'ghc-bignum'
| Copy package 'ghc-prim'
# cabal-copy (for _build/stage1/lib/package.conf.d/ghc-prim-0.9.0.conf)
| Register package 'ghc-prim'
# cabal-register (for _build/stage1/lib/package.conf.d/ghc-prim-0.9.0.conf)
# cabal-configure (for _build/stage1/libraries/ghc-bignum/setup-config)
libraries/ghc-bignum/include/ghc-gmp.h: removeLink: does not exist (No such file or directory)
]0;Finished in 9m19sExitFailure 1
Build failed.
make: *** [/home/simonpj/code/Makefile-spj:10: all] Error 1
Restarting the the build fixes it. So much so that my Makefile (which automates my common tasks) says ./hadrian/build; ./hadrian/build
so that I always do it twice. But it's really a bug.