-
Notifications
You must be signed in to change notification settings - Fork 985
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
shadow-cljs fails on M1 Macs due to missing architecture #14196
Comments
The issue does not appear when simply building the JS bundle with So the issue might be specific to either Lines 258 to 260 in 5d775d9
|
The architectures of Java and Node binaries are correct:
|
@jakubgs and we're using JNA 3.2.2, correct? |
Indeed, you can find it here: status-mobile/nix/deps/clojure/deps.list Line 64 in 5d775d9
But not sure what exactly pulls it in. |
Seems like it's
|
It appears the And we are using
The commit states:
|
And indeed upgrading it to
But I also had to upgrade OpenJDK from 8 to 11. And it also removes a bunch of Clojure dependencies:
Which is nice. |
On M1 calling `shadow-cljs` fails with: ``` Execution error (UnsatisfiedLinkError) at java.lang.ClassLoader$NativeLibrary/load (ClassLoader.java:-2). /private/var/folders/__/x311ykg17rqgq2wyl4kn1pdr0001yh/T/jna8753030888504535661.tmp: dlopen(/private/var/folders/__/x311ykg17rqgq2wyl4kn1pdr0001yh/T/jna8753030888504535661.tmp, 0x0001): tried: '/private/var/folders/__/x311ykg17rqgq2wyl4kn1pdr0001yh/T/jna8753030888504535661.tmp' (fat file, but missing compatible architecture (have (unknown,i386,x86_64), need (arm64e))) ``` This is due to an outdeted dependency on JNA 3.2.2, which is pulled in by `hawk` package which up until release `2.11.16` was a `shadow-clj` dependency which was removed because it was: >Only used to be used on macOS since it was slightly faster than the default >JVM implementation. However in Big Sur it seems to cause issues and break >completely or just be a lot slower. thheller/shadow-cljs@f3b89b5a Resolves: #14196 Signed-off-by: Jakub Sokołowski <[email protected]>
Problem
Running
make run-clojure
fails on an M1 Mac with:Additional Information
This issue was first identified by a dev candidate - @naartjie - on his Mac M1 running MacOS 12.6, and reproduced on our M1 CI hosts running MacOS 12.5.
The text was updated successfully, but these errors were encountered: