-
Notifications
You must be signed in to change notification settings - Fork 843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repeated rebuilds of Hadrian (GHC build system) #4566
Comments
@ndmitchell we've just today changed the way Stack is supposed to work with GHC boot libraries (in #4547), and from a quick glance into your log it looks like it could be quite related - Stack complains a lot about mismatching libraries. I'll try to find some time to check out building Hadrian with the latest master - it looks to be a good test case (though a lengthy one ) |
Note that running I upgraded to LTS 13.6 and removed the text local dependency, which cuts the rebuild down to just |
@ndmitchell it looks like we do some extra rebuilds even using the latest |
Looking at it, if I remove happy as a build-tool of hadrian, the spurious rebuilds go away. I suspect the issue is that happy has a custom-setup dependency on Cabal of < 2.4, and we're building with a local Cabal 2.5. |
Is this resolved, then? It would be good to get an integration test on this. We have
|
Definitely not resolved, since I can reproduce it today using Stack from HEAD. |
@ndmitchell with fixes in #4588 I see no more repeated rebuilds of Hadrian or its dependencies |
Confirm it's gone now, so closing. Thanks for all the fixes! |
Using
Given GHC as checked out with
git clone https://gitlab.haskell.org/ghc/ghc.git --recursive
at SHAef25b59a97f419a2ad6457f696e32aef9ffb3a0f, I do:
I would expect that building twice in a row does little to nothing the second time around. Instead, it biulds a whole heap of stuff. The log is attached: log.txt
I note the line
Exception ignored when attempting to load C:\Users\ndmit_000\AppData\Local\Temp\stack7772\hashable-1.2.7.0\.stack-work\dist\7d103d30\stack-config-cache: C:\Users\ndmit_000\AppData\Local\Temp\stack7772\hashable-1.2.7.0\.stack-work\dist\7d103d30\stack-config-cache: openBinaryFile: does not exist (No such file or directory)
Note sure if that is related.
The text was updated successfully, but these errors were encountered: