Skip to content
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

Parallel builds don't work: Cabal (library) bug on configure? #84

Closed
snoyberg opened this issue May 27, 2015 · 7 comments
Closed

Parallel builds don't work: Cabal (library) bug on configure? #84

snoyberg opened this issue May 27, 2015 · 7 comments
Milestone

Comments

@snoyberg
Copy link
Contributor

When I have parallel builds on, the runhaskell Setup.hs build steps will sporadically fail about "need to configure", but if I set the number of Shake flags to 1, it works. We may want to conditionally set threads to 1 on Windows for an initial release, and then debug what's happening.

@snoyberg snoyberg self-assigned this May 27, 2015
@snoyberg snoyberg added this to the Initial release milestone May 27, 2015
snoyberg added a commit that referenced this issue May 27, 2015
@snoyberg
Copy link
Contributor Author

Initial hack done, deferring to later milestone.

@snoyberg
Copy link
Contributor Author

This now appears to be occurring on Linux as well

snoyberg added a commit that referenced this issue May 28, 2015
@snoyberg
Copy link
Contributor Author

I suspect that this is a bug in the Cabal library. However, b511d70 introduces a resilient workaround. I'm going to move this to a later milestone for now, but may end up closing it completely.

@snoyberg snoyberg modified the milestones: Later improvements, Initial release May 28, 2015
@snoyberg snoyberg removed their assignment May 28, 2015
snoyberg added a commit that referenced this issue May 28, 2015
@snoyberg
Copy link
Contributor Author

The workaround is working reliably, and is documented as a hack in the codebase. Closing the issue, we can always research further in the future if desired.

@chrisdone
Copy link
Member

So something to do with configuring indeed has a global dependency. Good to know...

@snoyberg
Copy link
Contributor Author

I bet if we crawled through the cabal-install code base long enough we'd find that they'd implemented the same hack somewhere.

@mpilgrem
Copy link
Member

mpilgrem commented Dec 5, 2023

It seems that, after eight years, something may have happened somewhere to cure the original problem that the workaround fixed. See #6361.

@mpilgrem mpilgrem changed the title Parallel builds don't seem to work on Windows Parallel builds don't work: Cabal (library) bug on configure? Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants