JuliaInterop / Cxx.jl

The Julia C++ Interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

undefined symbol: jl_LLVMContext

HaoxueYue opened this issue · comments

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

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.