jump-dev/GLPK.jl

v0.13.0 test fails due to incompatible version: libgmpxx.4.dylib

kibaekkim opened this issue · 15 comments

Although travis-ci does not look complaining, I was not able to pass runtests with v0.13.0. The error may be related to gmp artifact.

(@v1.4) pkg> test GLPK
    Testing GLPK
Status `/private/var/folders/sq/w0_5ndd53_vb3fcbzs_6skfw0000gn/T/jl_iFu9JJ/Manifest.toml`
  [6e4b80f9] BenchmarkTools v0.5.0
  [b99e7846] BinaryProvider v0.5.10
  [6e34b625] Bzip2_jll v1.0.6+2
  [523fee87] CodecBzip2 v0.7.2
  [944b1d66] CodecZlib v0.7.0
  [60bf3e95] GLPK v0.13.0
  [e8aa6df9] GLPK_jll v4.64.0+0
  [781609d7] GMP_jll v6.2.0+0
  [cd3eb016] HTTP v0.8.15
  [83e8ac13] IniFile v0.5.0
  [682c06a0] JSON v0.21.0
  [7d188eb4] JSONSchema v0.3.0
  [b8f27783] MathOptInterface v0.9.14
  [739be429] MbedTLS v1.0.2
  [c8ffd9c3] MbedTLS_jll v2.16.0+2
  [d8a4904e] MutableArithmetics v0.2.9
  [bac558e1] OrderedCollections v1.2.0
  [69de0a69] Parsers v1.0.4
  [3bb67fe8] TranscodingStreams v0.9.5
  [a5390f91] ZipFile v0.9.2
  [83775a58] Zlib_jll v1.2.11+10
  [2a0f44e3] Base64
  [ade2ca70] Dates
  [8ba89e20] Distributed
  [b77e0a4c] InteractiveUtils
  [76f85450] LibGit2
  [8f399da3] Libdl
  [37e2e46d] LinearAlgebra
  [56ddb016] Logging
  [d6f4376e] Markdown
  [a63ad114] Mmap
  [44cfe95a] Pkg
  [de0858da] Printf
  [3fa0cd96] REPL
  [9a3f8284] Random
  [ea8e919c] SHA
  [9e88b42a] Serialization
  [6462fe0b] Sockets
  [2f01184e] SparseArrays
  [10745b16] Statistics
  [8dfed614] Test
  [cf7118a7] UUIDs
  [4ec0a83e] Unicode
ERROR: LoadError: LoadError: InitError: could not load library "/Users/kibaekkim/.julia/artifacts/3677b4b693751024a0923d9e7c6d56da89f15b8e/lib/libgmpxx.4.dylib"
dlopen(/Users/kibaekkim/.julia/artifacts/3677b4b693751024a0923d9e7c6d56da89f15b8e/lib/libgmpxx.4.dylib, 1): Library not loaded: @rpath/libgmp.10.dylib
  Referenced from: /Users/kibaekkim/.julia/artifacts/3677b4b693751024a0923d9e7c6d56da89f15b8e/lib/libgmpxx.4.dylib
  Reason: Incompatible library version: libgmpxx.4.dylib requires version 15.0.0 or later, but libgmp.dylib provides version 14.0.0
Stacktrace:
 [1] dlopen(::String, ::UInt32; throw_error::Bool) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/Libdl/src/Libdl.jl:109
 [2] dlopen at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/Libdl/src/Libdl.jl:109 [inlined] (repeats 2 times)
 [3] __init__() at /Users/kibaekkim/.julia/packages/GMP_jll/RM3EG/src/wrappers/x86_64-apple-darwin14-cxx11.jl:59
 [4] _include_from_serialized(::String, ::Array{Any,1}) at ./loading.jl:697
 [5] _require_search_from_serialized(::Base.PkgId, ::String) at ./loading.jl:781
 [6] _require(::Base.PkgId) at ./loading.jl:1006
 [7] require(::Base.PkgId) at ./loading.jl:927
 [8] require(::Module, ::Symbol) at ./loading.jl:922
 [9] include(::Module, ::String) at ./Base.jl:377
 [10] include(::String) at /Users/kibaekkim/.julia/packages/GLPK_jll/HyHuj/src/GLPK_jll.jl:1
 [11] top-level scope at /Users/kibaekkim/.julia/packages/GLPK_jll/HyHuj/src/GLPK_jll.jl:50
 [12] include(::Module, ::String) at ./Base.jl:377
 [13] top-level scope at none:2
 [14] eval at ./boot.jl:331 [inlined]
 [15] eval(::Expr) at ./client.jl:449
 [16] top-level scope at ./none:3
