LLVM 22 needs bindgen 0.72.1

Burak Emir <[email protected]>
Newsgroups org.kernel.vger.rust-for-linux
Message-ID <CABwQupNfMAJOGqRM9ke6tj4f53dCCsBDKU7Vp+zf8mwk7bqt8Q@mail.gmail.com>
Hey Nathan, Miguel, anyone who may run into this,

I just filed https://github.com/Rust-for-Linux/linux/issues/1247

I couldn't find this described anywhere, so posting here for wider
reach. Maybe it helps save some time.

I have run into this with the slim LLVM toolchains [1] which use LLVM
22. It could happen with any toolchain LLVM 22.

- bindgen 0.71.1 with a libclang LLVM 22 will erroneously generate
opaque types as bindings. This then leads to build errors "field does
not exist".

- Using bindgen 0.72.1 works fine.

It would be great if the slim LLVM toolchains could be updated to
bindgen 0.72.1

cheers,
Burak

[1] https://mirrors.edge.kernel.org/pub/tools/llvm/rust/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.