configure: Potential Boot JDK found at /usr/local/bootstrap-openjdk8 is incorrect JDK version (Error: dl failure on line 902); ignoring readelf -a /usr/ports/java/bootstrap-openjdk8/work/bootstrap-openjdk8/jre/lib/aarch64/server/libjvm.so | grep libffi 0x0000000000000001 NEEDED Shared library: [libffi.so.6] recreate the bootstrap for armv6 / arm64 or add a build dep on devel/libffi321?
The bootstrap port already has a RUN_DEPENDS for this: https://svnweb.freebsd.org/ports/head/java/bootstrap-openjdk8/Makefile?revision=541232&view=markup#l39
Are you sure that is definitely the shared library that it can't find? If so then it seems like libffi was uninstalled at some point after bootstrap-openjdk8 was installed. In that case I'm going to close this.
(In reply to Greg Lewis from comment #2) libffi was recently updated with a shlib bump (libffi.so.7, ports r541231) devel/libffi321 was created to fix problem like this one (ports r541359, ports r541399)
Created attachment 216734 [details] RUN_DEPENDS update Let me know if this works
Thanks, will try it next monday
(In reply to Greg Lewis from comment #4) Unfortunately it doesn't work, libffi321 install libffi.so.6 in /usr/local/lib/compat/ and this path is not scanned by rc.d/ldconfig...
That is where the misc/compatNNx ports install libraries too, so it's weird that ldconfig isn't scanning it. It seems like the right place for the port to put things.
(In reply to Greg Lewis from comment #7) There is a bug in devel/libffi321, your patch works fine if libffi321 is patched this way. --- devel/libffi321/Makefile (revision 543486) +++ devel/libffi321/Makefile (working copy) @@ -14,7 +14,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE USES= libtool -USE_LDCONFIG= yes +USE_LDCONFIG= ${PREFIX}/lib/compat GNU_CONFIGURE= yes CONFIGURE_ARGS= --libdir=${PREFIX}/lib/compat \ --disable-static
Cool, that is what the compatNNx ports do as well, I missed that when I looked at them. Can you put a bug in against libffi321?
Looks like there has been an update of bootstrap-openjdk8 to just depend on the new version of libffi. I don't think that works based on the discussion here. Mikael, can you please test to see if the update works or not? If it doesn't I'll commit the change I have to resolve.
(In reply to Greg Lewis from comment #10) My mistake, the problem is in the bootstrap not openjdk8.
Created attachment 217030 [details] patch
A commit references this bug: Author: glewis Date: Thu Aug 6 04:27:10 UTC 2020 New revision: 544263 URL: https://svnweb.freebsd.org/changeset/ports/544263 Log: Unbreak on ARM by depending on the previous libffi version PR: 248099 Changes: head/java/bootstrap-openjdk8/Makefile