git: 5a8afa08c5f9 - main - java/openjdk11: fix build on powerpc64*
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 09 Aug 2022 21:16:39 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5a8afa08c5f99fba47509a15c79e2cd2128f48ac
commit 5a8afa08c5f99fba47509a15c79e2cd2128f48ac
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-08-09 20:17:15 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-08-09 21:16:34 +0000
java/openjdk11: fix build on powerpc64*
Go back to using LLVM 12, bin/java built with LLVM 13 crashes with:
* For target jdk__packages_attribute.done:
A fatal error has been detected by the Java Runtime Environment:
SIGILL (0x4) at pc=0x0000000802e3d438, pid=28756, tid=149399
JRE version: (11.0.16+8) (build )
Java VM: OpenJDK 64-Bit Server VM (11.0.16+8-1, mixed mode, tiered, compressed oops, serial gc, bsd-ppc64)
Problematic frame:
V [libjvm.so+0xe3d438] JVM_RaiseSignal+0x446bcc
---
java/openjdk11/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/java/openjdk11/Makefile b/java/openjdk11/Makefile
index 3c8b088098d6..4ca7c9933447 100644
--- a/java/openjdk11/Makefile
+++ b/java/openjdk11/Makefile
@@ -141,6 +141,12 @@ CONFIGURE_ARGS+= --with-extra-ldflags="-Wl,-rpath=${LOCALBASE}/lib/gcc${GCC_DEFA
--with-extra-cxxflags="-Wl,-rpath=${LOCALBASE}/lib/gcc${GCC_DEFAULT}"
.else
MAKE_ENV+= USE_CLANG=true
+.if ${COMPILER_VERSION} >= 130 && ${ARCH:Mpowerpc64*}
+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
.if ${ARCH} == aarch64 || ${ARCH:Marmv*} || ${ARCH:Mpowerpc64*}