Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jan 2022 11:12:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        java@FreeBSD.org
Subject:   [Bug 260872] java/openjdk8:
Message-ID:  <bug-260872-8522-1Y5cOeyHlH@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-260872-8522@https.bugs.freebsd.org/bugzilla/>
References:  <bug-260872-8522@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260872

Ronald Klop <ronald-lists@klop.ws> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ronald-lists@klop.ws

--- Comment #3 from Ronald Klop <ronald-lists@klop.ws> ---
(In reply to Mikael Urankar from comment #2)
Below diff works for me. I have no idea if the CONFIGURE_ENV should have
stayed.

diff --git a/java/openjdk8/Makefile b/java/openjdk8/Makefile
index e444b3147af9..9b21c0da7d54 100644
--- a/java/openjdk8/Makefile
+++ b/java/openjdk8/Makefile
@@ -202,9 +202,15 @@ LIB_DEPENDS+=      libffi.so:devel/libffi

 .if ${COMPILER_TYPE} == clang
 MAKE_ENV+=     COMPILER_WARNINGS_FATAL=false USE_CLANG=true
-CONFIGURE_ENV+=        LIBCXX="-lc++"
+#CONFIGURE_ENV+=       LIBCXX="-lc++"
 .if ${COMPILER_VERSION} >= 130
-CONFIGURE_ARGS+=       --with-extra-cflags="-Wno-unused-but-set-parameter"
+#CONFIGURE_ARGS+=      --with-extra-cflags="-Wno-unused-but-set-parameter"
+# 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}
 .endif
 .endif

-- 
You are receiving this mail because:
You are the assignee for the bug.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-260872-8522-1Y5cOeyHlH>