os: ubuntu-24.04
gcc: 13.3.0
arch: both aarch64 and x86_64
reproduce:
configure --with-debug-level=release --disable-cds
the snippet of error log:
ERROR: Build failed for target 'images' in configuration '/home/haosun/local-work/test/aaa/build-release' (exit code 2)
=== Output from failing command(s) repeated here ===
* For target hotspot_variant-server_libjvm_objs_jfrClassDefineEvent.o:
/tmp/test/aaa/jdk-src/src/hotspot/share/jfr/support/jfrClassDefineEvent.cpp:128:16: error: ‘traceid get_source(const AOTClassLocation*, JavaThread*)’ defined but not used [-Werror=unused-function]
128 | static traceid get_source(const AOTClassLocation* cl, JavaThread* jt) {
| ^~~~~~~~~~
cc1plus: all warnings being treated as errors
* All command lines available in /tmp/test/aaa/build-release/make-support/failure-logs.
=== End of repeated output ===
gcc: 13.3.0
arch: both aarch64 and x86_64
reproduce:
configure --with-debug-level=release --disable-cds
the snippet of error log:
ERROR: Build failed for target 'images' in configuration '/home/haosun/local-work/test/aaa/build-release' (exit code 2)
=== Output from failing command(s) repeated here ===
* For target hotspot_variant-server_libjvm_objs_jfrClassDefineEvent.o:
/tmp/test/aaa/jdk-src/src/hotspot/share/jfr/support/jfrClassDefineEvent.cpp:128:16: error: ‘traceid get_source(const AOTClassLocation*, JavaThread*)’ defined but not used [-Werror=unused-function]
128 | static traceid get_source(const AOTClassLocation* cl, JavaThread* jt) {
| ^~~~~~~~~~
cc1plus: all warnings being treated as errors
* All command lines available in /tmp/test/aaa/build-release/make-support/failure-logs.
=== End of repeated output ===
- caused by
-
JDK-8365400 Enhance JFR to emit file and module metadata for class loading
-
- Resolved
-
- links to
-
Review(master)
openjdk/jdk/28917