[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

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 09 Jul 2022 09:36:01 UTC
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.