-
Notifications
You must be signed in to change notification settings - Fork 0
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
libhsl.dylib won't load on MacOS (HSL_jll.jl.v2024.11.28) #14
Comments
The symbol has a prefix @nimgould @jfowkes @AndrewLister-STFC You can load the library so you don't need to remove quarantine on other files. @jfowkes May I ask to try it on the Mac Mini if you find time? We need to update the documentation if it's enough to unquarantine the archive. |
@artkuo Do you also have the version 2023.X.Y of HSL_jll.jl? |
I did have a previous version that was working (dunno version, but I do an empty directory coinhsl-2021.05.05), but I believe I never tried ma97. Unfortunately I over-wrote whichever version I had before. |
Ah, I see that I can download an old version. I installed 2023.11.7 on Julia 1.11.2 on Mac Pro laptop, and ma97 works for both Ipopt and HSL.jl examples. (Although ma57_solve with HSL.jl fails on ERROR: ReadOnlyMemoryError(); it works for same example in 2024.11.28). |
Was it the same error for MA57 then the one in this issue: |
I believe MA57 error is different, because it's not a segfault. The error is
This case is for Julia 1.11.2 with |
Thanks for the feedback! I'll test the examples on the mac today. Update I've just booted up the mac mini we have (aarch) and tested the 2.3.1 and 2.3.2 examples with the latest HSL_jll and it all seemed to work. I also checked the symbol names. Do you need to unquarantine the header files in include? I'm running:
MA57 and HSL_MA97 are different in that HSL_MA97 uses fortran modules and has a c interface, whereas MA57 is an older style and so has less moving parts from a build perspective. Here's what I did (note I didn't have any quarantine as I downloaded it on my laptop and scp'd it to the mac):
nm:
2.3.1:
|
I think this is the same as the linked error just hitting a different problem.
|
@AndrewLister-STFC is correct, this worked in 2023.11.7: As for the issue with ma97 2024, I deleted everything and followed a procedure like yours, and it now works. So somewhere maybe there was a quarantine still going on. Thanks for your help and sorry for the false alarm. |
No problem, glad we could help! |
I had a few issues with HSL_jll.
Testing instructions "2.3.2 Usage with Ipopt.jl" I got a library loading failure for
libhsl.dylib
. I was able to get it to work by explicitly removing quarantinexattr -d com.apple.quarantine lib.hsl.dylib
while in its directory. I think unquarantine of zip file doesn't automatically unquarantine all the contents? In any case for me after unquarantine, the MA57 example now works.Linear solver MA97 fails. The second example in 2.3.2:
I wonder if I need to unquarantine another file?
Testing "2.3.1 Usage with HSL_jll" also fails for a similar reason.
I tried
nm -g libhsl.dylib
and the symbol does seem to exist:Also,
ma57_solve
works. That's the extent of my knowledge, and I don't know why ma97 doesn't work.The text was updated successfully, but these errors were encountered: