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

Julia 1.4 library compatibility problem on Linux. #250

Closed
rbehrends opened this issue Apr 8, 2020 · 2 comments
Closed

Julia 1.4 library compatibility problem on Linux. #250

rbehrends opened this issue Apr 8, 2020 · 2 comments

Comments

@rbehrends
Copy link

rbehrends commented Apr 8, 2020

When I try to use Polymake.jl with Julia 1.4 on Linux, I get the following error:

julia> using Polymake
   [ Info: Precompiling Polymake [d720cf60-89b5-51f5-aff5-213f193123e7]
   ERROR: LoadError: could not load library "/home/behrends/.julia/packages/Polymake/kIMyn/src/../deps/src/libpolymake.so"
   /home/behrends/julia-1.4.0/bin/../lib/julia/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /home/behrends/.julia/packages/Polymake/kIMyn/src/../deps/src/libpolymake.so)
   Stacktrace:
    [1] dlopen(::String, ::UInt32; throw_error::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Libdl/src/Libdl.jl:109
    [2] dlopen at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Libdl/src/Libdl.jl:109 [inlined]
    [3] readmodule(::String, ::Symbol, ::Module, ::Nothing) at /home/behrends/.julia/packages/CxxWrap/lDNAy/src/CxxWrap.jl:663
    [4] wrapmodule(::String, ::Symbol, ::Module, ::Nothing) at /home/behrends/.julia/packages/CxxWrap/lDNAy/src/CxxWrap.jl:670
    [5] top-level scope at /home/behrends/.julia/packages/Polymake/kIMyn/src/Polymake.jl:41
    [6] include(::Module, ::String) at ./Base.jl:377
    [7] top-level scope at none:2
    [8] eval at ./boot.jl:331 [inlined]
    [9] eval(::Expr) at ./client.jl:449
    [10] top-level scope at ./none:3
   in expression starting at /home/behrends/.julia/packages/Polymake/kIMyn/src/Polymake.jl:41
   ERROR: Failed to precompile Polymake [d720cf60-89b5-51f5-aff5-213f193123e7] to /home/behrends/.julia/compiled/v1.4/Polymake/QizyK_3MmYl.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

The libstdc++.so.6 library is included as part of the standard Julia distribution and there seems to be a version conflict here that may come from it overriding the system libstdc++.

This problem does not occur on macOS.

@kalmarek
Copy link
Contributor

kalmarek commented Apr 8, 2020

this is known; try
mv ~/julia-1.4.0/julia/libstdc++.so.6 ~/julia-1.4.0/julia/libstdc++.so.6.orig
so that julia uses systems libstdc++

see also JuliaLang/julia#34276

@kalmarek
Copy link
Contributor

this should be fixed by #252

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