-
Notifications
You must be signed in to change notification settings - Fork 279
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
BLD: Fails to build: internal_error #4278
Comments
Hi, and welcome to yt! Thanks for opening your first issue. We have an issue template that helps us to gather relevant information to help diagnosing and fixing the issue. |
Thank you very much for reporting this. I take it that the problem is still present for yt 4.1.3 ? Most likely the whole 4.1.x series is affected |
Yeah, it is still the same: sometimes it passes (so fortunately, I could manage to push the update to openSUSE/Factory), but then next time it fails. I am afraid it could be something Cythonish or even GCC. |
I'm not really sure what can be done about it on our side. Even if we have incorrect (unused) dependencies between source files, it seems to me that compiler race conditions are probably out of our control. Otherwise, I currently don't have any idea how to look for what's causing it wether in yt's source code or its infrastructure. |
Well, the build runs in 2 steps, the first one compiles |
@mcepl one thing we could try is to try to build using only one thread rather than the number of cores available to see whether we indeed have no leverage on the bug at all. Could you try building with
This will cause the build to be sequential rather than parallel and should™ make everything on yt's side deterministic. |
Yes, that helped. Thank you. |
Cython dev here (I also posted this response on the mailing list): Assuming the Cython does do a small amount of monkey-patching to these packages though, so it's possible the problem is on our end. But probably unlikely. I'm aware this sounds like trying to pass the buck further ;).
The current branch is maintained, and has had a release in the last few days. So this kind of bug would likely be fixed on it (if it were our fault), but new features are going into the shiny new version. |
Just one more comment based on a quick reading of the log file (I could be wrong of course). I think all your .so files are linked with a.so: compiles a.c -> compiles fixed_interpolator.cpp -> links a.o and fixed_interpolator.o And the b.so recompilation of I guess you want to compile it only once. I'm not quite sure how you do that in setup.py though |
I am sorry then. I really didn’t mean to slander you and I am sorry if I did so. |
No worries! There's definitely good reasons why people are frustrated with the somewhat stale state of the stable branch. We just don't want people to think it's completely neglected. |
I believe this is also the source of the intermittent failures on Jenkins that look like |
Avoid a race condition on fixed_interpolator.o during parallel builds by building it only once and storing it in a static library. Hopefully fixes yt-project#4278.
Avoid a race condition on fixed_interpolator.o during parallel builds by building it only once and storing it in a static library. Hopefully fixes yt-project#4278.
Avoid a race condition on fixed_interpolator.o during parallel builds by building it only once and storing it in a static library. Hopefully fixes yt-project#4278.
Avoid a race condition on fixed_interpolator.o during parallel builds by building it only once and storing it in a static library. Hopefully fixes yt-project#4278.
Bug report
Bug summary
When building the package as part of the packaging
yt
for openSUSE, the fails often (not always, something between 50 % and 80 %) it fails with an error like this:Code for reproduction
It gets triggered while building the package, so no obvious code snippet.
Complete build log with all packages used and steps taken to achieve this problem.
Actual outcome
See the build error above.
Expected outcome
Clean build.
Version Information
All packages from openSUSE packages.
When I have consulted this with our GCC expert (hi, @marxin!) I got this suggestion:
The text was updated successfully, but these errors were encountered: