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

undefined symbol: jl_LLVMContext #498

Closed
HaoxueYue opened this issue Apr 13, 2022 · 1 comment
Closed

undefined symbol: jl_LLVMContext #498

HaoxueYue opened this issue Apr 13, 2022 · 1 comment

Comments

@HaoxueYue
Copy link

julia> versioninfo()
Julia Version 1.7.2
Commit bf53498635* (2022-02-06 15:21 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: AMD Ryzen 5 4600H with Radeon Graphics
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, znver2)
  (@v1.7) pkg> precompile
  Precompiling project...
  ✗ Cxx
    0 dependencies successfully precompiled in 1 seconds (25 already precompiled)
  
  ERROR: The following 1 direct dependency failed to precompile:
  
  Cxx [a0b5b9ef-44b7-5148-a2d1-f6db19f3c3d2]
  
  Failed to precompile Cxx [a0b5b9ef-44b7-5148-a2d1-f6db19f3c3d2] to /home/haoxue/.julia/compiled/v1.7/Cxx/jl_hw06EQ.
  ERROR: LoadError: could not load library "/home/~/.julia/packages/Cxx/1RaOv/src/../deps/usr/lib/libcxxffi"
  ~/.julia/packages/Cxx/1RaOv/src/../deps/usr/lib/libcxxffi.so: undefined symbol: jl_LLVMContext
  Stacktrace:
   [1] dlopen
     @ ./libdl.jl:117 [inlined]
   [2] init_libcxxffi()
     @ Cxx.CxxCore ~/.julia/packages/Cxx/1RaOv/src/initialization.jl:23
   [3] top-level scope
     @ ~/.julia/packages/Cxx/1RaOv/src/initialization.jl:25
   [4] include(x::String)
     @ Cxx.CxxCore ~/.julia/packages/Cxx/1RaOv/src/Cxx.jl:144
   [5] top-level scope
     @ ~/.julia/packages/Cxx/1RaOv/src/Cxx.jl:170
   [6] top-level scope (repeats 2 times)
     @ none:1
  in expression starting at /home/~/.julia/packages/Cxx/1RaOv/src/initialization.jl:25
  in expression starting at /home/~/.julia/packages/Cxx/1RaOv/src/Cxx.jl:142
@Gnimuc
Copy link
Member

Gnimuc commented Apr 13, 2022

https://github.com/JuliaInterop/Cxx.jl#installation:

Please, note that Cxx.jl only works (out of the box) currently with Julia 1.1.x to 1.3.x, i.e. with no currently supported Julia, while those versions can still be downloaded at Julialang.org.

@Gnimuc Gnimuc closed this as completed Apr 13, 2022
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