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

**URL:** <https://discourse.julialang.org/t/clp-0-dependencies-successfully-precompiled-in-4-seconds-107-already-precompiled/124148>\
**Category:** Optimization (Mathematical)\
**Tags:** package\
**Created:** [December 24, 2024, 10:16am UTC](https://discourse.julialang.org/t/clp-0-dependencies-successfully-precompiled-in-4-seconds-107-already-precompiled/124148 "2024-12-24T10:16:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/anonymous_user/32/214367_2.png) [@anonymous\_user](https://discourse.julialang.org/u/anonymous_user)\
**Post date:** [December 24, 2024, 10:16am UTC](https://discourse.julialang.org/t/clp-0-dependencies-successfully-precompiled-in-4-seconds-107-already-precompiled/124148/1 "2024-12-24T10:16:19Z")

</div>

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`

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [December 24, 2024, 11:19am UTC](https://discourse.julialang.org/t/clp-0-dependencies-successfully-precompiled-in-4-seconds-107-already-precompiled/124148/2 "2024-12-24T11:19:27Z")

</div>

And what are the errors?

---

<div class="post-metadata">

**Author:** ![anonymous\_user](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/anonymous_user/32/214367_2.png) [@anonymous\_user](https://discourse.julialang.org/u/anonymous_user)\
**Post date:** [December 24, 2024, 11:33am UTC](https://discourse.julialang.org/t/clp-0-dependencies-successfully-precompiled-in-4-seconds-107-already-precompiled/124148/3 "2024-12-24T11:33:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [December 24, 2024, 12:22pm UTC](https://discourse.julialang.org/t/clp-0-dependencies-successfully-precompiled-in-4-seconds-107-already-precompiled/124148/4 "2024-12-24T12:22:07Z")

</div>

Can you share the output of:

```julia
using Pkg
Pkg.status()

```

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

```julia
mkdir test
cd test
julia --project=.

```

and then in Julia:

```julia
using Pkg
pkg"add Clp"

```

?

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [December 24, 2024, 12:57pm UTC](https://discourse.julialang.org/t/clp-0-dependencies-successfully-precompiled-in-4-seconds-107-already-precompiled/124148/5 "2024-12-24T12:57:24Z")

</div>

> <https://github.com/jump-dev/Clp.jl/issues/131>
>
> I cannot run \`Clp\` through \`JuMP\`, it crashes when as soon as I start the optimi…zation. Here is a minimal example, where I am trying to minimize \`c^T x\` where \`A x = b\` and \`x \>=0\`.
> \`\`\`
> julia\> using JuMP, Clp
> 
> julia\> C =\[-2.0,3.0,0.0, 0.0\]
> 4-element Vector{Float64}:
> -2.0
> 3.0
> 0.0
> 0.0
> 
> julia\> A=\[1.0 1.0 1.0 0.0;
> 1.0 -1.0 0.0 1.0\]
> 2×4 Matrix{Float64}:
> 1.0 1.0 1.0 0.0
> 1.0 -1.0 0.0 1.0
> 
> julia\> b= \[4.0,6.0\]
> 2-element Vector{Float64}:
> 4.0
> 6.0
> 
> julia\> model = Model(Clp.Optimizer)
> A JuMP Model
> Feasibility problem with:
> Variables: 0
> Model mode: AUTOMATIC
> CachingOptimizer state: EMPTY\_OPTIMIZER
> Solver name: Clp
> 
> julia\> @variable(model,x\[1:4\]\>=0)
> 4-element Vector{VariableRef}:
> x\[1\]
> x\[2\]
> x\[3\]
> x\[4\]
> 
> julia\> @objective(model,Min,C'\*x)
> \-2 x\[1\] + 3 x\[2\]
> 
> julia\> @constraint(model,A\*x.==b)
> 2-element Vector{ConstraintRef{Model, MathOptInterface.ConstraintIndex{MathOptInterface.ScalarAffineFunction{Float64}, MathOptInterface.EqualTo{Float64}}, ScalarShape}}:
> x\[1\] + x\[2\] + x\[3\] = 4.0
> x\[1\] - x\[2\] + x\[4\] = 6.0
> 
> julia\> optimize!(model)
> julia(91740,0x100cd8580) malloc: \*\*\* error for object 0xe00000000000000: pointer being freed was not allocated
> julia(91740,0x100cd8580) malloc: \*\*\* set a breakpoint in malloc\_error\_break to debug
> 
> signal (6): Abort trap: 6
> in expression starting at REPL\[9\]:1
> \_\_pthread\_kill at /usr/lib/system/libsystem\_kernel.dylib (unknown line)
> Allocations: 46636441 (Pool: 46623528; Big: 12913); GC: 37
> fish: Job 1, 'julia' terminated by signal SIGABRT (Abort)
> \`\`\`

The solution is not to use Clp on aarch64-darwin. I believe @odow [suggests using HiGHS instead](https://github.com/jump-dev/Clp.jl/issues/131#issuecomment-1291183751).

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [December 26, 2024, 9:38pm UTC](https://discourse.julialang.org/t/clp-0-dependencies-successfully-precompiled-in-4-seconds-107-already-precompiled/124148/6 "2024-12-26T21:38:38Z")

</div>

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

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

```

---

<div class="post-metadata">

**Author:** ![ianshmean](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ianshmean/32/216042_2.png) [@ianshmean](https://discourse.julialang.org/u/ianshmean)\
**Post date:** [December 27, 2024, 2:41pm UTC](https://discourse.julialang.org/t/clp-0-dependencies-successfully-precompiled-in-4-seconds-107-already-precompiled/124148/7 "2024-12-27T14:41:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![anonymous\_user](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/anonymous_user/32/214367_2.png) [@anonymous\_user](https://discourse.julialang.org/u/anonymous_user)\
**Post date:** [December 29, 2024, 7:23am UTC](https://discourse.julialang.org/t/clp-0-dependencies-successfully-precompiled-in-4-seconds-107-already-precompiled/124148/9 "2024-12-29T07:23:18Z")

</div>

Thanks ^^

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [December 29, 2024, 11:09pm UTC](https://discourse.julialang.org/t/clp-0-dependencies-successfully-precompiled-in-4-seconds-107-already-precompiled/124148/10 "2024-12-29T23:09:39Z")

</div>

> 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:

```julia
(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)

```
