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 37 forks source link

Build fails with Error: Data.Binary.Get.runGet at position 362: not enough bytes #631

Closed chitrak7 closed 6 years ago

chitrak7 commented 6 years ago

@snowleopard As I was trying to rebase, I ran across this error. Error when running Shake build system:

I then pulled hadrians master but the error still persists.

sighingnow commented 6 years ago

PR #627 added a new filed mainIs to PackageData. You need do hadrian clean, then rebuild hadrian and build ghc with hadrian from scratch.

snowleopard commented 6 years ago

@sighingnow Thanks! Looks like this is indeed the reason.

@chitrak7 Can you confirm if this worked?

chitrak7 commented 6 years ago

yes, running clean removed the errors.