-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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: Occasional "internal compiler error" with gcc on coverage CI runs #18529
Comments
So, I wanted to run coverage locally, and ran into this... And I actually found out how a "workaround": If I remove all Might be time to report upstream with this info, although I got no clue if its possible to make this "minimal" :(. |
I think it is worth reporting upstream if only to discover if it is intentional. |
Hmmm, was about to, but then noticed this one which might be a duplicate: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95847 EDIT: NVM, if it is the same bug (and it matches practically perfect aside from being C not fortran). In that case it is fairly likely already fixed in all gcc major versions, but not released yet :(. |
We do have repeated line numbers in the generated C code because they refer to lines the template file. |
Yeah, but we do that everywhere. I thought for a bit we may be doing something subtly wrong, but I now doubt it. The next thing I would try is whether the development 11.x or 10.x versions of gcc fix, but I don't feel like digging into getting a dev version of gcc running. |
Ah OK, we can actually learn one other thing from it, but I guess we knew that before: If CI starts to fail again, we probably just have to make sure to use a GCC 8.x (until a gcc 10.3 or 11 is available). |
@charris since you are already on GCC 11, could you try if:
doesn't fail to compile for you? |
@seberg Yes, it fails for me also.
There are also a bunch of warnings. |
:(, I guess that means we have to report it as a gcc bug if its not fixed in the 11.x branch. |
Created a bug report here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100788 not sure what the GCC folks need with respect to minimal reproducer, but lets see. |
It seems GCC will fix this (remove an assert which leads to the failure). In theory, there should be something wrong with the So there may be ways to work around it in NumPy as well, if we run into it more at some point. |
This should be fixed now in the next releases of GCC 10 and 11 (whenever those are). So hopefully, whenever our CI runs into the issue more often, we can skip gcc 9 and jump to one of those fixed versions directly. |
|
Yeah, it was just now backported, 11.3 and whatever the next 10.x is (if it comes) should be fine. |
I also note new |
Closing, it now works for me. Oddly enough, on a gcc 11.2.0 (but with a few debian patches, so who knows). Hopefully, we can get around doing some gcc version dance on CI though. |
I thought we had an issue open for this but cannot find it now. Occasionally, CI jobs fail like this one with
Note it is in the coverage compilation of the generated code, in the "full" CI run with gcc 9.3.0
The text was updated successfully, but these errors were encountered: