git: aa1ca89826b5 - main - java/openjdk8: Attempt to fix newer aarch64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 19 Jun 2022 04:56:06 UTC
The branch main has been updated by glewis: URL: https://cgit.FreeBSD.org/ports/commit/?id=aa1ca89826b5669e623d868e447830aad01e6f1a commit aa1ca89826b5669e623d868e447830aad01e6f1a Author: Greg Lewis <glewis@FreeBSD.org> AuthorDate: 2022-06-19 04:53:05 +0000 Commit: Greg Lewis <glewis@FreeBSD.org> CommitDate: 2022-06-19 04:55:54 +0000 java/openjdk8: Attempt to fix newer aarch64 Revert to forcing Clang 12 if Clang 13 or newer is detected. This may fix problems with the built JDK on aarch64. PR: 264065 --- java/openjdk8/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/java/openjdk8/Makefile b/java/openjdk8/Makefile index 9addd3e34e55..28e45e5412f7 100644 --- a/java/openjdk8/Makefile +++ b/java/openjdk8/Makefile @@ -204,7 +204,12 @@ LIB_DEPENDS+= libffi.so:devel/libffi MAKE_ENV+= COMPILER_WARNINGS_FATAL=false USE_CLANG=true CONFIGURE_ENV+= LIBCXX="-lc++" .if ${COMPILER_VERSION} >= 130 -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