On 6/16/22 17:56, Browser wrote:
Thank you for pointing me in the right direction! I tried the backport in pull 152. Unfortunately, it doesn't take care of this problem 🙁

Are you seeing the same failure?

I just built the jdk18u on Fedora 36 / GCC 12 and it failed as you described. Then I built jdk18u with my backport, and it now fails further down the line:

* For target hotspot_variant-server_libjvm_objs_zReferenceProcessor.o:
/home/test/shipilev-jdk18u/src/hotspot/share/gc/z/zReferenceProcessor.cpp: In member function 'oopDesc* ZReferenceProcessor::drop(oop, ReferenceType)': /home/test/shipilev-jdk18u/src/hotspot/share/gc/z/zReferenceProcessor.cpp:270:22: error: '%s' directive argument is null [-Werror=format-overflow=] 270 | log_trace(gc, ref)("Dropped Reference: " PTR_FORMAT " (%s)", p2i(reference), reference_type_name(type));
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

That one I'll chalk up to not-yet-resolved issue with GCC 12. Mainline does not seem to fail GCC 12 the same way, but it does fail too.

Pleasing the newer compiler version is always something in progress. Meanwhile, as usual, configuring with --disable-warnings-as-errors helps to demote these warnings to just warnings.

--
Thanks,
-Aleksey

Reply via email to