during initialization of module GMP_jll
in expression starting at /Users/kibaekkim/.julia/packages/GLPK_jll/HyHuj/src/wrappers/x86_64-apple-darwin14.jl:4
in expression starting at /Users/kibaekkim/.julia/packages/GLPK_jll/HyHuj/src/GLPK_jll.jl:43
ERROR: LoadError: Failed to precompile GLPK_jll [e8aa6df9-e6ca-548a-97ff-1f85fc5b8b98] to /Users/kibaekkim/.julia/compiled/v1.4/GLPK_jll/Twipq_LipEA.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1272
 [3] _require(::Base.PkgId) at ./loading.jl:1029
 [4] require(::Base.PkgId) at ./loading.jl:927
 [5] require(::Module, ::Symbol) at ./loading.jl:922
 [6] top-level scope at /Users/kibaekkim/.julia/packages/GLPK/oTTtu/src/GLPK.jl:200
 [7] include(::Module, ::String) at ./Base.jl:377
 [8] top-level scope at none:2
 [9] eval at ./boot.jl:331 [inlined]
 [10] eval(::Expr) at ./client.jl:449
 [11] top-level scope at ./none:3
in expression starting at /Users/kibaekkim/.julia/packages/GLPK/oTTtu/src/GLPK.jl:193
ERROR: LoadError: Failed to precompile GLPK [60bf3e95-4087-53dc-ae20-288a0d20c6a6] to /Users/kibaekkim/.julia/compiled/v1.4/GLPK/r6CoY_LipEA.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1272
 [3] _require(::Base.PkgId) at ./loading.jl:1029
 [4] require(::Base.PkgId) at ./loading.jl:927
 [5] require(::Module, ::Symbol) at ./loading.jl:922
 [6] include(::String) at ./client.jl:439
 [7] top-level scope at none:6
in expression starting at /Users/kibaekkim/.julia/packages/GLPK/oTTtu/test/runtests.jl:1
ERROR: Package GLPK errored during testing
odow commented

What is versioninfo()?

julia> versioninfo()
Julia Version 1.4.2
Commit 44fa15b150* (2020-05-23 18:35 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.7.0)
  CPU: Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
odow commented

And ] st?

Weird that 1.4 passing on Travis with near identical platform
https://travis-ci.org/github/JuliaOpt/GLPK.jl/jobs/693169860#L100-L107

nothing much I have..

(@v1.4) pkg> st
Status `~/.julia/environments/v1.4/Project.toml`
  [60bf3e95] GLPK v0.13.0
  [4076af6c] JuMP v0.21.2

I agree... I have also checked the travis logs.. :)

odow commented

I can reproduce this. Must be a *_jll version we're not pinning correctly that was released recently. I'll take a look.

I just got hit by the same issue on Travis for Mac OS with Julia v1.4.2: https://travis-ci.org/github/JuliaPolyhedra/Polyhedra.jl/jobs/699288793#L311-L314

odow commented

I have a fix incoming. As a work-around you can add GMP_jll to version 6.1.2 in your Project.toml.

odow commented

I have two tests failing locally:

    set_lower_bound_twice             |    6     1      1              8
    set_upper_bound_twice             |    6     1      1              8

which I assume are new MOI tests?

Yes, see #138

odow commented

We're now waiting for JuliaRegistries/General#16517

Having the same issue with GLPK and Julia 1.4 in travis CI. @odow When you mentioned 6.1.2 for GMP_jll, is it this v6.1.2+0?

odow commented

Just run ] add GMP_jll@6.1.2 in your project.

Note the real fix is: JuliaRegistries/General#16517

Thanks @odow When would JuliaRegistries/General#16517 be merged?

odow commented

Should be fixed now.

@odow Thanks! The build passes now for Alpine.jl