Clp: 0 dependencies successfully precompiled in 4 seconds. 107 already precompiled

Help I cannot fix this on my Macbook

julia> Pkg.add(“Clp”)

Resolving package versions…

No Changes to ~/.julia/environments/v1.11/Project.toml

No Changes to ~/.julia/environments/v1.11/Manifest.toml

Precompiling project…

✗ Clp

0 dependencies successfully precompiled in 4 seconds. 107 already precompiled.

1 dependency errored.

For a report of the errors see julia> err. To retry use pkg> precompile

julia> Pkg.build(“Clp”)

Precompiling project…

✗ Clp

0 dependencies successfully precompiled in 4 seconds. 107 already precompiled.

1 dependency errored.

For a report of the errors see julia> err. To retry use pkg> precompile

And what are the errors?

Sorry I forgot to copy it in:

Failed to precompile Clp [e2554f3b-3117-50c0-817c-e040a3ddf72d] to “/Users/macbookair/.julia/compiled/v1.11/Clp/jl_9tEVTn”.

[1361] signal 6: Abort trap: 6

in expression starting at /Users/macbookair/.julia/packages/Clp/82GRN/src/Clp.jl:53

__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)

Allocations: 18608828 (Pool: 18608064; Big: 764); GC: 1

Can you share the output of:

using Pkg
Pkg.status()

?
Does it work if you install it in a new project:

mkdir test
cd test
julia --project=.

and then in Julia:

using Pkg
pkg"add Clp"

?

The solution is not to use Clp on aarch64-darwin. I believe @odow suggests using HiGHS instead.

3 Likes

The latest version of Clp.jl will throw an error in __init__:

"Clp.jl does not support Apple M-series processors. Please use HiGHS.jl instead."
1 Like

Messaging in __init__ isn’t helpful if the package fails to precompile and thus cannot be loaded.