Bug 251247 - java/openjdk8: add support for powerpc64le
Summary: java/openjdk8: add support for powerpc64le
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: powerpc Any
: --- Affects Only Me
Assignee: freebsd-java (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-19 00:47 UTC by Piotr Kubaj
Modified: 2020-12-03 23:40 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (java)


Attachments
patch (3.42 KB, patch)
2020-11-19 00:47 UTC, Piotr Kubaj
pkubaj: maintainer-approval? (java)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kubaj freebsd_committer freebsd_triage 2020-11-19 00:47:08 UTC
Created attachment 219802 [details]
patch

powerpc64le needs --disable-jfr and USE_PRECOMPILED_HEADER=0 - same as powerpc64 elfv2.

Clang refuses to build little-endian binaries for power7, this needs to be bumped to power8 (this is a bug in openjdk, POWER7 is not LE-compatible).

-minsert-sched-nops=regroup_exact -mno-multiple -mno-string are not supported by clang and need to be removed.

FreeBSD uses sys/endian.h instead of byteswap.h and bswap{16,32,64} instead of bswap_{16,32,64}.
Comment 1 commit-hook freebsd_committer freebsd_triage 2020-12-03 23:40:10 UTC
A commit references this bug:

Author: pkubaj
Date: Thu Dec  3 23:39:48 UTC 2020
New revision: 556937
URL: https://svnweb.freebsd.org/changeset/ports/556937

Log:
  java/openjdk8: add support for powerpc64le

  powerpc64le needs --disable-jfr and USE_PRECOMPILED_HEADER=0 - same as powerpc64 elfv2.

  Clang refuses to build little-endian binaries for power7, this needs to be bumped to power8 (this is a bug in openjdk, POWER7 is not LE-compatible).

  -minsert-sched-nops=regroup_exact -mno-multiple -mno-string are not supported by clang and need to be removed.

  FreeBSD uses sys/endian.h instead of byteswap.h and bswap{16,32,64} instead of bswap_{16,32,64}.

  PR:		251247
  Approved by:	java (maintainer timeout)

Changes:
  head/java/openjdk8/Makefile
  head/java/openjdk8/files/patch-hotspot_make_bsd_makefiles_ppc64.make
  head/java/openjdk8/files/patch-hotspot_src_os__cpu_bsd__ppc_vm_bytes__bsd__ppc.inline.hpp