Package: rust-bindgen Version: 0.60.1-2 Severity: normal Dear maintainer,
in Ubuntu we are using LLVM-16 already, and I came across an FTBFS[0] in src:rust-nettle-sys[1] that, after some troubleshooting, showed it was only failing to build when built with rust-bindgen 0.60.x. [nettle-sys 2.2.0] thread 'main' panicked at '"aes_ctx_union_(unnamed_at_/usr/include/nettle/aes_h_150_3)" is not a valid Ident', /<<PKGBUILDDIR>>/debian/cargo_registry/proc-macro2-1.0.65/src/fallback.rs:791:9 If I remove the src:rust-nettle-sys patch[2] that changes the bindgen dependency, the build then uses a newer rust-bindgen from upstream (0.63.0) and works. Going over upstream's rust-bindgen repository[3] I found a bug[4] that started manifesting itself with llvm-16, and that's what I'm seeing when building src:rust-nettle-sys with rust-bindgen 0.60.1. Applying the patch from the PR[5] linked in that bug report to src:rust-bindgen and installing the resulting packages fixes the build of src:rust-nettle-sys. I would kindly ask to apply that patch in debian's src:rust-bindgen package, or perhaps updated to rust-bindgen 0.62.0 or higher (latest version is currently 0.66.1), to avoid problems when Debian moves to LLVM-16 as default. In Ubuntu, I'll probably apply the patch, to avoid becoming too different from debian for the time being. Thanks! 0. https://bugs.launchpad.net/ubuntu/+source/rust-nettle-sys/+bug/2030886 1. https://bugs.launchpad.net/ubuntu/+source/rust-nettle-sys/+bug/2030886 2. https://salsa.debian.org/rust-team/debcargo-conf/-/blob/master/src/nettle-sys/debian/patches/0002-Relax-dependency-on-bindgen.patch 3. https://github.com/rust-lang/rust-bindgen 4. https://github.com/rust-lang/rust-bindgen/issues/2312 5. https://github.com/rust-lang/rust-bindgen/pull/2316