-
-
Notifications
You must be signed in to change notification settings - Fork 394
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
Failed to generate a custom sysimage for JuMP #3594
Comments
Can you add more detail of what you are trying to do? |
I followed the documentation but got the error mentioned above. Content of using JuMP, HiGHS
model = Model(HiGHS.Optimizer)
set_silent(model)
@variable(model, x >= 0)
@variable(model, 0 <= y <= 3)
@objective(model, Min, 12x + 20y)
@constraint(model, c1, 6x + 8y >= 100)
@constraint(model, c2, 7x + 12y >= 120)
optimize!(model)
open("model.log", "w") do io
print(io, solution_summary(model; verbose = true))
return
end I encountered the error trying to run the following command to generate generate a custom sysimage using PackageCompiler, Libdl
PackageCompiler.create_sysimage(
["JuMP", "HiGHS"],
sysimage_path = "customimage." * Libdl.dlext,
precompile_execution_file = "model.jl",
)
|
Are you sure? That's the exact code you ran and you're not using Clarabel anywhere? Can you provide the full log of every command that you ran? I cannot reproduce your error: (pc) pkg> st
Status `/private/tmp/pc/Project.toml`
[87dc4568] HiGHS v1.7.5
[4076af6c] JuMP v1.16.0
[9b87118b] PackageCompiler v2.1.15
[8f399da3] Libdl
julia> using PackageCompiler, Libdl
julia> PackageCompiler.create_sysimage(
["JuMP", "HiGHS"],
sysimage_path = "customimage." * Libdl.dlext,
precompile_execution_file = "model.jl",
)
Precompiling project...
44 dependencies successfully precompiled in 85 seconds
[ Info: PackageCompiler: Executing /private/tmp/pc/model.jl => /var/folders/bg/dzq_hhvx1dxgy6gb5510pxj80000gn/T/jl_packagecompiler_YrqHLh/jl_rjQ25W
[ Info: PackageCompiler: Done
✔ [04m:57s] PackageCompiler: compiling incremental system image |
Thank you for your reply, here is the full log
|
This seems like an issue with Clarabel. I don't know if we can fix in JuMP. You should instead use a |
Deleting Clarabel worked, thanks. |
I looked into the details. The
You're not using the official Julia binaries. Please download the official version of Julia from https://julialang.org/downloads/ Other binaries sources are not supported, because they often compile Julia in a way that causes multiple issues with third-party libraries like BLAS. |
I download the official version of Julia from https://julialang.org/downloads/. The following code works fine. This issue should be caused by the Julia version of Homebrew. Thank you. PackageCompiler.create_sysimage(
["JuMP", "HiGHS", "Clarabel"],
sysimage_path = "customimage." * Libdl.dlext,
precompile_execution_file = "model.jl",
) |
According to the documentation Performance Tips,Suggestion 3: use PackageCompiler
, JuMP is compatible with the PackageCompiler.jl package. However, but it fails with the following error message:
The code used to precompile is as follows
The text was updated successfully, but these errors were encountered: