Skip to content
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

v0.9.8 does not compile on M2 due to something with libklusolvex.dylib #103

Closed
NLaws opened this issue Oct 29, 2024 · 2 comments
Closed

Comments

@NLaws
Copy link

NLaws commented Oct 29, 2024

since upgrading to v0.9.8 from v0.9.7 OpenDSSDirect.jl fails to build with the following error:

ERROR: LoadError: InitError: could not load library "/Users/nlaws/.julia/packages/OpenDSSDirect/TOPxW/deps/apple/libklusolvex.dylib"
dlopen(/Users/nlaws/.julia/packages/OpenDSSDirect/TOPxW/deps/apple/libklusolvex.dylib, 0x0001): tried: '/Users/nlaws/.julia/packages/OpenDSSDirect/TOPxW/deps/apple/libklusolvex.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/nlaws/.julia/packages/OpenDSSDirect/TOPxW/deps/apple/libklusolvex.dylib' (no such file), '/Users/nlaws/.julia/packages/OpenDSSDirect/TOPxW/deps/apple/libklusolvex.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
@PMeira
Copy link
Member

PMeira commented Oct 29, 2024

(have 'arm64', need 'x86_64')

Are you using the x86-64 Julia on purpose? A while ago, somebody had a similar issue with MATLAB, and they had accidentally installed the Intel version.

I could only reproduce the error message if I first use a native Julia (ARM), followed by a x86-64 Julia. That caused Julia to mix the binaries, maybe due to the precompilation cache being built with ARM as a target.
If I rename/delete my ~/.julia, it works fine. There's probably a simpler fix, but I personally don't mix archs.

@NLaws
Copy link
Author

NLaws commented Oct 29, 2024

Are you using the x86-64 Julia on purpose?

Nope, not sure how I fat-fingered that one 🤦

@NLaws NLaws closed this as completed Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants