-
Notifications
You must be signed in to change notification settings - Fork 101
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
std::pair<double, double> EghtPointSolid::vertex(int which) const
: gcc-10.1+ with C++17 warns a lot on aarch64
#1043
Comments
Not exactly the right commit, but it points to the code where gcc emits the warning. |
This is a very bizarre warning.
But I do not understand the reasoning: a problem would only arise if code with different ABI standards would be mixed... |
I'm with you there: I don't have an I agree it's a strange warning and not really a problem, per se. But it may prevent people from running with |
First of all, this is a temporary issue and probably will disappear in a few GCC versions ahead. Then we rethink and try to solve together with the guy the problem. I am simply against solving problems which may appear at some time in the future..... At this very moment also the question of the testbed is solved. |
If these kind of changes only happen when new major versions are release (there are no .0 releases?), we don't run into these issues, because everything in our communities is always compiled with the same major version of a compiler, right? |
I was yesterday building on ubuntu with gcc-12 (12.1.0) and I did not see any of these warnings. |
ubuntu on aarch64? |
PS: we are building DD4hep on aarch64 for the lcg stacks, e.g.: /cvmfs/sft.cern.ch/lcg/nightlies/dev4/Tue/DD4hep/01.23/aarch64-centos7-gcc11-opt/logs/DD4hep-01.23-build.log |
I notice the same warning in those logs too. |
Yes, but we don't monitor those logs for warnings. And the question is still, if we can just |
I think |
The issue is in Shapes.h, which is included indirectly in all user classes through Detector.h. That results in warnings such as:
The underlying issue is https://gcc.gnu.org/gcc-10/changes.html#empty_base (which aarch64 started warning about in gcc-12.2, https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=b243ad1afb7f06ef4ab7649600d900b09b9c6b52). I'm not sure what to do about the call (or whether to just shut it up with a pragma to
-Wno-psabi
for those lines), but it's very noisy since it emits a warning for every detector plugin :-)The text was updated successfully, but these errors were encountered: