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

Build failure for Zero target

XMLWordPrintable

      There is a small error in the printf parameters that prevents openjdk9 to build in a zero configuration.

      This is the build error:
      /home/ivan/openjdk9/hotspot/src/cpu/zero/vm/frame_zero.cpp: In member function ‘void frame::zero_print_on_error(int, outputStream*, char*, int) const’:
      /home/ivan/openjdk9/hotspot/src/cpu/zero/vm/frame_zero.cpp:216:73: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘intptr_t* {aka long int*}’ [-Werror=format=]
           st->print_cr(" " PTR_FORMAT ": %-21s = %s", addr, fieldbuf, valuebuf);
      ^
      cc1plus: all warnings being treated as errors

            ikrylov Ivan Krylov (Inactive)
            ikrylov Ivan Krylov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: