-
Notifications
You must be signed in to change notification settings - Fork 26
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
make -j
explodes, sometimes
#89
Comments
Okay, as soon as I filed this it stopped happening. I'm gonna leave this open for now to see if I can figure out how to get it to start happening again. It really was just as simple as
and about one in four builds would fail catastrophically while trying to compile y.tab.c. |
Aha, I'm getting repros again! Yay! The failures all happen while trying to produce Experimentally, it seems like adding the line
stops the errors happening. But this is all weird and probabilistic behavior so I'd love to find some documentation that actually helps me know what the Right Thing to do here would be. |
Here's my best guess right now as to what's going on:
This would explain both why Turns out GNU Unfortunately that feature isn't very portable, so unless we expect everybody to use a recent-ish GNU |
That's correct.
Exactly right, and i agree that it's a really weird race, but that's also why newer build tools like Ninja and new meta-build systems like CMake support multiple outputs.
One of the
Another option might be to have |
Ooh, this is much nicer than what I came up with. I think we should do this (likely with a brief explanatory comment). |
es is quick enough to build that this doesn't seem terribly material, but it's likely a sign of a missing dependency link somewhere in the Makefile that should be fixed up. It seems more likely if optimization is off, like
-O0
.The errors seem to all be around y.tab.c.
The text was updated successfully, but these errors were encountered: