Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8365296

Build failure with Clang due to -Wformat warning after JDK-8364611

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • None
    • generic
    • linux

      Release build failed with Clang 18 on Ubuntu 24.04 + both AArch64 and x86_64 hardware.

      Here shows the snippet of error log:

      === Output from failing command(s) repeated here ===
      * For target support_test_jdk_jtreg_native_support_exePrintSignalDisposition_exePrintSignalDisposition.o:
      /tmp/jdk-src/test/jdk/java/lang/ProcessBuilder/childSignalDisposition/exePrintSignalDisposition.c:75:41: error: format specifies type 'unsigned int' but the argument has type '__sigset_t' [-Werror,-Wformat]
         75 | printf("%X %X\n", act.sa_flags, act.sa_mask);
            | ~~ ^~~~~~~~~~~
      1 error generated.

      * All command lines available in /tmp/build-release/make-support/failure-logs.
      === End of repeated output ===

      No indication of failed target found.
      HELP: Try searching the build log for '] Error'.
      HELP: Run 'make doctor' to diagnose build problems.

      make[1]: *** [/tmp/jdk-src/make/Init.gmk:151: main] Error 2
      make: *** [/tmp/jdk-src/make/PreInit.gmk:159: test-image] Error 2

            ghan Guanqiang Han
            haosun Hao Sun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: