RFR: 8316234: AArch64: fastdebug build failure with GCC 12 and 13 due to -Wnonnull warning in vm_version_linux_aarch64.cpp [v2]
Hao Sun
haosun at openjdk.org
Tue Nov 28 07:03:05 UTC 2023
On Tue, 28 Nov 2023 04:13:17 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:
> Oracle CI is using vanilla gcc13.2.1 (so no distribution-specific patches), and not seeing these warnings. -Wnonnull warnings are enabled by -Wall, unless otherwise suppressed. -Wnonnull warnings are suppressed for one file (ad_$(HOTSPOT_TARGET_CPU_ARCH).cpp), but that's not the file involved here. So I don't understand why Oracle CI is not seeing these warnings too. This needs to be investigated.
Hi, thanks for pointing it out.
As I mentioned in the [JBS](https://bugs.openjdk.org/browse/JDK-8316234?focusedId=14628911&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-14628911),
> This failure occurred on Fedora38 with the default GCC 13.2.1 as well.
>From this patch https://github.com/openjdk/jdk/pull/16550, I suppose that Oracle CI uses GCC 13.2.0.
Then I manually built GCC 13.2.0 on Ubuntu 22.04 (Note that the source code is downloaded from https://ftp.gnu.org/gnu/gcc/gcc-13.2.0/), and encountered the same `-Wnonnull` warning as well.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16819#issuecomment-1829224071
More information about the hotspot-runtime-dev
mailing list