-
Notifications
You must be signed in to change notification settings - Fork 16
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
Cannot precompile Clarabel #171
Comments
That's very odd. What version of Julia is it, i.e. what do you get when you type Edit : never mind, it looks like v1.10. I don't see why there should be a bug there, but will need to update version to check for myself. |
I'm running Julia 1.10.3 (2024-04-03) installed using Homebrew on macOS Ventura 13.6.3. Would be great, if you could reproduce this error (and give a hint to a solution). thnx |
I can't reproduce it on Mac for Julia 1.10.3, and I don't really understand what could cause that error. What do you get if you do :
|
I get the following: julia> using LinearAlgebra
julia> LinearAlgebra.BlasInt
Int32
julia> Could there be a conflict with other packages? My
|
I think there is an implicit assumption throughout the code that I think it's fixable for you with just a one line change here, but that's not a satisfactory long term solution. As to why your installation is configured that way.... for this I don't have a good answer, particular on OSX. |
I changed the line you mentionend in your last post and replaced Result: IT WORKS!! :-) I was able to run the sample in https://clarabel.org/stable/julia/getting_started_jl/ and everything worked fine. Thank you so much for your help!!! Do you think this will be fixed in a future version of Clarabel? And do you have an idea, when this will be available? Thanks again!! Stoffel |
Yes, we will definitely fix it. I am not sure of a timeline yet since I would first like to understand when BlasInt is something other than Int64, since it might have an effect on solving for SDPs in particular. We will make it a high priority fix though since it's obviously not good for the package to crash like that as soon as it loads. |
Sounds good! I did some google search and found, that the Int-type in https://github.com/JuliaLang/julia/blob/master/stdlib/LinearAlgebra/src/LinearAlgebra.jl depends on On https://docs.julialang.org/en/v1/devdocs/build/distributing/ you will find the info: On 32-bit architectures, Julia builds OpenBLAS to use 32-bit integers, while on 64-bit architectures, Julia builds OpenBLAS to use 64-bit integers (ILP64) The Homebrew installation seems to be build as a 32-bit version of Julia, but I am running a M2 mac (which is 64-bit). Hope this helps. |
Found it: The Homebrew formula uses So Homebrew builds the 32-bit version. |
Thank you. This is very helpful and I am now able to reproduce the error using a homebrew install. |
Should be fixed and available in v0.9.0 via the package manager shortly. |
That's great news! So I should execute the command |
Yes, you can just type ] update Clarabel to update the package. Note the leading bracket, which enters the package manager. No need to do so regularly if you are happy with how it is working, although we are still actively adding features. |
I just did the update as you described and everything is working fine, now. |
Hi,
I am a newbie to Julia and tried to install Clarabel. When precompiling Clarabel, I got the following error:
Can you help me, please?
Thank you,
Stoffel
The text was updated successfully, but these errors were encountered: