Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jun 2019 20:17:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 238855] category/port: bootstrap-openjdk8 requires binary compatibility on 12.0-RELEASE
Message-ID:  <bug-238855-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238855

            Bug ID: 238855
           Summary: category/port: bootstrap-openjdk8 requires binary
                    compatibility on 12.0-RELEASE
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: chadf@triularity.org

On FreeBSD 12.0, without binary compatibility enabled, bootstrap-openjdk8 f=
ails
when building openjdk8.

# /usr/local/bootstrap-openjdk8/bin/javac
Bad system call (core dumped)

# file /usr/local/bootstrap-openjdk8/bin/javac
/usr/local/bootstrap-openjdk8/bin/javac: ELF 64-bit LSB executable, x86-64,
version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, =
for
FreeBSD 10.3, FreeBSD-style, stripped

# uname -a
FreeBSD myhostname 12.0-RELEASE-p6 FreeBSD 12.0-RELEASE-p6 MYKERNELNAME  am=
d64


This port requires appropriate COMPAT_FREEBSDxx kernel options for FreeBSD =
12.0
(and 11.x, presumably). Perhaps it could check and give a noticeable warnin=
g if
not enabled in the running kernel. If currently undetectable, maybe sysctl
entries could be added to communicate such functionality (or lack of) to
userland, e.g. "compat.10x.enabled" (but adding such a feature is probably
beyond the scope of this bug report).


Note #1: ktrace shows the failing syscall for be one for compat11. This see=
mes
odd for a 10.3 binary. Maybe it is normal, but I thought it was worth
mentioning in case it was a symptom of a hidden problem. I also had to enab=
le
COMPAT_FREEBSD11 in the kernel to get this port to work.

    . . .
  1067 javac    CALL  compat11.stat
  1067 javac    RET   compat11.stat -1 errno 78 Function not implemented
  1067 javac    PSIG  SIGSYS SIG_DFL code=3DSI_KERNEL
  1067 javac    NAMI  "javac.core"


Note #2: It does not appear to require the misc/compat10x port (when used to
build java/openjdk8).

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238855-7788>