[Bug 260187] java/bootstrap-openjdk17: broken on aarch64
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 260187] java/bootstrap-openjdk17: broken on aarch64"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 15 May 2022 23:30:06 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260187 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 CURRENT 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... 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 not a working JDK; ignoring configure: Output from java -version was: Error occurred during initialization 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 ===> 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=0 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 might handle this dynamically but if it can it probably should... at least give a warning/error without trying to build. -- You are receiving this mail because: You are the assignee for the bug.