You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And this function returns only first one dir - /usr/include/c++/10, skipping the /usr/local/include, /usr/lib64/clang/10.0.0/include and others.
And because I don't have /usr/lib64/clang/10.0.0/include in include paths defined, later I see this error running crystal spec:
In file included from /tmp/.kMdBOGbindgen:1:
In file included from /home/zawertun/tmp/bindgen@Papierkorb/spec/integration/c_wrapper.cpp:1:
In file included from /usr/lib/gcc/x86_64-redhat-linux/10/../../../../include/c++/10/cstdlib:75:
/usr/include/stdlib.h:31:10: fatal error: 'stddef.h' file not found
#include <stddef.h>
^~~~~~~~~~
File stddef.h can be found in the /usr/lib64/clang/10.0.0/include dir, if I add this include manually - crystal spec finishes without errors.
The text was updated successfully, but these errors were encountered:
Merged, thanks! I guess further improvements to this (e.g. possibly using llvm-config to get these flags instead of clang++) can be done through #36 at some later point.
For example I have this flags (https://github.com/Papierkorb/bindgen/blob/master/clang/find_clang.cr#L380), I'll include only
-internal-isystem
part:And this function returns only first one dir -
/usr/include/c++/10
, skipping the/usr/local/include
,/usr/lib64/clang/10.0.0/include
and others.And because I don't have
/usr/lib64/clang/10.0.0/include
in include paths defined, later I see this error runningcrystal spec
:File
stddef.h
can be found in the/usr/lib64/clang/10.0.0/include
dir, if I add this include manually -crystal spec
finishes without errors.The text was updated successfully, but these errors were encountered: