Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 May 2022 23:30:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        java@FreeBSD.org
Subject:   [Bug 260187] java/bootstrap-openjdk17: broken on aarch64
Message-ID:  <bug-260187-8522-xLQaUDi29P@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-260187-8522@https.bugs.freebsd.org/bugzilla/>
References:  <bug-260187-8522@https.bugs.freebsd.org/bugzilla/>

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

Bjoern A. Zeeb <bz@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bz@FreeBSD.org

--- Comment #6 from Bjoern A. Zeeb <bz@FreeBSD.org> ---
I just hit this on my honeycomb machine trying to build openjdk17 on a CURR=
ENT
from two days ago or so...

...
checking bash version... 5.1.16
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...=20
checking if packaged modules are kept... enabled, default
checking for version string... 17.0.3+7-1
configure: Found potential Boot JDK using configure arguments
configure: Potential Boot JDK found at /usr/local/bootstrap-openjdk17 is no=
t a
working JDK; ignoring
configure: Output from java -version was: Error occurred during initializat=
ion
of VM
Could not allocate compressed class space: 1073741824 bytes
configure: error: The path given by --with-boot-jdk does not contain a valid
Boot JDK
configure exiting with result code 1
=3D=3D=3D>  Script "configure" failed unexpectedly.
Please report the problem to java@FreeBSD.org [maintainer] and attach the
"/var/tmp/work-20220515/usr/ports/java/openjdk17/work/jdk17u-jdk-17.0.3-7-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[2]: stopped in /usr/ports/java/openjdk17
*** Error code 1

And I can confirm that setting the sysctl fixed it here too:

# /usr/local/bootstrap-openjdk17/bin/jar --help
Error occurred during initialization of VM
Could not allocate compressed class space: 1073741824 bytes

# sysctl kern.elf64.aslr.pie_enable=3D0
kern.elf64.aslr.pie_enable: 1 -> 0
#  /usr/local/bootstrap-openjdk17/bin/jar --version
jar 17.0.1


Thanks a lot for leaving the fix.  I have no idea how the ports framework m=
ight
handle this dynamically but if it can it probably should... at least give a
warning/error without trying to build.

--=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-260187-8522-xLQaUDi29P>