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.

1 Like

Thanks ^^

Messaging in __init__ isn’t helpful if the package fails to precompile

Ah there’s something about assuming… I’ve now skipped the recompilation and tested (this time) that it actually works:

(clpjl) pkg> st
Status `/private/tmp/clpjl/Project.toml` (empty project)

(clpjl) pkg> add Clp@1.2.2
   Resolving package versions...
   Installed Clp ─ v1.2.2
    Updating `/private/tmp/clpjl/Project.toml`
  [e2554f3b] + Clp v1.2.2
    Updating `/private/tmp/clpjl/Manifest.toml`
  [6e4b80f9] + BenchmarkTools v1.5.0
  [e2554f3b] + Clp v1.2.2
  [523fee87] + CodecBzip2 v0.8.5
...
  [8e850ede] + nghttp2_jll v1.52.0+1
  [3f19e933] + p7zip_jll v17.4.0+2
        Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated -m`
Precompiling project...
  1 dependency successfully precompiled in 2 seconds. 42 already precompiled.

julia> using Clp
ERROR: InitError: Clp.jl does not support Apple M-series processors. Please use HiGHS.jl instead.
Stacktrace:
  [1] error(s::String)