-
-
Notifications
You must be signed in to change notification settings - Fork 12.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
openjdk@8 1.8.0-432 #194719
base: master
Are you sure you want to change the base?
openjdk@8 1.8.0-432 #194719
Conversation
ff25870
to
68bd427
Compare
Why is the on_arm do
depends_on "openjdk@21"
end
on_intel do
depends_on "openjdk@8"
end I printed the content of the #!/bin/bash
export JAVA_HOME="${JAVA_HOME:-/usr/local/opt/openjdk@8/libexec/openjdk.jdk/Contents/Home}"
exec "${JAVA_HOME}/bin/java" -jar "/usr/local/Cellar/embulk/0.11.5/libexec/embulk-0.11.5.jar" "$@" It seems that the P.S. def install
java_version = Hardware::CPU.intel? ? "1.8" : "21"
libexec.install "embulk-#{version}.jar"
bin.write_jar_script libexec/"embulk-#{version}.jar", "embulk", java_version:
end |
fed29db
to
68bd427
Compare
0b8bfc0
to
68bd427
Compare
79c16e8
to
bd657e1
Compare
16477cb
to
d3955dd
Compare
14edc3f
to
e34a3cd
Compare
e34a3cd
to
6864d32
Compare
I opened an issue: Homebrew/brew#18695 |
Did you try the header thing I suggested? I ask because in theory it should still be possible to link against system JNF as the linker information does still ship with the SDK - only the headers were removed: resource("JavaNativeFoundation").stage(buildpath/"JNF")
args << "--with-extra-cflags=-isystem #{buildpath/"JNF/apple/JavaNativeFoundation"}" |
Not yet, as I don’t know where to download these headers. However, there’s an error that might indicate it won’t necessarily work: |
That was using the resource you already have. The test I ran locally was: $ clang -arch x86_64 -isystem $(/usr/libexec/java_home)/include -isystem $(/usr/libexec/java_home)/include/darwin -isystem openjdk-iTunesOpenJDK-1014.0.2.12.1/apple/JavaNativeFoundation/ -framework JavaNativeFoundation test.m (java_home stuff not needed in an OpenJDK build - just was because I was running it from outside) #include <JavaNativeFoundation/JavaNativeFoundation.h>
int main()
{
printf("%f\n", JNFJavaMillisToNSTimeInterval(978307210000)); // should equal 10.0
return 0;
} $ ./a.out
10.000000
$ otool -L a.out
a.out:
/System/Library/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation (compatibility version 1.0.0, current version 84.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1345.100.2) |
3dae490
to
77955fd
Compare
@Bo98 Hi, I have tried, but it still doesn't work, whether it's
From the error log above, it seems that it will look for headers in framework 'JavaNativeFoundation' rather than those provided by What did I mainly change? ↓↓↓ if OS.mac?
# Work around Xcode 16 bug: https://bugs.openjdk.org/browse/JDK-8340341
ENV.append_to_cflags("-mllvm -enable-constraint-elimination=0") if DevelopmentTools.clang_build_version == 1600
args += %w[
--with-toolchain-type=clang
--with-zlib=system
]
# NOTE: Since macOS Sonoma or newer do not include the required headersfor JNF (JavaNativeFoundation.framework),
# so we will use the headers provided at https://github.com/apple/openjdk.
if MacOS.version >= :sonoma
resource "JavaNativeFoundation" do
url "https://github.com/apple/openjdk/archive/refs/tags/iTunesOpenJDK-1014.0.2.12.1.tar.gz"
sha256 "e8556a73ea36c75953078dfc1bafc9960e64593bc01e733bc772d2e6b519fd4a"
stage do
jnf_headers_search_path = Pathname.pwd/"apple/JavaNativeFoundation/JavaNativeFoundation"
args += %W[
--with-extra-cflags=-isystem#{jnf_headers_search_path}
--with-extra-cxxflags=-isystem#{jnf_headers_search_path}
]
end
end
ldflags << "-Wl,-rpath,#{MacOS.sdk_path}/System/Library/Frameworks"
end
#......
end |
133c53c
to
34e252c
Compare
34e252c
to
3a03359
Compare
b069910
to
2448cc0
Compare
Looks like there's one part that doesn't accept |
aa34fd4
to
40066ab
Compare
Yes, you’re right. I’ve referred to your commit and adjusted this PR, and it seems to be working fine now. Thank you very much! |
Should it be approved and merged into the master branch now? @Bo98 @carlocab @cho-m @chenrui333 |
Formula/o/openjdk@8.rb
Outdated
] | ||
end | ||
# Only the headers use our own; the others still use the built-in framework's. | ||
ldflags << "-Wl,-rpath,#{MacOS.sdk_path}/System/Library/Frameworks" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is a bit weird. rpath
provides the runtime path but the runtime framework doesn't exist here - only the linker information does.
What error do you get without this line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
==> bash common/autoconf/autogen.sh
==> bash configure --with-boot-jdk-jvmargs=-Duser.home=/Users/Homebrew/Library/Caches/Homebrew/java_cache --with-boot-jdk=/private/tmp/openjdkA8-20241108-21554-jhwpy6/jdk8u-jdk8u432-ga/
==> make bootcycle-images CONF=release
Last 15 lines from /Users/Homebrew/Library/Logs/Homebrew/openjdk@8/03.make:
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext.initMainAppContext(AppContext.java:266)
at sun.awt.AppContext.access$400(AppContext.java:135)
at sun.awt.AppContext$3.run(AppContext.java:321)
at sun.awt.AppContext$3.run(AppContext.java:304)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext.getAppContext(AppContext.java:303)
at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:154)
at javax.imageio.ImageIO.<clinit>(ImageIO.java:66)
at build.tools.icondata.awt.ToBin.main(ToBin.java:35)
make[3]: *** [/private/tmp/openjdkA8-20241108-21554-jhwpy6/jdk8u-jdk8u432-ga/build/release/bootcycle-build/jdk/gensrc/sun/awt//AWTIcon32_security_icon_bw16_png.java] Error 1
make[3]: *** [/private/tmp/openjdkA8-20241108-21554-jhwpy6/jdk8u-jdk8u432-ga/build/release/bootcycle-build/jdk/gensrc/sun/awt//AWTIcon64_java_icon48_png.java] Error 1
make[2]: *** [gensrc-only] Error 2
make[1]: *** [jdk-only] Error 2
make: *** [bootcycle-images-only] Error 2
READ THIS: https://docs.brew.sh/Troubleshooting
with --verbose
:
## Starting jdk
Importing CORBA bin.zip
Importing CORBA classes.jar
Importing CORBA src.zip
Importing JAXP classes.jar
Importing JAXP src.zip
Importing JAXWS src.zip
Importing JAXWS classes.jar
Importing LANGTOOLS src.zip
Importing LANGTOOLS classes.jar
Generating charsetmapping classes
Generating icon classes
Generating exceptions classes
Generating buffer classes
Compiling 164 files for BUILD_TOOLS
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
Creating sun/util/LocaleDataMetaInfo.java from 423 found resources.
Compiling 533 properties into resource bundles
Copying and cleaning 53 properties
Generating sun/misc/Version.java
Generating sun/misc/Version.java compact1
Generating sun/misc/Version.java compact2
Generating sun/misc/Version.java compact3
Aliases: Table size 1024 (10 bits), shift 0, max chain depth 3
Classes: Table size 32 (5 bits), shift 1, max chain depth 3
Cache: Table size 32 (5 bits), shift 1, max chain depth 3
Exception in thread "main" java.lang.UnsatisfiedLinkError: /private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib: dlopen(/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib, 0x0001): Library not loaded: @rpath/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation
Referenced from: <54157E5C-5613-3E68-9629-EAB0F966C6C5> /private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib
Reason: tried: '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/server/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation' (no such file), '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/./JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation' (no such file), '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/serve
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1838)
at java.lang.Runtime.loadLibrary0(Runtime.java:843)
at java.lang.System.loadLibrary(System.java:1136)
at java.awt.Toolkit$3.run(Toolkit.java:1636)
at java.awt.Toolkit$3.run(Toolkit.java:1634)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1633)
at java.awt.Toolkit.<clinit>(Toolkit.java:1670)
at sun.awt.AppContext$2.run(AppContext.java:277)
at sun.awt.AppContext$2.run(AppContext.java:266)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext.initMainAppContext(AppContext.java:266)
at sun.awt.AppContext.access$400(AppContext.java:135)
at sun.awt.AppContext$3.run(AppContext.java:321)
at sun.awt.AppContext$3.run(AppContext.java:304)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext.getAppContext(AppContext.java:303)
at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:154)
at javax.imageio.ImageIO.<clinit>(ImageIO.java:66)
at build.tools.icondata.awt.ToBin.main(ToBin.java:35)
make[3]: *** [/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/bootcycle-build/jdk/gensrc/sun/awt//AWTIcon32_java_icon16_png.java] Error 1
make[3]: *** Waiting for unfinished jobs....
Exception in thread "main" java.lang.UnsatisfiedLinkError: /private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib: dlopen(/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib, 0x0001): Library not loaded: @rpath/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation
Referenced from: <54157E5C-5613-3E68-9629-EAB0F966C6C5> /private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib
Reason: tried: '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/server/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation' (no such file), '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/./JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation' (no such file), '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/serve
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1838)
at java.lang.Runtime.loadLibrary0(Runtime.java:843)
at java.lang.System.loadLibrary(System.java:1136)
at java.awt.Toolkit$3.run(Toolkit.java:1636)
at java.awt.Toolkit$3.run(Toolkit.java:1634)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1633)
at java.awt.Toolkit.<clinit>(Toolkit.java:1670)
at sun.awt.AppContext$2.run(AppContext.java:277)
at sun.awt.AppContext$2.run(AppContext.java:266)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext.initMainAppContext(AppContext.java:266)
at sun.awt.AppContext.access$400(AppContext.java:135)
at sun.awt.AppContext$3.run(AppContext.java:321)
at sun.awt.AppContext$3.run(AppContext.java:304)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext.getAppContext(AppContext.java:303)
at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:154)
at javax.imageio.ImageIO.<clinit>(ImageIO.java:66)
at build.tools.icondata.awt.ToBin.main(ToBin.java:35)
Exception in thread "main" java.lang.UnsatisfiedLinkError: /private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib: dlopen(/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib, 0x0001): Library not loaded: @rpath/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation
Referenced from: <54157E5C-5613-3E68-9629-EAB0F966C6C5> /private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib
Reason: tried: '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/server/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation' (no such file), '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/./JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation' (no such file), '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/serve
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1838)
at java.lang.Runtime.loadLibrary0(Runtime.java:843)
at java.lang.System.loadLibrary(System.java:1136)
at java.awt.Toolkit$3.run(Toolkit.java:1636)
at java.awt.Toolkit$3.run(Toolkit.java:1634)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1633)make[3]: *** [/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/bootcycle-build/jdk/gensrc/sun/awt//AWTIcon64_java_icon16_png.java] Error 1
at java.awt.Toolkit.<clinit>(Toolkit.java:1670)
at sun.awt.AppContext$2.run(AppContext.java:277)
at sun.awt.AppContext$2.run(AppContext.java:266)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext.initMainAppContext(AppContext.java:266)
at sun.awt.AppContext.access$400(AppContext.java:135)
at sun.awt.AppContext$3.run(AppContext.java:321)
at sun.awt.AppContext$3.run(AppContext.java:304)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext.getAppContext(AppContext.java:303)
at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:154)
at javax.imageio.ImageIO.<clinit>(ImageIO.java:66)
at build.tools.icondata.awt.ToBin.main(ToBin.java:35)
make[3]: *** [/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/bootcycle-build/jdk/gensrc/sun/awt//AWTIcon32_java_icon24_png.java] Error 1
Exception in thread "main" Exception in thread "main" java.lang.UnsatisfiedLinkError: /private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib: dlopen(/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib, 0x0001): Library not loaded: @rpath/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation
Referenced from: <54157E5C-5613-3E68-9629-EAB0F966C6C5> /private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib
Reason: tried: '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/server/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation' (no such file), '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/./JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation' (no such file), '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/servejava.lang.UnsatisfiedLinkError: /private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib: dlopen(/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib, 0x0001): Library not loaded: @rpath/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation
Referenced from: <54157E5C-5613-3E68-9629-EAB0F966C6C5> /private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib
Reason: tried: '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/server/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation' (no such file), '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/./JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation' (no such file), '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/serve
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1838)
at java.lang.Runtime.loadLibrary0(Runtime.java:843)
at java.lang.System.loadLibrary(System.java:1136)
at java.awt.Toolkit$3.run(Toolkit.java:1636)
Exception in thread "main" at java.awt.Toolkit$3.run(Toolkit.java:1634)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1633)
at java.awt.Toolkit.<clinit>(Toolkit.java:1670)
at sun.awt.AppContext$2.run(AppContext.java:277)
at sun.awt.AppContext$2.run(AppContext.java:266)
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.ClassLoader$NativeLibrary.load(Native Method) at sun.awt.AppContext.initMainAppContext(AppContext.java:266)
at sun.awt.AppContext.access$400(AppContext.java:135)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934) at sun.awt.AppContext$3.run(AppContext.java:321)
at sun.awt.AppContext$3.run(AppContext.java:304) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1838)
at java.security.AccessController.doPrivileged(Native Method) at java.lang.Runtime.loadLibrary0(Runtime.java:843)
at java.lang.System.loadLibrary(System.java:1136) at sun.awt.AppContext.getAppContext(AppContext.java:303)java.lang.UnsatisfiedLinkError: /private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib: dlopen(/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib, 0x0001): Library not loaded: @rpath/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation
Referenced from: <54157E5C-5613-3E68-9629-EAB0F966C6C5> /private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib
Reason: tried: '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/server/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation' (no such file), '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/./JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation' (no such file), '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/serve
at java.awt.Toolkit$3.run(Toolkit.java:1636) at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:154)
at java.awt.Toolkit$3.run(Toolkit.java:1634) at javax.imageio.ImageIO.<clinit>(ImageIO.java:66)
at java.security.AccessController.doPrivileged(Native Method) at build.tools.icondata.awt.ToBin.main(ToBin.java:35)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1633)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.awt.Toolkit.<clinit>(Toolkit.java:1670) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1838)
at sun.awt.AppContext$2.run(AppContext.java:277)
at java.lang.Runtime.loadLibrary0(Runtime.java:843)
at sun.awt.AppContext$2.run(AppContext.java:266) at java.lang.System.loadLibrary(System.java:1136)
at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit$3.run(Toolkit.java:1636)
at sun.awt.AppContext.initMainAppContext(AppContext.java:266) at java.awt.Toolkit$3.run(Toolkit.java:1634)
at sun.awt.AppContext.access$400(AppContext.java:135)
at java.security.AccessController.doPrivileged(Native Method) at sun.awt.AppContext$3.run(AppContext.java:321)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1633) at sun.awt.AppContext$3.run(AppContext.java:304)
at java.awt.Toolkit.<clinit>(Toolkit.java:1670) at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext$2.run(AppContext.java:277) at sun.awt.AppContext.getAppContext(AppContext.java:303)
at sun.awt.AppContext$2.run(AppContext.java:266)
at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:154) at java.security.AccessController.doPrivileged(Native Method)
at javax.imageio.ImageIO.<clinit>(ImageIO.java:66) at sun.awt.AppContext.initMainAppContext(AppContext.java:266)
at build.tools.icondata.awt.ToBin.main(ToBin.java:35)
at sun.awt.AppContext.access$400(AppContext.java:135)
at sun.awt.AppContext$3.run(AppContext.java:321)
at sun.awt.AppContext$3.run(AppContext.java:304)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext.getAppContext(AppContext.java:303)
at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:154)
at javax.imageio.ImageIO.<clinit>(ImageIO.java:66)
at build.tools.icondata.awt.ToBin.main(ToBin.java:35)
make[3]: *** [/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/bootcycle-build/jdk/gensrc/sun/awt//AWTIcon64_java_icon32_png.java] Error 1
make[3]: *** [/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/bootcycle-build/jdk/gensrc/sun/awt//AWTIcon32_java_icon32_png.java] Error 1
make[3]: *** [/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/bootcycle-build/jdk/gensrc/sun/awt//AWTIcon64_java_icon24_png.java] Error 1
Exception in thread "main" java.lang.UnsatisfiedLinkError: /private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib: dlopen(/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib, 0x0001): Library not loaded: @rpath/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation
Referenced from: <54157E5C-5613-3E68-9629-EAB0F966C6C5> /private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib
Reason: tried: '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/server/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation' (no such file), '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/./JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation' (no such file), '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/serve
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1838)
at java.lang.Runtime.loadLibrary0(Runtime.java:843)
at java.lang.System.loadLibrary(System.java:1136)
at java.awt.Toolkit$3.run(Toolkit.java:1636)
at java.awt.Toolkit$3.run(Toolkit.java:1634)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1633)
at java.awt.Toolkit.<clinit>(Toolkit.java:1670)
at sun.awt.AppContext$2.run(AppContext.java:277)
at sun.awt.AppContext$2.run(AppContext.java:266)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext.initMainAppContext(AppContext.java:266)
at sun.awt.AppContext.access$400(AppContext.java:135)
at sun.awt.AppContext$3.run(AppContext.java:321)
at sun.awt.AppContext$3.run(AppContext.java:304)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext.getAppContext(AppContext.java:303)
at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:154)
at javax.imageio.ImageIO.<clinit>(ImageIO.java:66)
at build.tools.icondata.awt.ToBin.main(ToBin.java:35)
make[3]: *** [/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/bootcycle-build/jdk/gensrc/sun/awt//AWTIcon32_java_icon48_png.java] Error 1
Exception in thread "main" java.lang.UnsatisfiedLinkError: /private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib: dlopen(/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib, 0x0001): Library not loaded: @rpath/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation
Referenced from: <54157E5C-5613-3E68-9629-EAB0F966C6C5> /private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib
Reason: tried: '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/server/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation' (no such file), '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/./JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation' (no such file), '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/serve
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1838)
at java.lang.Runtime.loadLibrary0(Runtime.java:843)
at java.lang.System.loadLibrary(System.java:1136)
at java.awt.Toolkit$3.run(Toolkit.java:1636)
at java.awt.Toolkit$3.run(Toolkit.java:1634)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1633)
at java.awt.Toolkit.<clinit>(Toolkit.java:1670)
at sun.awt.AppContext$2.run(AppContext.java:277)
at sun.awt.AppContext$2.run(AppContext.java:266)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext.initMainAppContext(AppContext.java:266)
at sun.awt.AppContext.access$400(AppContext.java:135)
at sun.awt.AppContext$3.run(AppContext.java:321)
at sun.awt.AppContext$3.run(AppContext.java:304)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext.getAppContext(AppContext.java:303)
at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:154)
at javax.imageio.ImageIO.<clinit>(ImageIO.java:66)
at build.tools.icondata.awt.ToBin.main(ToBin.java:35)
make[3]: *** [/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/bootcycle-build/jdk/gensrc/sun/awt//AWTIcon64_java_icon48_png.java] Error 1
Exception in thread "main" java.lang.UnsatisfiedLinkError: /private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib: dlopen(/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib, 0x0001): Library not loaded: @rpath/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation
Referenced from: <54157E5C-5613-3E68-9629-EAB0F966C6C5> /private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/libawt.dylib
Reason: tried: '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/server/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation' (no such file), '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/./JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation' (no such file), '/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/images/j2sdk-image/jre/lib/serve
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1838)
at java.lang.Runtime.loadLibrary0(Runtime.java:843)
at java.lang.System.loadLibrary(System.java:1136)
at java.awt.Toolkit$3.run(Toolkit.java:1636)
at java.awt.Toolkit$3.run(Toolkit.java:1634)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1633)
at java.awt.Toolkit.<clinit>(Toolkit.java:1670)
at sun.awt.AppContext$2.run(AppContext.java:277)
at sun.awt.AppContext$2.run(AppContext.java:266)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext.initMainAppContext(AppContext.java:266)
at sun.awt.AppContext.access$400(AppContext.java:135)
at sun.awt.AppContext$3.run(AppContext.java:321)
at sun.awt.AppContext$3.run(AppContext.java:304)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext.getAppContext(AppContext.java:303)
at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:154)
at javax.imageio.ImageIO.<clinit>(ImageIO.java:66)
at build.tools.icondata.awt.ToBin.main(ToBin.java:35)
make[3]: *** [/private/tmp/openjdkA8-20241108-95984-s14hji/jdk8u-jdk8u432-ga/build/release/bootcycle-build/jdk/gensrc/sun/awt//AWTIcon32_security_icon_bw16_png.java] Error 1
make[2]: *** [gensrc-only] Error 2
make[1]: *** [jdk-only] Error 2
make: *** [bootcycle-images-only] Error 2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, I have resubmitted a new change without specifying @rpath
this time. It seems like it should be fine. If there are no other issues, I think it’s ready to be merged into the master
branch. Please let me know if there are any additional concerns. Thank you. @Bo98
40066ab
to
0bf8394
Compare
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingHOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>
)? If this is a new formula, does it passbrew audit --new <formula>
?