Under Debian bullseye it is hard?/impossible? to install package clang-17-dev. As such, cl-bindgen has no chance of working.
I could try to patch cindex.py etc to work with an older libclang.so version or I would have to build clang-17 stuff from sources.
All this could be avoided, if cl-bindgen had a way to just use the clang compiler (with respective compiler options) to access the ast or whatever it needs to generate the bindings.
On my machine, for example:
clang --version
Debian clang version 11.0.1-2
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
should work, as afaik, the command liine options for clang to export the ir information exist.
This would make the cl-bindgen tool accessible to a wider range of users, who will run into installation trouble as it is.
Added benefit: If you use the clang executable, you can also write the whole thing in Common Lisp, as you need no dependency on the shared library of clang.
Another added benefit: LLVM is a moving target and using the compilers output might be less susceptible to different llvm/clang versions. => less maintenance.
Hint: clang -Xclang -ast-dump -fsyntax-only your_code.cpp
Under Debian bullseye it is hard?/impossible? to install package clang-17-dev. As such, cl-bindgen has no chance of working.
I could try to patch cindex.py etc to work with an older libclang.so version or I would have to build clang-17 stuff from sources.
All this could be avoided, if cl-bindgen had a way to just use the clang compiler (with respective compiler options) to access the ast or whatever it needs to generate the bindings.
On my machine, for example:
should work, as afaik, the command liine options for clang to export the ir information exist.
This would make the cl-bindgen tool accessible to a wider range of users, who will run into installation trouble as it is.
Added benefit: If you use the clang executable, you can also write the whole thing in Common Lisp, as you need no dependency on the shared library of clang.
Another added benefit: LLVM is a moving target and using the compilers output might be less susceptible to different llvm/clang versions. => less maintenance.
Hint:
clang -Xclang -ast-dump -fsyntax-only your_code.cpp