Opened 8 months ago

Last modified 7 months ago

#69474 assigned defect

'port install openjdk8-openj9' oddities

Reported by: jf (Jeffrey 'jf' Lim) Owned by: breun (Nils Breunese)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: Dave-Allured (Dave Allured)
Port: openjdk8-openj9

Description

sorry for the vague subject, but it looks to me like there's quite a few things going on:

1: it looks like port install does not (is this a macports issue? surely not?) detect my CPU type (I am on Apple Silicon). After port install, running java -version produces

exec failed: Error Domain=NSPOSIXErrorDomain Code=86 "Bad CPU type in executable" UserInfo={NSLocalizedFailureReason=Failed to execute /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/bin/java: Bad CPU type in executable}

2: During a port install I see this scrolling by (multiple times, in fact):

Warning: openjdk8-openj9 installs files outside the common directory structure.

This doesn't really help (especially if the port install fails; but that's another issue). I'm assuming this message is letting me know that I need to do further cleanup after port uninstall? if that's not the case it should make it clear so that there's no confusion.

3: this is the big one (at the end of port install, it tells me to run the following command, and use the output to report a bug

$ sudo port -d -y rev-upgrade
DEBUG: Copying /Users/jf/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
--->  Scanning binaries for linking errors
DEBUG: Skipping weakly-linked /System/Library/Frameworks/Metal.framework/Versions/A/Metal
DEBUG: Skipping weakly-linked /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
DEBUG: Skipping weakly-linked /System/Library/Frameworks/GameController.framework/Versions/A/GameController
DEBUG: Skipping weakly-linked /System/Library/Frameworks/CoreHaptics.framework/Versions/A/CoreHaptics
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftsimd.dylib
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftos.dylib
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftXPC.dylib
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftUniformTypeIdentifiers.dylib
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftQuartzCore.dylib
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftMetal.dylib
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftIOKit.dylib
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftDarwin.dylib
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftCoreMedia.dylib
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftCoreMIDI.dylib
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftCoreImage.dylib
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftCoreAudio.dylib
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftAVFoundation.dylib
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftsimd.dylib
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftos.dylib
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftXPC.dylib
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftUniformTypeIdentifiers.dylib
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftQuartzCore.dylib
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftMetal.dylib
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftIOKit.dylib
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftDarwin.dylib
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftCoreMedia.dylib
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftCoreMIDI.dylib
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftCoreImage.dylib
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftCoreAudio.dylib
DEBUG: Skipping weakly-linked /usr/lib/swift/libswiftAVFoundation.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/lib/libgcc/libgfortran.5.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/lib/libgcc/libgfortran.5.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/lib/libgcc/libobjc-gnu.4.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/lib/libgcc/libstdc++.6.dylib
DEBUG: Ignoring loadcommand containing @rpath in /Applications/MacPorts/EmacsMac.app/Contents/MacOS/Emacs
DEBUG: skipping ppc in /opt/local/libexec/cmake-bootstrap/share/cmake-3.9/Modules/CPack.OSXScriptLauncher.in since this system can't run it anyway
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/bin/cargo-clippy
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/bin/cargo-clippy
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/bin/cargo-clippy.old
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/bin/cargo-clippy.old
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/bin/clippy-driver
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/bin/clippy-driver
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/bin/clippy-driver.old
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/bin/clippy-driver.old
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/bin/rustc
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/bin/rustc
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/bin/rustdoc
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/bin/rustdoc
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/bin/rustdoc
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/bin/rustfmt
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/bin/rustfmt
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/bin/rustfmt.old
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/bin/rustfmt.old
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/lib/librustc_driver-d75241216d5354f5.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/lib/libtest-5e33fc05fa0d1e67.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/lib/rustlib/aarch64-apple-darwin/lib/libtest-5e33fc05fa0d1e67.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9dmp29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9dmp29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9dmp29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9dmp29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9gc29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9gc29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9gc29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9gc_full29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9gc_full29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9gc_full29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9gcchk29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9gcchk29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9gcchk29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9gcchk_full29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9gcchk_full29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9gcchk_full29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9hookable29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9hookable29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9jit29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9jit29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9jnichk29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9jvmti29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9jvmti29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9jvmti29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9prt29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9prt29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9shr29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9shr29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9shr29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9trc29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9trc29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9vm29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9vm29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9vm29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9vm29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9vmchk29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9vrb29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9vrb29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9vrb29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9vrb29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9vrb_full29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9vrb_full29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9vrb_full29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libj9vrb_full29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libjclse29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libjclse29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libjclse29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/default/libjclse29.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libAppleScriptEngine.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libAppleScriptEngine.dylib
Could not open /System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation: Error opening or reading file (referenced from /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libAppleScriptEngine.dylib)
DEBUG: Marking /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libAppleScriptEngine.dylib as broken
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libattach.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libattach.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libawt.dylib
DEBUG: Marking /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libawt.dylib as broken
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libawt.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libawt.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libawt_lwawt.dylib
DEBUG: Marking /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libawt_lwawt.dylib as broken
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libawt_lwawt.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libawt_lwawt.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libawt_lwawt.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libawt_lwawt.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libfontmanager.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libfontmanager.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libfontmanager.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libfontmanager.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libjava.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libjava.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libjawt.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libjawt.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libjawt.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libjpeg.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libjpeg.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libjsound.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libjsound.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/liblcms.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/liblcms.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/liblcms.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libmanagement.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libmanagement.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libmlib_image.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libmlib_image.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libnet.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libnet.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libnio.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libnio.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libosx.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libosx.dylib
DEBUG: Marking /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libosx.dylib as broken
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libosx.dylib
DEBUG: Marking /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libosxapp.dylib as broken
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libosxui.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libosxui.dylib
DEBUG: Marking /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libosxui.dylib as broken
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libosxui.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libosxui.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libosxui.dylib
DEBUG: Marking /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libsplashscreen.dylib as broken
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libsplashscreen.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libunpack.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libunpack.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libverify.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libzip.dylib
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/jre/lib/libzip.dylib
--->  Found 7 broken files, matching files to ports
--->  Found 1 broken port, determining rebuild order
DEBUG: Broken: openjdk8-openj9
DEBUG: Processing port openjdk8-openj9 @0:8u402_0
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt: openjdk8-openj9 @8u402
Continue? [Y/n]:
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: openjdk8-openj9 8u402_0 exists in the ports tree
DEBUG: openjdk8-openj9 8u402_0  is the latest installed
DEBUG: openjdk8-openj9 8u402_0  is active
DEBUG: Merging existing requested variants '' into variants
DEBUG: new fully merged portvariants:
DEBUG: Opening port in directory: /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/java/openjdk8-openj9
DEBUG: OS darwin/23.3.0 (macOS 14.3.1) arch arm
DEBUG: universal_variant is false, so not adding the default universal variant
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: rev-upgrade override ... upgrading!
Skipping deactivate openjdk8-openj9 @8u402_0 (dry run)
Skipping activate openjdk8-openj9 @8u402_0 (dry run)
DEBUG: Rebuilding port openjdk8-openj9 finished with status 0
Warning: If this was no dry run, rev-upgrade would now run the checks again to find unresolved and newly created problems

Change History (5)

comment:1 Changed 8 months ago by jf (Jeffrey 'jf' Lim)

Port: openjdk8-openj9 added

comment:2 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: openjdk8-openj9 removed
Owner: set to breun
Status: newassigned

Replying to jf:

1: it looks like port install does not (is this a macports issue? surely not?) detect my CPU type (I am on Apple Silicon). After port install, running java -version produces

exec failed: Error Domain=NSPOSIXErrorDomain Code=86 "Bad CPU type in executable" UserInfo={NSLocalizedFailureReason=Failed to execute /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/bin/java: Bad CPU type in executable}

On an Apple Silicon Mac you should still be able to run x86_64 software, at least if you have installed Rosetta 2.

What is the architecture of that executable? (Find out with file /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/bin/java)

For what architecture does MacPorts think it has installed the port? (Find out with port -v installed openjdk8-openj9)

2: During a port install I see this scrolling by (multiple times, in fact):

Warning: openjdk8-openj9 installs files outside the common directory structure.

This doesn't really help (especially if the port install fails; but that's another issue). I'm assuming this message is letting me know that I need to do further cleanup after port uninstall? if that's not the case it should make it clear so that there's no confusion.

No, it does not mean that. It means the port installs to unusual places (i.e. not /opt/local, /Applications/MacPorts, or /Library/LaunchDaemons). A comment in the Portfile explains why it does this:

# macOS Java tools expect to find Java virtual machines under /Library/Java/JavaVirtualMachines, which is not under ${prefix}.

MacPorts will still uninstall those files from those unusual locations properly. The warning comes from MacPorts base, not from this port, so if you want it to change, file a separate ticket against MacPorts base.

comment:3 Changed 8 months ago by breun (Nils Breunese)

IBM Semeru based on Java 8 officially only supports x64, while builds for both x64 and aarch64 are provided for Java 11 and later. The openjdk8-openj9 portfile contains supported_archs x86_64, but that indeed doesn't stop arm64 users from installing this port. But, as you noticed, it doesn't play 100% nice on Apple Silicon devices and the installation of the port will trigger the offer to run rev-upgrade.

If I don't let MacPorts run the rev-upgrade command, then afterwards I can successfully run its java binary:

❯ /Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/bin/java -version
openjdk version "1.8.0_402"
IBM Semeru Runtime Open Edition (build 1.8.0_402-b06)
Eclipse OpenJ9 VM (build openj9-0.43.0, JRE 1.8.0 Mac OS X amd64-64-Bit Compressed References 20240131_892 (JIT enabled, AOT enabled)
OpenJ9   - 2c3d78b48
OMR      - ea8124dbc
JCL      - 0fa9d9c532 based on jdk8u402-b06)

The java binary is an x86_64 executable:

❯ file /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/bin/java
/opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/bin/java: Mach-O 64-bit executable x86_64

MacPorts also thinks it has installed the port for x86_64:

❯ port -v installed openjdk8-openj9
The following ports are currently installed:
  openjdk8-openj9 @8u402_0 (active) requested_variants='' platform='darwin any' archs='x86_64' date='2024-03-11T18:11:46+0100'

I don't know what I'd need to do to not make MacPorts think that this is a broken port with 7 broken dylib files on arm64. Any suggestions, @ryandesign?

Last edited 8 months ago by breun (Nils Breunese) (previous) (diff)

comment:4 Changed 8 months ago by jmroot (Joshua Root)

You could thin the dylibs with lipo to remove the broken arm64 slices.

comment:5 Changed 7 months ago by Dave-Allured (Dave Allured)

Cc: Dave-Allured added
Note: See TracTickets for help on using tickets.