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=3D260872 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+=3D libffi.so:devel/libffi .if ${COMPILER_TYPE} =3D=3D clang MAKE_ENV+=3D COMPILER_WARNINGS_FATAL=3Dfalse USE_CLANG=3Dtrue -CONFIGURE_ENV+=3D LIBCXX=3D"-lc++" +#CONFIGURE_ENV+=3D LIBCXX=3D"-lc++" .if ${COMPILER_VERSION} >=3D 130 -CONFIGURE_ARGS+=3D --with-extra-cflags=3D"-Wno-unused-but-set-parame= ter" +#CONFIGURE_ARGS+=3D --with-extra-cflags=3D"-Wno-unused-but-set-parame= ter" +# PR258954: OpenJDK <=3D 13 crash due to undefined behavior with clang >= =3D 13 +# See also https://bugs.openjdk.java.net/browse/JDK-8229258 +LLVM_VER=3D 12 +BUILD_DEPENDS+=3D clang${LLVM_VER}:devel/llvm${LLVM_VER} +CC=3D ${LOCALBASE}/bin/clang${LLVM_VER} +CXX=3D ${LOCALBASE}/bin/clang++${LLVM_VER} .endif .endif --=20 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>