[Bug 260872] java/openjdk8:
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 260872] java/openjdk8:"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 18 Jan 2022 11:12:33 UTC
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.