Bug 239624 - java/openjdk11: Fix build failure for 11.0.4-11-1
Summary: java/openjdk11: Fix build failure for 11.0.4-11-1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: powerpc Any
: --- Affects Some People
Assignee: Greg Lewis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-03 19:45 UTC by Curtis Hamilton
Modified: 2019-08-04 23:26 UTC (History)
2 users (show)

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


Attachments
patch to fix build failure (325 bytes, text/plain)
2019-08-03 19:45 UTC, Curtis Hamilton
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Curtis Hamilton 2019-08-03 19:45:57 UTC
Created attachment 206251 [details]
patch to fix build failure

Build fails with:

Compiling 300 files for jdk.javadoc
/usr/ports/java/openjdk11/work/openjdk-jdk11u-jdk-11.0.4-11-1/src/hotspot/os_cpu/bsd_ppc/os_bsd_ppc.cpp: In function 'long unsigned int ucontext_get_trap(const ucontext_t*)':
/usr/ports/java/openjdk11/work/openjdk-jdk11u-jdk-11.0.4-11-1/src/hotspot/os_cpu/bsd_ppc/os_bsd_ppc.cpp:136:26: error: 'const mcontext_t {aka const struct __mcontext}' has no member named 'regs'
   return uc->uc_mcontext.regs->trap;
                          ^~~~
gmake[4]: *** [lib/CompileJvm.gmk:151: /usr/ports/java/openjdk11/work/openjdk-jdk11u-jdk-11.0.4-11-1/build/bsd-ppc64-normal-server-release/hotspot/variant-server/libjvm/objs/os_bsd_ppc.o] Error 1
gmake[4]: Leaving directory '/usr/ports/java/openjdk11/work/openjdk-jdk11u-jdk-11.0.4-11-1/make/hotspot'
gmake[3]: *** [make/Main.gmk:257: hotspot-server-libs] Error 2
gmake[3]: *** Waiting for unfinished jobs....
gmake[4]: Leaving directory '/usr/ports/java/openjdk11/work/openjdk-jdk11u-jdk-11.0.4-11-1/make'
gmake[3]: Leaving directory '/usr/ports/java/openjdk11/work/openjdk-jdk11u-jdk-11.0.4-11-1'

ERROR: Build failed for target 'images' in configuration 'bsd-ppc64-normal-server-release' (exit code 2) 
gmake[3]: Entering directory '/usr/ports/java/openjdk11/work/openjdk-jdk11u-jdk-11.0.4-11-1'

=== Output from failing command(s) repeated here ===
* For target hotspot_variant-server_libjvm_objs_os_bsd_ppc.o:
/usr/ports/java/openjdk11/work/openjdk-jdk11u-jdk-11.0.4-11-1/src/hotspot/os_cpu/bsd_ppc/os_bsd_ppc.cpp: In function 'long unsigned int ucontext_get_trap(const ucontext_t*)':
/usr/ports/java/openjdk11/work/openjdk-jdk11u-jdk-11.0.4-11-1/src/hotspot/os_cpu/bsd_ppc/os_bsd_ppc.cpp:136:26: error: 'const mcontext_t {aka const struct __mcontext}' has no member named 'regs'
   return uc->uc_mcontext.regs->trap;
                          ^~~~

* All command lines available in /usr/ports/java/openjdk11/work/openjdk-jdk11u-jdk-11.0.4-11-1/build/bsd-ppc64-normal-server-release/make-support/failure-logs.
=== End of repeated output ===

No indication of failed target found.
Hint: Try searching the build log for '] Error'.
Hint: See doc/building.html#troubleshooting for assistance.

gmake[3]: Leaving directory '/usr/ports/java/openjdk11/work/openjdk-jdk11u-jdk-11.0.4-11-1'
gmake[2]: *** [/usr/ports/java/openjdk11/work/openjdk-jdk11u-jdk-11.0.4-11-1/make/Init.gmk:305: main] Error 2
gmake[2]: Leaving directory '/usr/ports/java/openjdk11/work/openjdk-jdk11u-jdk-11.0.4-11-1'
gmake[1]: *** [/usr/ports/java/openjdk11/work/openjdk-jdk11u-jdk-11.0.4-11-1/make/Init.gmk:186: images] Error 2
gmake[1]: Leaving directory '/usr/ports/java/openjdk11/work/openjdk-jdk11u-jdk-11.0.4-11-1'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Comment 1 Greg Lewis freebsd_committer 2019-08-04 05:24:10 UTC
Curtis, have you created a pull request on the Github repo for this change?
Comment 2 Curtis Hamilton 2019-08-04 12:33:35 UTC
(In reply to Greg Lewis from comment #1)
Done!
Comment 3 Greg Lewis freebsd_committer 2019-08-04 22:57:27 UTC
Thanks!  I've merged that so it'll be in the next release.  I'll commit this patch in the mean time.
Comment 4 commit-hook freebsd_committer 2019-08-04 23:04:59 UTC
A commit references this bug:

Author: glewis
Date: Sun Aug  4 23:04:33 UTC 2019
New revision: 508130
URL: https://svnweb.freebsd.org/changeset/ports/508130

Log:
  Fix the build on PowerPC64

  PR:		239624
  Submitted by:	Curtis Hamilton <hamiltcl@verizon.net>

Changes:
  head/java/openjdk11/files/patch-src_hotspot_os__cpu_bsd__ppc_os__bsd__ppc.cpp