Cbc.jl icon indicating copy to clipboard operation
Cbc.jl copied to clipboard

Support for Apple M1

Open lyinch opened this issue 3 years ago • 3 comments

I tried using Cbc and JuMP but get a double free error on an M1 macbook pro:

julia> using Cbc
julia> using JuMP
julia> model = Model(Cbc.Optimizer)
julia(6797,0x100a88580) malloc: *** error for object 0xe00000000000000: pointer being freed was not allocated
julia(6797,0x100a88580) malloc: *** set a breakpoint in malloc_error_break to debug
signal (6): Abort trap: 6
in expression starting at REPL[3]:1
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 7410580 (Pool: 7408535; Big: 2045); GC: 5
zsh: abort      /Applications/Julia-1.7.app/Contents/Resources/julia/bin/julia

I use Julia Version 1.7.2 (2022-02-06)

lyinch avatar Apr 24 '22 18:04 lyinch

The underlying issue is probably: https://github.com/jump-dev/Clp.jl/issues/131.

M1 support in Julia is still Tier 3: https://julialang.org/downloads/#supported_platforms.

Use Rosetta, or use HiGHS.jl instead.

odow avatar Apr 24 '22 22:04 odow

@odow do we have any plan to support Cbc on apple silicon? Thanks!

mzy2240 avatar Feb 16 '24 01:02 mzy2240

No plan. Problem also https://github.com/jump-dev/Clp.jl/issues/131.

My long-term hope is that a new v2 release of https://github.com/coin-or/Clp is made. That will fix a number of bugs and simplify the build system. That might fix the issue.

Until then, use HiGHS. It is faster, works on M2, and is MIT licensed.

odow avatar Feb 16 '24 01:02 odow