FreeBSD Bugzilla – Attachment 210308 Details for
Bug 242965
java/openjdk8: add bootstrap and fix compilation for powerpc64 elfv2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
openjdk8.patch (text/plain), 4.64 KB, created by
Piotr Kubaj
on 2019-12-29 17:44:31 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Piotr Kubaj
Created:
2019-12-29 17:44:31 UTC
Size:
4.64 KB
patch
obsolete
>Index: java/bootstrap-openjdk8/Makefile >=================================================================== >--- java/bootstrap-openjdk8/Makefile (revision 520882) >+++ java/bootstrap-openjdk8/Makefile (working copy) >@@ -19,7 +19,7 @@ > DISTVERSION_amd64= r450802 > DISTVERSION_arm= r450802 > DISTVERSION_i386= r450802 >-DISTVERSION_ppc64= r455236 >+DISTVERSION_ppc64= r455236 # see below for ELFv2 > > JDK_ARCH= ${ARCH:C/armv.*/arm/:S/powerpc/ppc/} > JDK_PORT= openjdk8 >@@ -38,6 +38,10 @@ > RUN_DEPENDS+= ${LOCALBASE}/lib/libffi.so.6:devel/libffi > .endif > >+.if defined(PPC_ABI) && ${PPC_ABI} == ELFv2 >+DISTVERSION_ppc64= r501298 >+.endif >+ > do-install: > @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${INSTALLDIR} > @cd ${WRKSRC} && ${COPYTREE_BIN} bin ${INSTALLDIR} >Index: java/bootstrap-openjdk8/distinfo.ppc64 >=================================================================== >--- java/bootstrap-openjdk8/distinfo.ppc64 (revision 520882) >+++ java/bootstrap-openjdk8/distinfo.ppc64 (working copy) >@@ -1,3 +1,5 @@ >-TIMESTAMP = 1512091763 >+TIMESTAMP = 1577641270 > SHA256 (openjdk8-ppc64-r455236.tar.xz) = 81ac56dbffd860d41e7d6d2a2dc29e6f65ee155db9c92a1c9ccc688b2d7a1f19 > SIZE (openjdk8-ppc64-r455236.tar.xz) = 28179536 >+SHA256 (openjdk8-ppc64-r501298.tar.xz) = 2bb8b860e76cf8eb02a0a229d36421046790d7907b2f55a52c95b990072dda00 >+SIZE (openjdk8-ppc64-r501298.tar.xz) = 28740136 >Index: java/openjdk8/Makefile >=================================================================== >--- java/openjdk8/Makefile (revision 520882) >+++ java/openjdk8/Makefile (working copy) >@@ -195,14 +195,9 @@ > .endif > > .if ${COMPILER_TYPE} == clang >-.if ${COMPILER_VERSION} >= 35 >-MAKE_ENV+= COMPILER_WARNINGS_FATAL=false >-.endif >-MAKE_ENV+= USE_CLANG=true >-.if ${COMPILER_FEATURES:Mlibc++} >+MAKE_ENV+= COMPILER_WARNINGS_FATAL=false USE_CLANG=true > CONFIGURE_ENV+= LIBCXX="-lc++" > .endif >-.endif > > # GCC is broken with PCH: https://lists.freebsd.org/pipermail/svn-src-all/2015-March/101722.html > .if ${COMPILER_TYPE} == gcc >@@ -214,6 +209,11 @@ > .endif > .endif > >+.if defined(PPC_ABI) && ${PPC_ABI} == ELFv2 >+EXTRA_PATCHES+= ${FILESDIR}/extra-patch-ppc64-elfv2 >+MAKE_ARGS+= USE_PRECOMPILED_HEADER=0 >+.endif >+ > .if empty(ICONV_LIB) > ICONV_CPPFLAGS= -DLIBICONV_PLUG > .else >Index: java/openjdk8/files/extra-patch-ppc64-elfv2 >=================================================================== >--- java/openjdk8/files/extra-patch-ppc64-elfv2 (nonexistent) >+++ java/openjdk8/files/extra-patch-ppc64-elfv2 (working copy) >@@ -0,0 +1,48 @@ >+--- common/autoconf/flags.m4.orig 2019-07-11 17:47:26.232244000 +0200 >++++ common/autoconf/flags.m4 2019-07-11 17:48:11.252733000 +0200 >+@@ -563,7 +563,7 @@ AC_DEFUN_ONCE([FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK], >+ CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DVM_BIG_ENDIAN" >+ fi >+ fi >+- if test "x$OPENJDK_TARGET_CPU" = xppc64le; then >++ if test "x$OPENJDK_TARGET_CPU" = xppc64; then >+ CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DABI_ELFv2" >+ fi >+ >+--- common/autoconf/generated-configure.sh.orig 2019-07-11 17:47:33.640280000 +0200 >++++ common/autoconf/generated-configure.sh 2019-07-11 17:49:51.392598000 +0200 >+@@ -41992,7 +41992,7 @@ $as_echo "$supports" >&6; } >+ CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DVM_BIG_ENDIAN" >+ fi >+ fi >+- if test "x$OPENJDK_TARGET_CPU" = xppc64le; then >++ if test "x$OPENJDK_TARGET_CPU" = xppc64; then >+ CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DABI_ELFv2" >+ fi >+ >+--- hotspot/make/bsd/makefiles/ppc64.make.orig 2019-07-11 22:27:35.314715000 +0200 >++++ hotspot/make/bsd/makefiles/ppc64.make 2019-07-12 11:28:56.070546000 +0200 >+@@ -37,11 +37,8 @@ ifeq ($(filter $(OPENJDK_TARGET_CPU_ENDIAN),big little >+ endif >+ >+ ifeq ($(OPENJDK_TARGET_CPU_ENDIAN),big) >+- # fixes `relocation truncated to fit' error for gcc 4.1. >+- CFLAGS += -mminimal-toc >+- >+ # finds use ppc64 instructions, but schedule for power5 >+- CFLAGS += -mcpu=powerpc64 -mtune=power5 -minsert-sched-nops=regroup_exact -mno-multiple -mno-string >++ CFLAGS += -mcpu=powerpc64 -mtune=power5 -DABI_ELFv2 >+ else >+ # Little endian machine uses ELFv2 ABI. >+ CFLAGS += -DVM_LITTLE_ENDIAN -DABI_ELFv2 >+--- hotspot/src/cpu/ppc/vm/sharedRuntime_ppc.cpp.orig 2019-07-12 11:49:27.065494000 +0200 >++++ hotspot/src/cpu/ppc/vm/sharedRuntime_ppc.cpp 2019-07-12 11:49:34.924308000 +0200 >+@@ -42,8 +42,6 @@ >+ #include "opto/runtime.hpp" >+ #endif >+ >+-#include <alloca.h> >+- >+ #define __ masm-> >+ >+ #ifdef PRODUCT > >Property changes on: java/openjdk8/files/extra-patch-ppc64-elfv2 >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
pkubaj
:
maintainer-approval?
(
java
)
Actions:
View
|
Diff
Attachments on
bug 242965
: 210308