-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[GCC12] argument value ... exceeds maximum object size #41795
Comments
A new Issue was created by @iarspider . @Dr15Jones, @perrotta, @dpiparo, @rappoccio, @makortel, @smuzaffar can you please review it and eventually sign/assign? Thanks. cms-bot commands are listed here |
assign simulation,dqm |
New categories assigned: dqm,simulation @mdhildreth,@tjavaid,@micsucmed,@nothingface0,@rvenditti,@emanueleusai,@syuvivida,@civanch,@pmandrik you have been requested to review this Pull request/Issue and eventually sign? Thanks |
All the warnings seem to be related to C-arrays of |
I would imagine that |
On a quick look the pieces of code look like replacing the C-arrays with |
seems to be |
Yes it is LTO, which has a problem if there is a complex code with C-arrays of unclear size. We have observed similar crazy report on Geant4. When migration to std::vector is done the warning disappears and code become more readable. I suspect that LTO simply confused. |
and can be reproduced only if |
of course "we" are NOT the only one |
+1 it is likely a problem of LTO in gcc12 but code itself was more complicate than needed. Now no C arrays. |
GCC12 emits
Walloc-size-larger-than
compilation warnings in SimG4CMS 1, 2, 3, and in DQM 4:These could be false-positives though, as I don't think the lines in question will ever ask for
2^64-1
bytes of memory...The text was updated successfully, but these errors were encountered: