Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clp.jl on Alpine Linux, x86_64-linux-musl-gcc8-cxx11 is not supported #2945

Closed
peteristhegreat opened this issue May 7, 2021 · 1 comment

Comments

@peteristhegreat
Copy link

Starting with the julia v1.3.1 image of alpine (docker pull fredrikekre/julia-alpine:1.3.1), I am getting this error for the Clp.jl package

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.3.1 (2019-12-30)
 _/ |\__'_|_|_|\__'_|  |  github.com/fredrikekre/julia-alpine build
|__/                   |

(v1.3) pkg> build Clp
  Building Clp → `~/.julia/packages/Clp/IBQzB/deps/build.log`
┌ Error: Error building `Clp`:
│ ERROR: LoadError: Your platform ("x86_64-alpine-linux-musl", parsed as "x86_64-linux-musl-gcc8-cxx11") is not supported by this package!
│ Stacktrace:
│  [1] error(::String) at ./error.jl:33
│  [2] top-level scope at /root/.julia/packages/Clp/IBQzB/deps/build.jl:76
│  [3] include at ./boot.jl:328 [inlined]
│  [4] include_relative(::Module, ::String) at ./loading.jl:1105
│  [5] include(::Module, ::String) at ./Base.jl:31
│  [6] include(::String) at ./client.jl:424
│  [7] top-level scope at none:5
│ in expression starting at /root/.julia/packages/Clp/IBQzB/deps/build.jl:67
└ @ Pkg.Operations /julia-source/usr/share/julia/stdlib/v1.3/Pkg/src/backwards_compatible_isolation.jl:649

https://github.com/JuliaBinaryWrappers/Clp_jll.jl/

And its wrapper page directed me here.

uname -a
Linux d1a3a7507047 4.19.121-linuxkit #1 SMP Thu Jan 21 15:36:34 UTC 2021 x86_64 Linux

Note that CMake.jl had issues, too, so I did apk add cmake, and symlinked that version of cmake into the CMake.jl deps/usr/bin folder... but that isn't a Yggdrasil issue directly.

@giordano
Copy link
Member

giordano commented May 7, 2021

There is absolutely no way the error

Your platform ("x86_64-alpine-linux-musl", parsed as "x86_64-linux-musl-gcc8-cxx11") is not supported by this package!

is thrown by Clp_jll.jl. You're likely using an old version of Clp.jl which didn't use JLL packages at all. Besides that, JLL packages on musl systems work (mostly) only on Julia v1.6, apart from a serious bug in their loader: JuliaLang/julia#40556.

Note also that the official Julia Docker image now has Alpine Linux among supported platforms, so no need to use third-party images.

@giordano giordano closed this as completed May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants