Re: LLVM 22 needs bindgen 0.72.1

Burak Emir <[email protected]>
Newsgroups org.kernel.vger.rust-for-linux
Message-ID <CABwQupNjJCX3DqTjyG3o6wK0NktgrgwSPCWe3YLBx4BsZ+FwLA@mail.gmail.com>
Hey Miguel!

On Sun, Jul 19, 2026 at 2:18 PM Miguel Ojeda
<[email protected]> wrote:
> > Updating the toolchains would be nice.
>
> Wait, we don't ship `bindgen` yet in those, no?
>
> i.e. we discussed doing so some time ago, if I recall correctly, but
> it is not the case yet.
>
> Or do you mean something else?
>
> I guess you used the instructions which pick the minimum `bindgen`.

Yes, exactly. I followed the instructions at the bottom of
https://mirrors.edge.kernel.org/pub/tools/llvm/rust/ , specifically:

cargo install --locked --root $llvm_prefix --version
$(scripts/min-tool-version.sh bindgen) bindgen-cli

> Maybe we could add a note there, or simply remove `--version` to
> suggest the latest (which could also be good so that more people test
> the latest).

I also think --latest would be a good default choice.

> > I think we can easily add a
> > check on `rust_is_available.sh` like e.g. the one I had before commit:
> >
> >   ae64324ad5c1 ("rust: rust_is_available: remove warning for `bindgen`
> > < 0.69.5 && libclang >= 19.1")
> >
> > I will do that.
>
> Done:
>
>   https://lore.kernel.org/rust-for-linux/[email protected]/
>

Thanks for taking care of this!

Cheers,
-- Burak
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.