RFR: 8330520: linux ppc64le clang build fails in os_linux.cpp with static_assert with no message is a C++17 extension
Matthias Baesken
mbaesken at openjdk.org
Wed Apr 17 14:41:07 UTC 2024
We run into the following build error when compiling on Linux ppc64le with the clang toolchain
jdk/src/hotspot/os/linux/os_linux.cpp:2975:65: error: 'static_assert' with no message is a C++17 extension [-Werror,-Wc++17-extensions]
static_assert(MADV_POPULATE_WRITE == MADV_POPULATE_WRITE_value);
Currently it is not clear when "8314488: Compile the JDK as C++17" will be in the codebase so better fix the static_assert .
-------------
Commit messages:
- JDK-8330520
Changes: https://git.openjdk.org/jdk/pull/18816/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18816&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8330520
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/18816.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/18816/head:pull/18816
PR: https://git.openjdk.org/jdk/pull/18816
More information about the hotspot-runtime-dev
mailing list