Date: Sat, 09 Jul 2022 09:36:01 +0000 From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: [Bug 264065] java/openjdk8: Crashes on aarch64 when built with clang13: # Internal Error (assembler_aarch64.hpp:237) .. guarantee(val < (1U << nbits)) failed: Field too big for insn Message-ID: <bug-264065-8522-H5Im3RA2lp@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-264065-8522@https.bugs.freebsd.org/bugzilla/> References: <bug-264065-8522@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264065 Peter Sopko <peter.sopko@backbone.sk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |peter.sopko@backbone.sk --- Comment #15 from Peter Sopko <peter.sopko@backbone.sk> --- can we please (as already mentioned by previous comments) limit the llvm12 dependency requirement to aarch64 architecture ? Changing current Makefile to contain something like .if ${COMPILER_VERSION} >= 130 .if ${ARCH} == aarch64 # PR258954: OpenJDK <= 13 crash due to undefined behavior with clang >= 13 # See also https://bugs.openjdk.java.net/browse/JDK-8229258 LLVM_VER= 12 BUILD_DEPENDS+= clang${LLVM_VER}:devel/llvm${LLVM_VER} CC= ${LOCALBASE}/bin/clang${LLVM_VER} CXX= ${LOCALBASE}/bin/clang++${LLVM_VER} .else CONFIGURE_ARGS+= --with-extra-cflags="-Wno-unused-but-set-parameter" .endif .endif on line 207 should be enough (basically having the previous behaviour in case architecture is not aarch64, and this new patched llvm12 behaviour in case it is not aarch64)... Thank you -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264065-8522-H5Im3RA2lp>
