JFR build failure with CDS disabled due to -Werror=unused-function after JDK-8365400

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 27
    • Affects Version/s: 26
    • Component/s: hotspot
    • jfr
    • b04
    • generic
    • linux

        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 ===

              Assignee:
              Hao Sun
              Reporter:
              Hao Sun
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: