[Bug 248104] java/openjdk8: [patch] fix compilation on arm (armv6)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jul 19 13:24:25 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248104

            Bug ID: 248104
           Summary: java/openjdk8: [patch] fix compilation on arm (armv6)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: java at FreeBSD.org
          Reporter: d8zNeCFG at aon.at
          Assignee: java at FreeBSD.org
             Flags: maintainer-feedback?(java at FreeBSD.org)

Created attachment 216573
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=216573&action=edit
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)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list