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

Debug flags passed as extra args are parsed incorrectly #237

Open
aaronj0 opened this issue Apr 22, 2024 · 0 comments
Open

Debug flags passed as extra args are parsed incorrectly #237

aaronj0 opened this issue Apr 22, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@aaronj0
Copy link
Collaborator

aaronj0 commented Apr 22, 2024

Enabling debugging output using export CPPINTEROP_EXTRA_INTERPRETER_ARGS="-mllvm -debug-only=jitcall"
causes the compiler instance creation to fail with:

>>> 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
@aaronj0 aaronj0 added the good first issue Good for newcomers label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant