I am trying to build openjdk8 on an aarch64 system, and have found that 
bootstrap-openjdk8 has problems downloading, and fails to run on this system.  
This is probably related to 
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264065, but that pertains 
specifically to compiling java/openjdk8, not java/bootstrap-openjdk8.  I’ve 
included output from a build and run attempt below.  As you can see, there is a 
problem with the download, I’d guess with the DISTVERSION_aarch64 value, but 
maybe it’s distcache.FreeBSD.org that’s wrong.  Unfortunately, 
http://distcache.FreeBSD.org/local-distfiles is no-read, so I can’t look at 
what files are actually available.

In any case, it would be nice if someone could look into the download issue, 
and also see about get working version of bootstrap-openjdk8 for aarch64 
available.

The system I’m running on is FreeBSD 13.1 on VMware Fusion on a Mac Mini M1, 
and I’m building in the 2022Q3 ports tree.

root@vmarm:ports[145]# make -C java/bootstrap-openjdk8
===>  License GPLv2 accepted by the user
===>   bootstrap-openjdk8-r453316_2 depends on file: /usr/local/sbin/pkg - found
=> openjdk8-aarch64-r453316.tar.xz doesn't seem to exist in 
/space/jenkins/customws/trunk/aarch64/ports/distfiles/.
=> Attempting to fetch 
http://distcache.FreeBSD.org/local-distfiles/jkim/openjdk8-aarch64-r453316.tar.xz
fetch: 
http://distcache.FreeBSD.org/local-distfiles/jkim/openjdk8-aarch64-r453316.tar.xz:
 Not Found
=> Attempting to fetch 
http://distcache.us-east.FreeBSD.org/local-distfiles/jkim/openjdk8-aarch64-r453316.tar.xz
fetch: 
http://distcache.us-east.FreeBSD.org/local-distfiles/jkim/openjdk8-aarch64-r453316.tar.xz:
 Not Found
=> Attempting to fetch 
http://distcache.eu.FreeBSD.org/local-distfiles/jkim/openjdk8-aarch64-r453316.tar.xz
fetch: 
http://distcache.eu.FreeBSD.org/local-distfiles/jkim/openjdk8-aarch64-r453316.tar.xz:
 Not Found
=> Attempting to fetch 
http://distcache.us-west.FreeBSD.org/local-distfiles/jkim/openjdk8-aarch64-r453316.tar.xz
fetch: 
http://distcache.us-west.FreeBSD.org/local-distfiles/jkim/openjdk8-aarch64-r453316.tar.xz:
 Service Unavailable
=> Attempting to fetch 
http://distcache.FreeBSD.org/local-distfiles/mikael/openjdk8-aarch64-r453316.tar.xz
openjdk8-aarch64-r453316.tar.xz                         77 MB 3101 kBps    26s
===> Fetching all distfiles required by bootstrap-openjdk8-r453316_2 for 
building
===>  Extracting for bootstrap-openjdk8-r453316_2
=> SHA256 Checksum OK for openjdk8-aarch64-r453316.tar.xz.
===>  Patching for bootstrap-openjdk8-r453316_2
===>  Configuring for bootstrap-openjdk8-r453316_2
===>  Staging for bootstrap-openjdk8-r453316_2
===>   bootstrap-openjdk8-r453316_2 depends on file: 
/usr/local/lib/compat/libffi.so.6 - found
===>   Generating temporary packing list
====> Finding symbols
====> Saved symbols for 
/space/jenkins/customws/trunk/aarch64/ports/java/bootstrap-openjdk8/work/stage/usr/local/bootstrap-openjdk8/jre/lib/aarch64/server/libjsig.so
====> Saved symbols for 
/space/jenkins/customws/trunk/aarch64/ports/java/bootstrap-openjdk8/work/stage/usr/local/bootstrap-openjdk8/jre/lib/aarch64/jspawnhelper
====> Saved symbols for 
/space/jenkins/customws/trunk/aarch64/ports/java/bootstrap-openjdk8/work/stage/usr/local/bootstrap-openjdk8/lib/aarch64/libjawt.so
====> Saved symbols for 
/space/jenkins/customws/trunk/aarch64/ports/java/bootstrap-openjdk8/work/stage/usr/local/bootstrap-openjdk8/lib/aarch64/jexec
====> Saved symbols for 
/space/jenkins/customws/trunk/aarch64/ports/java/bootstrap-openjdk8/work/stage/usr/local/bootstrap-openjdk8/lib/aarch64/jli/libjli.so
====> Compressing man pages (compress-man)

root@vmarm:ports[146]# 
java/bootstrap-openjdk8/work/stage/usr/local/bootstrap-openjdk8/bin/javac
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0x000000004224baf4, pid=24106, tid=0x0000000000093fd1
#
# JRE version:  (8.0_292-b10) (build )
# Java VM: OpenJDK 64-Bit Server VM (25.292-b10 mixed mode bsd-aarch64 
compressed oops)
# Problematic frame:
# v  ~BufferBlob::native signature handlers
#
# Core dump written. Default location: 
/space/jenkins/customws/trunk/aarch64/ports/javac.core
#
# An error report file with more information is saved as:
# /space/jenkins/customws/trunk/aarch64/ports/hs_err_pid24106.log
#
# If you would like to submit a bug report, please visit:
#   
https://bugs.freebsd.org/bugzilla/enter_bug.cgi?product=Ports%20%26%20Packages&component=Individual%20Port(s)&short_desc=java/openjdk8%3A%20
#
Abort trap (core dumped)

root@vmarm:ports[147]# lldb 
java/bootstrap-openjdk8/work/stage/usr/local/bootstrap-openjdk8/bin/javac
(lldb) target create 
"java/bootstrap-openjdk8/work/stage/usr/local/bootstrap-openjdk8/bin/javac"
Current executable set to 
'/space/jenkins/customws/trunk/aarch64/ports/java/bootstrap-openjdk8/work/stage/usr/local/bootstrap-openjdk8/bin/javac'
 (aarch64).
(lldb) run
Process 24545 launched: 
'/space/jenkins/customws/trunk/aarch64/ports/java/bootstrap-openjdk8/work/stage/usr/local/bootstrap-openjdk8/bin/javac'
 (aarch64)
Process 24545 stopped
* thread #2, name = 'javac', stop reason = signal SIGILL: illegal trap
    frame #0: 0x000000004224bd40
->  0x4224bd40: add    x1, x24, #0x0             ; =0x0
    0x4224bd44: ldur   x2, [x24, #-0x10]
    0x4224bd48: ldur   x3, [x24, #-0x20]
    0x4224bd4c: mov    x0, #0x6f0
(lldb) bt
* thread #2, name = 'javac', stop reason = signal SIGILL: illegal trap
  * frame #0: 0x000000004224bd40
(lldb)

Reply via email to