Page MenuHomeFreeBSD

java/openjdk11: Fix bootstraping for arm32
Needs ReviewPublic

Authored by haraldei on Thu, Mar 26, 2:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 31, 6:34 AM
Unknown Object (File)
Tue, Mar 31, 3:09 AM
Unknown Object (File)
Mon, Mar 30, 3:03 AM
Unknown Object (File)
Mon, Mar 30, 1:06 AM
Unknown Object (File)
Sat, Mar 28, 8:18 PM
Unknown Object (File)
Thu, Mar 26, 3:38 PM
Subscribers
None

Details

Summary

PR: 294040
Reported by: fuz
Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 71722
Build 68605: arc lint + arc unit

Event Timeline

haraldei created this revision.

Would it be possible to generate the same bootstrap for arm as for the others? I can give you access to an ARM box if you need.

Fails to build on FreeBSD 15:

Updating support/demos/image/jfc/TransparentRuler/src.zip
Creating support/demos/image/jfc/CodePointIM/CodePointIM.jar
Creating support/demos/image/jfc/FileChooserDemo/FileChooserDemo.jar
Creating support/demos/image/jfc/SwingSet2/SwingSet2.jar
Creating support/demos/image/jfc/Font2DTest/Font2DTest.jar
Creating support/demos/image/jfc/J2Ddemo/J2Ddemo.jar
Creating support/demos/image/jfc/Metalworks/Metalworks.jar
Creating support/demos/image/jfc/Notepad/Notepad.jar
Creating support/demos/image/jfc/Stylepad/Stylepad.jar
Creating support/demos/image/jfc/SampleTree/SampleTree.jar
Creating support/demos/image/jfc/TableExample/TableExample.jar
Creating support/demos/image/jfc/TransparentRuler/TransparentRuler.jar

ERROR: Build failed for target 'images' in configuration 'bsd-arm-normal-server-release' (exit code 2) 

=== Output from failing command(s) repeated here ===
* For target support_jmods_java.base.jmod:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGBUS (0xa) at pc=0x2169024c, pid=58330, tid=148668
#
# JRE version: OpenJDK Runtime Environment (11.0.30+7) (build 11.0.30+7-1)
# Java VM: OpenJDK Server VM (11.0.30+7-1, mixed mode, serial gc, bsd-)
# Problematic frame:
# J 15 c2 java.lang.String.charAt(I)C java.base (25 bytes) @ 0x2169024c [0x21690200+0x0000004c]
#
# Core dump will be written. Default location: /wrkdirs/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.30-7-1/make/jmod.core
#
# An error report file with more information is saved as:
# /wrkdirs/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.30-7-1/make/hs_err_pid58330.log
Could not load hsdis-arm.so; library not loadable; PrintAssembly is disabled
   ... (rest of output omitted)

* All command lines available in /wrkdirs/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.30-7-1/build/bsd-arm-normal-server-release/make-support/failure-logs.
=== End of repeated output ===

No indication of failed target found.
Hint: Try searching the build log for '] Error'.
Hint: See doc/building.html#troubleshooting for assistance.

gmake[1]: *** [/wrkdirs/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.30-7-1/make/Init.gmk:308: main] Error 2
gmake: *** [/wrkdirs/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.30-7-1/make/Init.gmk:186: images] Error 2
===> Compilation failed unexpectedly.

@fuz If you have an ARM box I can use, that would be great. Otherwise I can set up a VM too. I will either have to work my way up from openjdk8, or see if I can use a jdk for another arch to bootstrap it. The latter should be possible, but I haven't done that before, so will have to explore a bit.

Mostly AFK next week, though, so not sure how much I manage to do before then.

@fuz If you have an ARM box I can use, that would be great. Otherwise I can set up a VM too. I will either have to work my way up from openjdk8, or see if I can use a jdk for another arch to bootstrap it. The latter should be possible, but I haven't done that before, so will have to explore a bit.

Mostly AFK next week, though, so not sure how much I manage to do before then.

Please send me an email with your desired user name and an SSH key to set up, I can then configure an account on my ARM box (armv7 jail on an aarch64 host) for you.