-
Notifications
You must be signed in to change notification settings - Fork 10
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
Python Clang Bindings don't find standard headers on Fedora #193
Comments
jnikula
added a commit
that referenced
this issue
Oct 9, 2023
Apparently libclang (and consequently Clang Python Bindings) does not universally get its system include paths right by default, or the same as clang. The defaults work on Debian, but not on Fedora, for example, and I've been unable to root cause this. Anyway, we already have a helper for querying the system include args from clang, so use it. Fixes #193.
jnikula
added a commit
that referenced
this issue
Oct 9, 2023
Apparently libclang (and consequently Clang Python Bindings) does not universally get its system include paths right by default, or the same as clang. The defaults work on Debian, but not on Fedora, for example, and I've been unable to root cause this. Anyway, we already have a helper for querying the system include args from clang, so use it. Update github workflow while at it, as the examples check now also needs clang. Fixes #193.
jnikula
added a commit
that referenced
this issue
Oct 12, 2023
Apparently libclang (and consequently Clang Python Bindings) does not universally get its system include paths right by default, or the same as clang. The defaults work on Debian, but not on Fedora, for example, and I've been unable to root cause this. Anyway, we already have a helper for querying the system include args from clang, so use it. Update github workflow while at it, as the examples check now also needs clang. Fixes #193.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Recently, we added
#include <stdbool.h>
to a number of tests. It works fine on various versions of Debian.However, on Fedora, it's not found. At least not in the recently added Docker images. Run
make docker-test.fedora-37
to reproduce.Is something missing in the Dockerfiles? Some clang configuration different on Fedora? The header files can be found in
/usr/lib64/clang/15.0.7/include/stdbool.h
.Running
clang
inside the container to figure out include paths gives:hawkmoth test/c/variable.c
inside the container fails withCRITICAL: test/c/variable.c:1: 'stdbool.h' file not found
.Explicitly specifying the include path works:
hawkmoth --clang=-I/usr/lib64/clang/15.0.7/include test/c/variable.c
But Debian does not require that.
The text was updated successfully, but these errors were encountered: