vgvassilev / cling

The interactive C++ interpreter Cling
https://rawgit.com/vgvassilev/cling/master/www/index.html
Other
1.76k stars 102 forks source link

Trying to load LLVM shared library with pragma kills kernel #212

Closed aadityanaik closed 3 years ago

aadityanaik commented 3 years ago

I am trying to work with the LLVM-8 C++ API. So far, I am able to add the include and library paths successfully

#pragma cling add_include_path("/usr/lib/llvm-8/include")
#pragma cling add_library_path("/usr/lib/llvm-8/lib")

However, when trying to load the shared library libLLVM-8.so, the kernel dies and I get a pop-up saying "The kernel appears to have died. It will restart automatically."

I use the pragma command to load the library

#pragma cling load("LLVM-8")

Am I missing some setup required to load external libraries?

Also, I am not sure if this is relevant, but running jupyter notebook --debug gives the following log every time the kernel dies:

Warning in cling::IncrementalParser::CheckABICompatibility():
  Possible C++ standard library mismatch, compiled with __GLIBCXX__ '20180125'
  Extraction of runtime standard library version was: '20191114'
aadityanaik commented 3 years ago

Accidentally opened the issue in the wrong repo. Sorry about that