RFR: 8316234: AArch64: fastdebug build failure with GCC 12 and 13 due to -Wnonnull warning in vm_version_linux_aarch64.cpp [v2]

Magnus Ihse Bursie ihse at openjdk.org
Fri Mar 8 07:53:01 UTC 2024


On Thu, 30 Nov 2023 08:38:45 GMT, Hao Sun <haosun at openjdk.org> wrote:

>>> We (Oracle) cross-build linux-aarch64 from linux-x64 (CI uses Oracle Linux 8).
>> 
>> It turns out I was wrong about that.  We aren't cross-building, but I was confused by 
>> https://bugs.openjdk.org/browse/JDK-8320942
>> So that's not a difference after all.  So I have no idea why some folks are getting warnings but others aren't.
>> We probably need to do some detailed configuration comparisons to get to the bottom of this.
>
>> It turns out I was wrong about that. We aren't cross-building, 
> 
> Thanks for your clarification. @kimbarrett 
> 
> I'd like to post the configuration info of my local test environment here.
> 
> As the Oracle CI log is not available to me, I wonder if you could help make a comparison between my config and that in Oracle CI? 
> And please feel free to let me know if we need more info. 
> Thanks.
> 
> 
> #
> # GCC 13.2.0
> #
> $ /usr/local/gcc-13.2.0/bin/gcc-13.2.0 -v
> Using built-in specs.
> COLLECT_GCC=/usr/local/gcc-13.2.0/bin/gcc-13.2.0
> COLLECT_LTO_WRAPPER=/usr/local/gcc-13.2.0/libexec/gcc/aarch64-linux-gnu/13.2.0/lto-wrapper
> Target: aarch64-linux-gnu
> Configured with: ./configure -v --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu --prefix=/usr/local/gcc-13.2.0 --enable-checking=release --enable-languages=c,c++ --disable-multilib --program-suffix=-13.2.0
> Thread model: posix
> Supported LTO compression algorithms: zlib
> gcc version 13.2.0 (GCC)
> 
> #
> # Ubuntu 22.04
> #
> $ cat /etc/lsb-release
> DISTRIB_ID=Ubuntu
> DISTRIB_RELEASE=22.04
> DISTRIB_CODENAME=jammy
> DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"
> 
> #
> # OpenJDK config
> #
> ====================================================
> A new configuration has been successfully created in
> /tmp/build-fastdebug
> using configure arguments '--with-boot-jdk=/tmp/boot-jdk/aarch64/master --with-debug-level=fastdebug --with-version-opt=git-940f67c1a --with-gtest=/tmp/tools/googletest-1.14.0 --with-jtreg=/tmp/libs/jtreg'.
> 
> Configuration summary:
> * Name:           /tmp/build-fastdebug
> * Debug level:    fastdebug
> * HS debug level: fastdebug
> * JVM variants:   server
> * JVM features:   server: 'cds compiler1 compiler2 dtrace epsilongc g1gc jfr jni-check jvmci jvmti management parallelgc serialgc services shenandoahgc vm-structs zgc'
> * OpenJDK target: OS: linux, CPU architecture: aarch64, address length: 64
> * Version string: 22-internal-git-940f67c1a (22-internal)
> * Source date:    1701332588 (2023-11-30T08:23:08Z)
> 
> Tools summary:
> * Boot JDK:       openjdk version "22-ea" 2024-03-19 OpenJDK Runtime Environment (build 22-ea+18-1420) OpenJDK 64-Bit Server VM (build 22-ea+18-1420, mixed mode, sharing) (at /tmp/boot-jdk/aarch64/master)
> * Toolchain:      gcc (GNU Compiler Collection)
> * C Compiler:     Version 13.2.0 (at /usr/local/gcc-13.2.0/bin/gcc-13.2.0)
> * C++ Compiler:   Version 13.2.0 (at /usr/local/gcc-13.2.0/bin/g++-13.2.0)
> 
> Build performance summary:
> * Build jobs:     160
> * Memory limit:   256020 MB

@shqking You dropped the ball on this. Did you find another resolution to this problem in your environment?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/16819#issuecomment-1985209028


More information about the hotspot-runtime-dev mailing list