Open maximusron opened 2 months ago
Enabling debugging output using export CPPINTEROP_EXTRA_INTERPRETER_ARGS="-mllvm -debug-only=jitcall" causes the compiler instance creation to fail with:
export CPPINTEROP_EXTRA_INTERPRETER_ARGS="-mllvm -debug-only=jitcall"
>>> import cppyy error: error reading 'new' 1 error generated. python: llvm-project/clang/include/clang/Frontend/CompilerInstance.h:506: clang::Sema& clang::CompilerInstance::getSema() const: Assertion `TheSema && "Compiler instance has no Sema object!"' failed.
This is specific to when running cppyy, while running it directly works :
CPPINTEROP_EXTRA_INTERPRETER_ARGS="-mllvm -debug-only=jitcall" CppInterOp/build/unittests/CppInterOp/CppInterOpTests --gtest_filter=FunctionReflectionTest.JitCallAdvanced
Enabling debugging output using
export CPPINTEROP_EXTRA_INTERPRETER_ARGS="-mllvm -debug-only=jitcall"
causes the compiler instance creation to fail with:This is specific to when running cppyy, while running it directly works :