vgvassilev / cling

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

Loading libLLVM using pragma kills kernel #211

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?

aadityanaik commented 3 years ago

Accidentally duplicated issue