snowleopard / hadrian

Hadrian: a new build system for the Glasgow Haskell Compiler. Now merged into the GHC tree!
https://gitlab.haskell.org/ghc/ghc/tree/master/hadrian
MIT License
208 stars 39 forks source link

Hadrian failed to build stage1 ghc-prim #514

Closed sighingnow closed 6 years ago

sighingnow commented 6 years ago

When building ghc using hadrain with the following command

stack exec hadrian -- \
    --lint                         \
    --directory "$absoluteRoot/.." \
    -j8                            \
    --flavour=devel2               \
    "$@"

I got the error:

Error when running Shake build system:
* _build/stage1/libraries/ghc-prim/libHSghc-prim-0.5.2.0_p.a
* OracleQ (KeyValue ("_build/stage1/libraries/ghc-prim/package-data.mk","MODULES"))
* _build/stage1/libraries/ghc-prim/package-data.mk
* _build/stage1/libraries/ghc-prim/package-data.mk _build/stage1/libraries/ghc-prim/setup-config
* libraries/ghc-prim/configure
Error, file does not exist and no rule available:
  libraries/ghc-prim/configure

Seems due to the change of ghc-prim in https://phabricator.haskell.org/D4378

angerman commented 6 years ago

Which GHC are you trying to build? HEAD?

sighingnow commented 6 years ago

Yes, I'm trying to build the ghc HEAD.

angerman commented 6 years ago

Strange. libraries/ghc-prim/configure should exists. It does for me.

sighingnow commented 6 years ago

I finally manage to make it work after deleting the _build, inplace and hadrian/cfg/system.config manually (and restart the shell).

Maybe something went wrong with my local msys2 environment. Many thanks for your attention to this! @angerman