Bug 257547 - java/openjdk11: arm64 build fails with qemu
Summary: java/openjdk11: arm64 build fails with qemu
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-java (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-01 23:44 UTC by ari
Modified: 2021-08-03 07:28 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ari 2021-08-01 23:44:17 UTC
configure: Potential Boot JDK found at /usr/local/bootstrap-openjdk11 is incorrect JDK version (#); ignoring
configure: (Your Boot JDK version must be one of: 10 11)



full log...


/openjdk11-11.0.11+9.1.log
=>> Building java/openjdk11
build started at Sat Jul 31 16:44:43 AEST 2021
port directory: /usr/ports/java/openjdk11
package name: openjdk11-11.0.11+9.1
building for: FreeBSD 13-arm-oncourse-default-job-01 13.0-RELEASE-p3 FreeBSD 13.0-RELEASE-p3 arm64
maintained by: java@FreeBSD.org
Makefile ident:
Poudriere version: 3.3.6
Host OSVERSION: 1300139
Jail OSVERSION: 1300139
Job Id: 01

---Begin Environment---
SHELL=/bin/csh
UNAME_p=aarch64
UNAME_m=arm64
ABI_FILE=/usr/lib/crt1.o
OSVERSION=1300139
UNAME_v=FreeBSD 13.0-RELEASE-p3
UNAME_r=13.0-RELEASE-p3
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
LOCALBASE=/usr/local
QEMU_EMULATING=1
USER=root
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.3.6
MASTERMNT=/var/poudriere/data/.m/13-arm-oncourse-default/ref
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=xterm-256color
PWD=/var/poudriere/data/.m/13-arm-oncourse-default/ref/.p/pool
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=13-arm-oncourse-default
SCRIPTPREFIX=/usr/local/share/poudriere
OLDPWD=/var/poudriere/data/.m/13-arm-oncourse-default/ref/.p
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
DEPENDS_ARGS=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
---End OPTIONS List---

--MAINTAINER--
java@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--
--with-boot-jdk=/usr/local/bootstrap-openjdk11  --disable-ccache  --disable-javac-server  --disable-hotspot-gtest  --with-jvm-features=shenandoahgc  --with-alsa=/usr/local  --with-cups=/usr/local  --with-fontconfig=/usr/local  --with-freetype=system  --with-freetype-include=/usr/local/include/freetype2  --with-freetype-lib=/usr/local/lib  --with-libjpeg=system  --with-giflib=system  --with-giflib-include=/usr/local/include  --with-giflib-lib=/usr/local/lib  --with-libpng=system  --with-zlib=system  --with-lcms=system  --x-includes=/usr/local/include  --x-libraries=/usr/local/lib  --with-cacerts-file=/usr/ports/java/openjdk11/files/cacerts  --with-version-string=11.0.11+9-1  --with-native-debug-symbols=none  --with-debug-level=release  --with-vendor-name="OpenJDK BSD Porting Team"  --with-vendor-url="https://github.com/battleblow/openjdk-jdk11u/"  --with-vendor-bug-url="https://bugs.freebsd.org/bugzilla/enter_bug.cgi?product=Ports%20%26%20Packages&component=Individual%20Port(s)&short_desc=java/openjdk11%3A%20"  --with-vendor-vm-bug-url="https://bugs.freebsd.org/bugzilla/enter_bug.cgi?product=Ports%20%26%20Packages&component=Individual%20Port(s)&short_desc=java/openjdk11%3A%20" --with-toolchain-type=clang --disable-warnings-as-errors --disable-dtrace --enable-aot=no --x-libraries=/usr/local/lib --x-includes=/usr/local/include --prefix=/usr/local ${_LATE_CONFIGURE_ARGS}
--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
CC=cc  CXX=c++  CPP=cpp  ac_cv_path_SED=/usr/local/bin/gsed MAKE=gmake PKG_CONFIG=pkgconf XDG_DATA_HOME=/wrkdirs/usr/ports/java/openjdk11/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/java/openjdk11/work  HOME=/wrkdirs/usr/ports/java/openjdk11/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/java/openjdk11/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=524288
--End CONFIGURE_ENV--

--MAKE_ENV--
LANG="C"  LC_ALL="C"  CLASSPATH=""  JAVA_HOME=""  LD_LIBRARY_PATH=""  CC=cc  CXX=c++  CPP=cpp  MAKEFLAGS="" --with-toolchain-type=clang USE_CLANG=true XDG_DATA_HOME=/wrkdirs/usr/ports/java/openjdk11/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/java/openjdk11/work  HOME=/wrkdirs/usr/ports/java/openjdk11/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/java/openjdk11/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS="-DLIBICONV_PLUG"  LDFLAGS=" -fstack-protector-strong " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing  -DLIBICONV_PLUG "  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
OSREL=13.0 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/openjdk"  EXAMPLESDIR="share/examples/openjdk"  DATADIR="share/openjdk"  WWWDIR="www/openjdk"  ETCDIR="etc/openjdk"
--End PLIST_SUB--

--SUB_LIST--
PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/openjdk DOCSDIR=/usr/local/share/doc/openjdk EXAMPLESDIR=/usr/local/share/examples/openjdk  WWWDIR=/usr/local/www/openjdk ETCDIR=/usr/local/etc/openjdk
--End SUB_LIST--

---Begin make.conf---
.sinclude "/etc/make.nxb.conf"
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
FORCE_PACKAGE=yes
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
MACHINE=arm64
MACHINE_ARCH=aarch64
ARCH=${MACHINE_ARCH}
#### /etc/make.conf ####
WITHOUT_X11=yes
OPTIONS_UNSET+= X11

apache22-worker-mpm_SET+=PROXY_AJP PROXY_BALANCER PROXY_CONNECT PROXY_FTP PROXY_HTTP PROXY_SCGI
DEFAULT_VERSIONS+= php=7.4
DEFAULT_VERSIONS+= apache=2.4
DEFAULT_VERSIONS+= ssl=openssl
DEFAULT_VERSIONS+= mysql=10.4m
DEFAULT_VERSIONS+= lua=5.2
DEFAULT_VERSIONS+= python=3.7
DEFAULT_VERSIONS+= java=11
DEFAULT_VERSIONS+= node=12

OPTIONS_UNSET+= GSSAPI_BASE GSSAPI_MIT
OPTIONS_SET+= GSSAPI_NONE
ALLOW_UNSUPPORTED_SYSTEM=yes
#### /usr/ports/Mk/Scripts/ports_env.sh ####
_CCVERSION_921dbbb2=FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe) Target: aarch64-unknown-freebsd13.0 Thread model: posix InstalledDir: /usr/bin
_ALTCCVERSION_921dbbb2=none
_CXXINTERNAL_acaad9ca=FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe) Target: aarch64-unknown-freebsd13.0 Thread model: posix InstalledDir: /usr/bin "/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1" "--enable-new-dtags" "-o" "a.out" "/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" "-L/usr/lib" "/dev/null" "-lc++" "-lm" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "/usr/lib/crtend.o" "/usr/lib/crtn.o"
CC_OUTPUT_921dbbb2_58173849=yes
CC_OUTPUT_921dbbb2_9bdba57c=yes
CC_OUTPUT_921dbbb2_6a4fe7f5=yes
CC_OUTPUT_921dbbb2_6bcac02b=yes
CC_OUTPUT_921dbbb2_67d20829=yes
CC_OUTPUT_921dbbb2_bfa62e83=yes
CC_OUTPUT_921dbbb2_f0b4d593=yes
CC_OUTPUT_921dbbb2_308abb44=yes
CC_OUTPUT_921dbbb2_f00456e5=yes
CC_OUTPUT_921dbbb2_65ad290d=yes
CC_OUTPUT_921dbbb2_f2776b26=yes
CC_OUTPUT_921dbbb2_b2657cc3=yes
CC_OUTPUT_921dbbb2_380987f7=yes
CC_OUTPUT_921dbbb2_160933ec=yes
CC_OUTPUT_921dbbb2_fb62803b=yes
_OBJC_CCVERSION_921dbbb2=FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe) Target: aarch64-unknown-freebsd13.0 Thread model: posix InstalledDir: /usr/bin
_OBJC_ALTCCVERSION_921dbbb2=none
ARCH=aarch64
OPSYS=FreeBSD
_OSRELEASE=13.0-RELEASE-p3
OSREL=13.0
OSVERSION=1300139
PYTHONBASE=/usr/local
_SMP_CPUS=24
CONFIGURE_MAX_CMD_LEN=524288
HAVE_PORTS_ENV=1
#### Misc Poudriere ####
GID=0
UID=0
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  131072
stack size              (kbytes, -s)  524288
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  3704
open files                      (-n)  2048
virtual mem size        (kbytes, -v)  unlimited
swap limit              (kbytes, -w)  unlimited
socket buffer size       (bytes, -b)  unlimited
pseudo-terminals                (-p)  unlimited
kqueues                         (-k)  unlimited
umtx shared locks               (-o)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===>  License GPLv2 accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===>   openjdk11-11.0.11+9.1 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.17.1.pkg
[13-arm-oncourse-default-job-01] Installing pkg-1.17.1...
[13-arm-oncourse-default-job-01] Extracting pkg-1.17.1: .......... done
===>   openjdk11-11.0.11+9.1 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of openjdk11-11.0.11+9.1
===========================================================================
=======================<phase: fetch-depends  >============================
===========================================================================
=======================<phase: fetch          >============================
===>  License GPLv2 accepted by the user
===> Fetching all distfiles required by openjdk11-11.0.11+9.1 for building
===========================================================================
=======================<phase: checksum       >============================
===>  License GPLv2 accepted by the user
===> Fetching all distfiles required by openjdk11-11.0.11+9.1 for building
=> SHA256 Checksum OK for battleblow-openjdk-jdk11u-jdk-11.0.11+9-1_GH0.tar.gz.
===========================================================================
=======================<phase: extract-depends>============================
===========================================================================
=======================<phase: extract        >============================
===>  License GPLv2 accepted by the user
===> Fetching all distfiles required by openjdk11-11.0.11+9.1 for building
===>  Extracting for openjdk11-11.0.11+9.1
=> SHA256 Checksum OK for battleblow-openjdk-jdk11u-jdk-11.0.11+9-1_GH0.tar.gz.
===========================================================================
=======================<phase: patch-depends  >============================
===========================================================================
=======================<phase: patch          >============================
===>  Patching for openjdk11-11.0.11+9.1
===>  Applying FreeBSD patches for openjdk11-11.0.11+9.1 from /usr/ports/java/openjdk11/files
===========================================================================
=======================<phase: build-depends  >============================
===>   openjdk11-11.0.11+9.1 depends on executable: zip - not found
===>   Installing existing package /packages/All/zip-3.0_1.pkg
[13-arm-oncourse-default-job-01] Installing zip-3.0_1...
[13-arm-oncourse-default-job-01] Extracting zip-3.0_1: .......... done
===>   openjdk11-11.0.11+9.1 depends on executable: zip - found
===>   Returning to build of openjdk11-11.0.11+9.1
===>   openjdk11-11.0.11+9.1 depends on package: autoconf>0 - not found
===>   Installing existing package /packages/All/autoconf-2.69_3.pkg
[13-arm-oncourse-default-job-01] Installing autoconf-2.69_3...
[13-arm-oncourse-default-job-01] `-- Installing autoconf-wrapper-20131203...
[13-arm-oncourse-default-job-01] `-- Extracting autoconf-wrapper-20131203: .......... done
[13-arm-oncourse-default-job-01] `-- Installing indexinfo-0.3.1...
[13-arm-oncourse-default-job-01] `-- Extracting indexinfo-0.3.1: .... done
[13-arm-oncourse-default-job-01] `-- Installing m4-1.4.19,1...
[13-arm-oncourse-default-job-01] |   `-- Installing gettext-runtime-0.21...
[13-arm-oncourse-default-job-01] |   `-- Extracting gettext-runtime-0.21: .......... done
[13-arm-oncourse-default-job-01] `-- Extracting m4-1.4.19,1: .......... done
[13-arm-oncourse-default-job-01] `-- Installing perl5-5.32.1_1...
[13-arm-oncourse-default-job-01] `-- Extracting perl5-5.32.1_1: .......... done
[13-arm-oncourse-default-job-01] Extracting autoconf-2.69_3: .......... done
===>   openjdk11-11.0.11+9.1 depends on package: autoconf>0 - found
===>   Returning to build of openjdk11-11.0.11+9.1
===>   openjdk11-11.0.11+9.1 depends on file: /usr/local/include/cups/cups.h - not found
===>   Installing existing package /packages/All/cups-2.3.3op2.pkg
[13-arm-oncourse-default-job-01] Installing cups-2.3.3op2...
[13-arm-oncourse-default-job-01] `-- Installing avahi-app-0.8...
[13-arm-oncourse-default-job-01] |   `-- Installing dbus-1.12.20_5...
[13-arm-oncourse-default-job-01] |   | `-- Installing expat-2.4.1...
[13-arm-oncourse-default-job-01] |   | `-- Extracting expat-2.4.1: .......... done
[13-arm-oncourse-default-job-01] |   | `-- Installing libICE-1.0.10,1...
[13-arm-oncourse-default-job-01] |   | `-- Extracting libICE-1.0.10,1: .......... done
[13-arm-oncourse-default-job-01] |   | `-- Installing libSM-1.2.3,1...
[13-arm-oncourse-default-job-01] |   | `-- Extracting libSM-1.2.3,1: .......... done
[13-arm-oncourse-default-job-01] |   | `-- Installing libX11-1.7.2,1...
[13-arm-oncourse-default-job-01] |   |   `-- Installing libxcb-1.14_1...
[13-arm-oncourse-default-job-01] |   |   | `-- Installing libXau-1.0.9...
[13-arm-oncourse-default-job-01] |   |   | `-- Extracting libXau-1.0.9: .......... done
[13-arm-oncourse-default-job-01] |   |   | `-- Installing libXdmcp-1.1.3...
[13-arm-oncourse-default-job-01] |   |   |   `-- Installing xorgproto-2021.4...
[13-arm-oncourse-default-job-01] |   |   |   `-- Extracting xorgproto-2021.4: .......... done
[13-arm-oncourse-default-job-01] |   |   | `-- Extracting libXdmcp-1.1.3: ......... done
[13-arm-oncourse-default-job-01] |   |   | `-- Installing libpthread-stubs-0.4...
[13-arm-oncourse-default-job-01] |   |   | `-- Extracting libpthread-stubs-0.4: .... done
[13-arm-oncourse-default-job-01] |   |   `-- Extracting libxcb-1.14_1: .......... done
[13-arm-oncourse-default-job-01] |   | `-- Extracting libX11-1.7.2,1: .......... done
===> Creating groups.
Creating group 'messagebus' with gid '556'.
===> Creating users
Creating user 'messagebus' with uid '556'.
[13-arm-oncourse-default-job-01] |   `-- Extracting dbus-1.12.20_5: ......... done
[13-arm-oncourse-default-job-01] |   `-- Installing dbus-glib-0.112...
[13-arm-oncourse-default-job-01] |   | `-- Installing glib-2.66.8,2...
[13-arm-oncourse-default-job-01] |   |   `-- Installing libffi-3.3_1...
[13-arm-oncourse-default-job-01] |   |   `-- Extracting libffi-3.3_1: .......... done
[13-arm-oncourse-default-job-01] |   |   `-- Installing libiconv-1.16...
[13-arm-oncourse-default-job-01] |   |   `-- Extracting libiconv-1.16: .......... done
[13-arm-oncourse-default-job-01] |   |   `-- Installing libxml2-2.9.12...
[13-arm-oncourse-default-job-01] |   |   `-- Extracting libxml2-2.9.12: .......... done
[13-arm-oncourse-default-job-01] |   |   `-- Installing pcre-8.44...
[13-arm-oncourse-default-job-01] |   |   `-- Extracting pcre-8.44: .......... done
[13-arm-oncourse-default-job-01] |   |   `-- Installing python37-3.7.11...
[13-arm-oncourse-default-job-01] |   |   | `-- Installing mpdecimal-2.5.1...
[13-arm-oncourse-default-job-01] |   |   | `-- Extracting mpdecimal-2.5.1: .......... done
[13-arm-oncourse-default-job-01] |   |   | `-- Installing openssl-1.1.1k_1,1...
[13-arm-oncourse-default-job-01] |   |   | `-- Extracting openssl-1.1.1k_1,1: .......... done
[13-arm-oncourse-default-job-01] |   |   | `-- Installing readline-8.1.1...
[13-arm-oncourse-default-job-01] |   |   | `-- Extracting readline-8.1.1: .......... done
[13-arm-oncourse-default-job-01] |   |   `-- Extracting python37-3.7.11: .......... done
[13-arm-oncourse-default-job-01] |   | `-- Extracting glib-2.66.8,2: .......... done
No schema files found: doing nothing.
[13-arm-oncourse-default-job-01] |   `-- Extracting dbus-glib-0.112: .......... done
[13-arm-oncourse-default-job-01] |   `-- Installing gdbm-1.20...
[13-arm-oncourse-default-job-01] |   `-- Extracting gdbm-1.20: .......... done
[13-arm-oncourse-default-job-01] |   `-- Installing gnome_subr-1.0...
[13-arm-oncourse-default-job-01] |   `-- Extracting gnome_subr-1.0: .... done
[13-arm-oncourse-default-job-01] |   `-- Installing libdaemon-0.14_1...
[13-arm-oncourse-default-job-01] |   `-- Extracting libdaemon-0.14_1: .......... done
[13-arm-oncourse-default-job-01] |   `-- Installing libevent-2.1.12...
[13-arm-oncourse-default-job-01] |   `-- Extracting libevent-2.1.12: .......... done
===> Creating groups.
Creating group 'avahi' with gid '558'.
===> Creating users
Creating user 'avahi' with uid '558'.
[13-arm-oncourse-default-job-01] `-- Extracting avahi-app-0.8: .......... done
[13-arm-oncourse-default-job-01] `-- Installing libpaper-1.1.24.4...
[13-arm-oncourse-default-job-01] `-- Extracting libpaper-1.1.24.4: .......... done
===> Creating groups.
Creating group 'cups' with gid '193'.
===> Creating users
Creating user 'cups' with uid '193'.
[13-arm-oncourse-default-job-01] Extracting cups-2.3.3op2: .......... done
=====
Message from python37-3.7.11:

--
Note that some standard Python modules are provided as separate ports
as they require additional dependencies. They are available as:

py37-gdbm       databases/py-gdbm@py37
py37-sqlite3    databases/py-sqlite3@py37
py37-tkinter    x11-toolkits/py-tkinter@py37
===>   openjdk11-11.0.11+9.1 depends on file: /usr/local/include/cups/cups.h - found
===>   Returning to build of openjdk11-11.0.11+9.1
===>   openjdk11-11.0.11+9.1 depends on executable: bash - not found
===>   Installing existing package /packages/All/bash-5.1.8.pkg
[13-arm-oncourse-default-job-01] Installing bash-5.1.8...
[13-arm-oncourse-default-job-01] Extracting bash-5.1.8: .......... done
===>   openjdk11-11.0.11+9.1 depends on executable: bash - found
===>   Returning to build of openjdk11-11.0.11+9.1
===>   openjdk11-11.0.11+9.1 depends on executable: gsed - not found
===>   Installing existing package /packages/All/gsed-4.8.pkg
[13-arm-oncourse-default-job-01] Installing gsed-4.8...
[13-arm-oncourse-default-job-01] Extracting gsed-4.8: .......... done
===>   openjdk11-11.0.11+9.1 depends on executable: gsed - found
===>   Returning to build of openjdk11-11.0.11+9.1
===>   openjdk11-11.0.11+9.1 depends on package: gmake>=4.3 - not found
===>   Installing existing package /packages/All/gmake-4.3_2.pkg
[13-arm-oncourse-default-job-01] Installing gmake-4.3_2...
[13-arm-oncourse-default-job-01] Extracting gmake-4.3_2: .......... done
===>   openjdk11-11.0.11+9.1 depends on package: gmake>=4.3 - found
===>   Returning to build of openjdk11-11.0.11+9.1
===>   openjdk11-11.0.11+9.1 depends on package: pkgconf>=1.3.0_1 - not found
===>   Installing existing package /packages/All/pkgconf-1.7.4,1.pkg
[13-arm-oncourse-default-job-01] Installing pkgconf-1.7.4,1...
[13-arm-oncourse-default-job-01] Extracting pkgconf-1.7.4,1: .......... done
===>   openjdk11-11.0.11+9.1 depends on package: pkgconf>=1.3.0_1 - found
===>   Returning to build of openjdk11-11.0.11+9.1
===>   openjdk11-11.0.11+9.1 depends on file: /usr/local/bootstrap-openjdk11/bin/javac - not found
===>   Installing existing package /packages/All/bootstrap-openjdk11-11.0.5.10.1.pkg
[13-arm-oncourse-default-job-01] Installing bootstrap-openjdk11-11.0.5.10.1...
[13-arm-oncourse-default-job-01] Extracting bootstrap-openjdk11-11.0.5.10.1: .......... done
=====
Message from bootstrap-openjdk11-11.0.5.10.1:

--
WARNING: This port only exists for bootstrapping java/openjdk11.
You are advised to remove this port as soon as a stable JDK is built.

This OpenJDK implementation requires fdescfs(5) mounted on /dev/fd

If you have not done it yet, please do the following:

        mount -t fdescfs fdesc /dev/fd

To make it permanent, you need the following lines in /etc/fstab:

        fdesc   /dev/fd         fdescfs         rw      0       0
===>   openjdk11-11.0.11+9.1 depends on file: /usr/local/bootstrap-openjdk11/bin/javac - found
===>   Returning to build of openjdk11-11.0.11+9.1
===>   openjdk11-11.0.11+9.1 depends on file: /usr/local/libdata/pkgconfig/x11.pc - found
===>   openjdk11-11.0.11+9.1 depends on file: /usr/local/libdata/pkgconfig/xext.pc - not found
===>   Installing existing package /packages/All/libXext-1.3.4,1.pkg
[13-arm-oncourse-default-job-01] Installing libXext-1.3.4,1...
[13-arm-oncourse-default-job-01] Extracting libXext-1.3.4,1: .......... done
===>   openjdk11-11.0.11+9.1 depends on file: /usr/local/libdata/pkgconfig/xext.pc - found
===>   Returning to build of openjdk11-11.0.11+9.1
===>   openjdk11-11.0.11+9.1 depends on file: /usr/local/libdata/pkgconfig/xi.pc - not found
===>   Installing existing package /packages/All/libXi-1.7.10,1.pkg
[13-arm-oncourse-default-job-01] Installing libXi-1.7.10,1...
[13-arm-oncourse-default-job-01] `-- Installing libXfixes-5.0.3_2...
[13-arm-oncourse-default-job-01] `-- Extracting libXfixes-5.0.3_2: .......... done
[13-arm-oncourse-default-job-01] Extracting libXi-1.7.10,1: .......... done
===>   openjdk11-11.0.11+9.1 depends on file: /usr/local/libdata/pkgconfig/xi.pc - found
===>   Returning to build of openjdk11-11.0.11+9.1
===>   openjdk11-11.0.11+9.1 depends on file: /usr/local/libdata/pkgconfig/xrandr.pc - not found
===>   Installing existing package /packages/All/libXrandr-1.5.2.pkg
[13-arm-oncourse-default-job-01] Installing libXrandr-1.5.2...
[13-arm-oncourse-default-job-01] `-- Installing libXrender-0.9.10_2...
[13-arm-oncourse-default-job-01] `-- Extracting libXrender-0.9.10_2: .......... done
[13-arm-oncourse-default-job-01] Extracting libXrandr-1.5.2: .......... done
===>   openjdk11-11.0.11+9.1 depends on file: /usr/local/libdata/pkgconfig/xrandr.pc - found
===>   Returning to build of openjdk11-11.0.11+9.1
===>   openjdk11-11.0.11+9.1 depends on file: /usr/local/libdata/pkgconfig/xrender.pc - found
===>   openjdk11-11.0.11+9.1 depends on file: /usr/local/libdata/pkgconfig/xt.pc - not found
===>   Installing existing package /packages/All/libXt-1.2.1,1.pkg
[13-arm-oncourse-default-job-01] Installing libXt-1.2.1,1...
[13-arm-oncourse-default-job-01] Extracting libXt-1.2.1,1: .......... done
===>   openjdk11-11.0.11+9.1 depends on file: /usr/local/libdata/pkgconfig/xt.pc - found
===>   Returning to build of openjdk11-11.0.11+9.1
===>   openjdk11-11.0.11+9.1 depends on file: /usr/local/libdata/pkgconfig/xtst.pc - not found
===>   Installing existing package /packages/All/libXtst-1.2.3_2.pkg
[13-arm-oncourse-default-job-01] Installing libXtst-1.2.3_2...
[13-arm-oncourse-default-job-01] Extracting libXtst-1.2.3_2: .......... done
===>   openjdk11-11.0.11+9.1 depends on file: /usr/local/libdata/pkgconfig/xtst.pc - found
===>   Returning to build of openjdk11-11.0.11+9.1
===========================================================================
=======================<phase: lib-depends    >============================
===>   openjdk11-11.0.11+9.1 depends on shared library: libasound.so - not found
===>   Installing existing package /packages/All/alsa-lib-1.2.2.pkg
[13-arm-oncourse-default-job-01] Installing alsa-lib-1.2.2...
[13-arm-oncourse-default-job-01] Extracting alsa-lib-1.2.2: .......... done
=====
Message from alsa-lib-1.2.2:

--
===>   NOTICE:

The alsa-lib port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://docs.freebsd.org/en/articles/contributing/#ports-contributing
===>   openjdk11-11.0.11+9.1 depends on shared library: libasound.so - found (/usr/local/lib/libasound.so)
===>   Returning to build of openjdk11-11.0.11+9.1
===>   openjdk11-11.0.11+9.1 depends on shared library: libfontconfig.so - not found
===>   Installing existing package /packages/All/fontconfig-2.13.93_1,1.pkg
[13-arm-oncourse-default-job-01] Installing fontconfig-2.13.93_1,1...
[13-arm-oncourse-default-job-01] `-- Installing freetype2-2.10.4...
[13-arm-oncourse-default-job-01] `-- Extracting freetype2-2.10.4: .......... done
[13-arm-oncourse-default-job-01] Extracting fontconfig-2.13.93_1,1: .......... done
=====
Message from freetype2-2.10.4:

--
The 2.7.x series now uses the new subpixel hinting mode (V40 port's option) as
the default, emulating a modern version of ClearType. This change inevitably
leads to different rendering results, and you might change port's options to
adapt it to your taste (or use the new "FREETYPE_PROPERTIES" environment
variable).

The environment variable "FREETYPE_PROPERTIES" can be used to control the
driver properties. Example:

FREETYPE_PROPERTIES=truetype:interpreter-version=35 \
        cff:no-stem-darkening=1 \
        autofitter:warping=1

This allows to select, say, the subpixel hinting mode at runtime for a given
application.

If LONG_PCF_NAMES port's option was enabled, the PCF family names may include
the foundry and information whether they contain wide characters. For example,
"Sony Fixed" or "Misc Fixed Wide", instead of "Fixed". This can be disabled at
run time with using pcf:no-long-family-names property, if needed. Example:

FREETYPE_PROPERTIES=pcf:no-long-family-names=1

How to recreate fontconfig cache with using such environment variable,
if needed:
# env FREETYPE_PROPERTIES=pcf:no-long-family-names=1 fc-cache -fsv

The controllable properties are listed in the section "Controlling FreeType
Modules" in the reference's table of contents
(/usr/local/share/doc/freetype2/reference/site/index.html, if documentation was installed).
===>   openjdk11-11.0.11+9.1 depends on shared library: libfontconfig.so - found (/usr/local/lib/libfontconfig.so)
===>   Returning to build of openjdk11-11.0.11+9.1
===>   openjdk11-11.0.11+9.1 depends on shared library: libfreetype.so - found (/usr/local/lib/libfreetype.so)
===>   openjdk11-11.0.11+9.1 depends on shared library: libgif.so - not found
===>   Installing existing package /packages/All/giflib-5.2.1.pkg
[13-arm-oncourse-default-job-01] Installing giflib-5.2.1...
[13-arm-oncourse-default-job-01] Extracting giflib-5.2.1: .......... done
===>   openjdk11-11.0.11+9.1 depends on shared library: libgif.so - found (/usr/local/lib/libgif.so)
===>   Returning to build of openjdk11-11.0.11+9.1
===>   openjdk11-11.0.11+9.1 depends on shared library: liblcms2.so - not found
===>   Installing existing package /packages/All/lcms2-2.12.pkg
[13-arm-oncourse-default-job-01] Installing lcms2-2.12...
[13-arm-oncourse-default-job-01] `-- Installing jpeg-turbo-2.0.6...
[13-arm-oncourse-default-job-01] `-- Extracting jpeg-turbo-2.0.6: .......... done
[13-arm-oncourse-default-job-01] `-- Installing tiff-4.3.0...
[13-arm-oncourse-default-job-01] |   `-- Installing jbigkit-2.1_1...
[13-arm-oncourse-default-job-01] |   `-- Extracting jbigkit-2.1_1: .......... done
[13-arm-oncourse-default-job-01] `-- Extracting tiff-4.3.0: .......... done
[13-arm-oncourse-default-job-01] Extracting lcms2-2.12: .......... done
===>   openjdk11-11.0.11+9.1 depends on shared library: liblcms2.so - found (/usr/local/lib/liblcms2.so)
===>   Returning to build of openjdk11-11.0.11+9.1
===>   openjdk11-11.0.11+9.1 depends on shared library: libpng.so - not found
===>   Installing existing package /packages/All/png-1.6.37_1.pkg
[13-arm-oncourse-default-job-01] Installing png-1.6.37_1...
[13-arm-oncourse-default-job-01] Extracting png-1.6.37_1: .......... done
===>   openjdk11-11.0.11+9.1 depends on shared library: libpng.so - found (/usr/local/lib/libpng.so)
===>   Returning to build of openjdk11-11.0.11+9.1
===>   openjdk11-11.0.11+9.1 depends on shared library: libjpeg.so - found (/usr/local/lib/libjpeg.so)
===========================================================================
=======================<phase: configure      >============================
===>  Configuring for openjdk11-11.0.11+9.1
Warning: You are using legacy autoconf cross-compilation flags.
It is recommended that you use --openjdk-target instead.

configure: loading site script /usr/ports/Templates/config.site
configure: Configuration created at Sat Jul 31 06:48:38 UTC 2021.
checking for basename... /usr/bin/basename
checking for bash... /usr/local/bin/bash
checking for cat... /bin/cat
checking for chmod... /bin/chmod
checking for cmp... /usr/bin/cmp
checking for comm... /usr/bin/comm
checking for cp... /bin/cp
checking for cut... /usr/bin/cut
checking for date... /bin/date
checking for gdiff... no
checking for diff... /usr/bin/diff
checking for dirname... /usr/bin/dirname
checking for echo... /bin/echo
checking for expr... /bin/expr
checking for file... /usr/bin/file
checking for find... /usr/bin/find
checking for head... /usr/bin/head
checking for gunzip... /usr/bin/gunzip
checking for pigz... (cached) /usr/bin/gzip
checking for ln... /bin/ln
checking for ls... /bin/ls
checking for mkdir... /bin/mkdir
checking for mktemp... /usr/bin/mktemp
checking for mv... /bin/mv
checking for nawk... /usr/bin/nawk
checking for printf... /usr/bin/printf
checking for greadlink... no
checking for readlink... /usr/bin/readlink
checking for rm... /bin/rm
checking for rmdir... /bin/rmdir
checking for sh... /bin/sh
checking for sort... /usr/bin/sort
checking for tail... /usr/bin/tail
checking for gtar... no
checking for tar... /usr/bin/tar
checking for tee... /usr/bin/tee
checking for touch... /usr/bin/touch
checking for tr... /usr/bin/tr
checking for uname... /usr/bin/uname
checking for uniq... /usr/bin/uniq
checking for wc... /usr/bin/wc
checking for which... /usr/bin/which
checking for xargs... /usr/bin/xargs
checking for gawk... (cached) /usr/bin/awk
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for fgrep... (cached) /usr/bin/fgrep
checking for a sed that does not truncate output... (cached) /usr/local/bin/gsed
checking for cygpath... no
checking for df... /bin/df
checking for cpio... /usr/bin/cpio
checking for nice... /usr/bin/nice
checking for pandoc... no
checking build system type... aarch64-portbld-freebsd13.0
checking host system type... aarch64-portbld-freebsd13.0
checking target system type... aarch64-portbld-freebsd13.0
checking openjdk-build os-cpu... bsd-aarch64
checking openjdk-target os-cpu... bsd-aarch64
checking openjdk-target os-env... bsd.freebsd
checking compilation type... native
checking for top-level directory... /wrkdirs/usr/ports/java/openjdk11/work/openjdk-jdk11u-jdk-11.0.11-9-1
checking if custom source is suppressed (openjdk-only)... no
checking which variant of the JDK to build... normal
checking which debug level to use... release
checking which variants of the JVM to build... server
checking if absolute paths should be allowed in the build output... no, release build
checking for sysroot...
checking for toolchain path...
checking for extra path...
checking where to store configuration... in default location
checking what configuration name to use... bsd-aarch64-normal-server-release
checking for apt-get... no
checking for yum... no
checking for brew... no
checking for port... no
checking for pkgutil... no
checking for pkgadd... no
configure: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead.
checking for gmake... /usr/local/bin/gmake
configure: Testing potential make at /usr/local/bin/gmake, found using gmake in PATH
configure: Testing potential make at gmake, found using user supplied MAKE=gmake
configure: Rewriting FOUND_MAKE to "/usr/local/bin/gmake"
configure: Using GNU make at /usr/local/bin/gmake (version: GNU Make 4.3)
checking if make --output-sync is supported... yes
checking for output-sync value... none
checking if find supports -delete... yes
checking what type of tar was found... bsd
checking that grep (/usr/bin/grep) -Fx handles empty lines in the pattern list correctly... yes
checking for unzip... /usr/bin/unzip
checking for zip... /usr/local/bin/zip
checking for ldd... /usr/bin/ldd
checking for greadelf... no
checking for readelf... /usr/bin/readelf
checking for dot... no
checking for hg... no
checking for git... no
checking for stat... /usr/bin/stat
checking for time... /usr/bin/time
checking for flock... no
checking for dtrace... /usr/sbin/dtrace
checking for gpatch... no
checking for patch... /usr/bin/patch
checking bash version... 5.1.8
checking if bash supports pipefail... yes
checking if bash supports errexit (-e)... yes
checking pkg-config is at least version 0.9.0... yes
checking for default LOG value...
checking headless only... no
checking for graphviz dot... no, cannot generate full docs
checking for pandoc... no, cannot generate full docs
checking full docs... no, missing dependencies
checking for cacerts file... /usr/ports/java/openjdk11/files/cacerts
checking if packaged modules are kept... yes (default)
checking for version string... 11.0.11+9-1
configure: Found potential Boot JDK using configure arguments
configure: Potential Boot JDK found at /usr/local/bootstrap-openjdk11 is incorrect JDK version (#); ignoring
configure: (Your Boot JDK version must be one of: 10 11)
configure: error: The path given by --with-boot-jdk does not contain a valid Boot JDK
configure exiting with result code 1
===>  Script "configure" failed unexpectedly.
Please report the problem to java@FreeBSD.org [maintainer] and attach the
"/wrkdirs/usr/ports/java/openjdk11/work/openjdk-jdk11u-jdk-11.0.11-9-1/config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. a /usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make: stopped in /usr/ports/java/openjdk11
=>> Cleaning up wrkdir
===>  Cleaning for openjdk11-11.0.11+9.1
build of java/openjdk11 | openjdk11-11.0.11+9.1 ended at Sat Jul 31 16:48:48 AEST 2021
build time: 00:04:05
!!! build failure encountered !!!
[root@delish /home/ari]# client_loop: send disconnect: Broken pipe
ari:~ ari$
Comment 1 Klaus Küchemann 2021-08-02 02:25:38 UTC
(In reply to ari from comment #0)
<<....
configure: (Your Boot JDK version must be one of: 10 11)
configure: error: The path given by --with-boot-jdk does not contain a valid Boot JDK
....>>


For the case that you have hardened your system please read :

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256477#c14

Regards
K.
Comment 2 ari 2021-08-02 02:54:42 UTC
# pkg install bootstrap-openjdk11
# /usr/local/bootstrap-openjdk11/bin/java -version
openjdk version "11.0.5" 2019-10-15
OpenJDK Runtime Environment (build 11.0.5+10-1)
OpenJDK 64-Bit Server VM (build 11.0.5+10-1, mixed mode)

However, that's just in the host system. The failure is happening in QEMU emulation runnning under poudriere. I'm not sure how to pause poudriere to run commands in its environment and see why it cannnot detect the bootstrap java properly.
Comment 3 Mikael Urankar freebsd_committer freebsd_triage 2021-08-02 19:45:13 UTC
Building openjdk with qemu-user is not supported at this time.
Comment 4 ari 2021-08-03 00:39:48 UTC
Ah, thanks. Is there a workaround or does it require native ARM hardware as the only option?
Comment 5 Mikael Urankar freebsd_committer freebsd_triage 2021-08-03 07:28:05 UTC
(In reply to ari from comment #4)
It's probably related to bug #240037