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 · 2 comments
Open

Debug flags passed as extra args are parsed incorrectly #237

aaronj0 opened this issue Apr 22, 2024 · 2 comments
Labels
good first issue Good for newcomers to-fix

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
Copy link
Contributor

github-actions bot commented Dec 5, 2024

This issue is stale because it has been open for 90 days with no activity.

@github-actions github-actions bot added the stale label Dec 5, 2024
Copy link
Contributor

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 20, 2024
@vgvassilev vgvassilev reopened this Dec 20, 2024
@mcbarton mcbarton added to-fix and removed stale labels Dec 20, 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 to-fix
Projects
None yet
Development

No branches or pull requests

3 participants