Bug 248104 - java/openjdk8: Fix build on arm (armv6): os_perf_bsd.cpp:46: error: redefinition of 'frame'
Summary: java/openjdk8: Fix build on arm (armv6): os_perf_bsd.cpp:46: error: redefinit...
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm64 Any
: --- Affects Many People
Assignee: freebsd-java (Nobody)
URL:
Keywords: buildisok, needs-qa
Depends on:
Blocks:
 
Reported: 2020-07-19 13:24 UTC by Martin Birgmeier
Modified: 2020-08-04 00:38 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (java)
koobs: merge-quarterly?


Attachments
patch to apply in /usr/ports for enabling building of java/openjdk8 on arm (703 bytes, text/plain)
2020-07-19 13:24 UTC, Martin Birgmeier
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Birgmeier 2020-07-19 13:24:24 UTC
Created attachment 216573 [details]
patch to apply in /usr/ports for enabling building of java/openjdk8 on arm

Scenario:
- latest ports
- using qemu-arm-static top compile java/openjdk8 in an ARMv6 chroot installation

Result:
- Build fails with

Compiling /usr/tmp/auto/z/SRC/FreeBSD-ports/head/java/openjdk8/work/openjdk-jdk8u-jdk8u262-b10.1/hotspot/src/os/bsd/vm/os_perf_bsd.cpp                                                                                                                                 
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]                                                                                                                                              
In file included from /usr/tmp/auto/z/SRC/FreeBSD-ports/head/java/openjdk8/work/openjdk-jdk8u-jdk8u262-b10.1/hotspot/src/os/bsd/vm/os_perf_bsd.cpp:46:                                                                                                                 
In file included from /usr/include/sys/user.h:40:                                                                                                                                                                                                                      
In file included from /usr/include/machine/pcb.h:43:                                                                                                                                                                                                                   
/usr/include/machine/frame.h:133:8: error: redefinition of 'frame'                                                                                                                                                                                                     
struct frame {                                                                                                                                                                                                                                                         
       ^                                                                                                                                                                                                                                                               
/usr/tmp/auto/z/SRC/FreeBSD-ports/head/java/openjdk8/work/openjdk-jdk8u-jdk8u262-b10.1/hotspot/src/share/vm/runtime/frame.hpp:65:7: note: previous definition is here                                                                                                  
class frame VALUE_OBJ_CLASS_SPEC {                                                                                                                                                                                                                                     
      ^                                                                                                                                                                                                                                                                

Fix:
- Quite brutally get rid of the offending declaration in machine/pcb.h (which is not needed)
Comment 1 Automation User 2020-08-04 00:38:01 UTC
Build info is available at https://gitlab.com/swills/freebsd-ports/pipelines/173926287