-
Notifications
You must be signed in to change notification settings - Fork 710
ghc-pkg: cannot create: ../dist-newstyle/packagedb/ghc-7.10.3 already exists #3460
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
Comments
IIRC @ezyang fixed a couple of similar issues for 1.24. |
@edsko master, 1.24? Is this reliably reproducible? |
1.24; I get it every time I call |
I can repro on HEAD if I pass |
Signed-off-by: Edward Z. Yang <[email protected]>
Signed-off-by: Edward Z. Yang <[email protected]>
Signed-off-by: Edward Z. Yang <[email protected]>
Instead initialise all the ones we'll need in advance of building any packages. The alternative would have been to use a lock, but there's no particular advantage in trying to delay initialisation and avoiding locks keeps things simpler. This should fix haskell#3460 Another similar issue was fixed by 1acc00f which serialised the registration of packages in the local inplace package db, avoiding lost updates (which could previously be observed in test case T3460).
So I cannot actually reproduce the Nevertheless, it's pretty clear that it's a concurrency problem and I've made PR #3509 to avoid doing that action concurrently. |
Uh oh!
There was an error while loading. Please reload this page.
I have a cabal project with one main project and two sub-cabal packages in separate directories; i.e., my
cabal.project
looks likeWhen I try to build this after wiping the
dist-newstyle
directory completely, I get:I can work around the issue by manually installing one package at a time. I suspect it's something to do with concurrency (notice the interleaving of the final message from cabal and the bash prompt above).
@ezyang note: need to pass
-j
to trigger parallelism.The text was updated successfully, but these errors were encountered: