Bug#1150039: resources: FTBFS: error[E0308]: mismatched types

Jeremy Bícha jbicha at debian.org
Mon Oct 5 13:45:29 BST 2026


On Mon, Oct 5, 2026 at 2:41 PM Santiago Vila <sanvila at debian.org> wrote:
>
> Package: src:resources
> Version: 51.0+ds-2
> Severity: serious
> Tags: ftbfs forky sid
>
> Dear maintainer:
>
> During a rebuild of all packages in unstable, this package failed to build.
>
> Below you will find the last part of the build log (probably the most
> relevant part, but not necessarily). If required, the full build log
> is available here:
>
> https://people.debian.org/~sanvila/build-logs/202610/
>
> About the archive rebuild: The build was made on virtual machines from AWS,
> using sbuild and a reduced chroot with only build-essential packages.
>
> If you cannot reproduce the bug please contact me privately, as I
> am willing to provide ssh access to a virtual machine where the bug is
> fully reproducible.
>
> If this is really a bug in one of the build-depends, please use
> reassign and add an affects on src:resources, so that this is still
> visible in the BTS web page for this package.
>
> Thanks.
>
> --------------------------------------------------------------------------------
> [...]
> [thiserror 1.0.69] cargo:rustc-check-cfg=cfg(thiserror_nightly_testing)
>    Compiling derive_builder_macro v0.20.2
>      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=derive_b [too-long-redacted] rn proc_macro --cap-lints warn`
> [thiserror 1.0.69] cargo:rerun-if-env-changed=RUSTC_BOOTSTRAP
>      Running `CARGO=/usr/bin/cargo CARGO_CFG_FEATURE=serde,s [too-long-redacted] 72203bea474/build-script-build`
> error[E0308]: mismatched types
>   --> /<<PKGBUILDDIR>>/debian/cargo_registry/derive_builder_macro-0.20.2/src/lib.rs:28:45
>    |
> 28 |     derive_builder_core::builder_for_struct(ast).into()
>    |     --------------------------------------- ^^^ expected `syn::derive::DeriveInput`, found `DeriveInput`
>    |     |
>    |     arguments to this function are incorrect
>    |
> note: there are multiple different versions of crate `syn` in the dependency graph
>   --> /<<PKGBUILDDIR>>/debian/cargo_registry/syn-3.0.6/src/macros.rs:36:22
>    |
> 36 |           $(#[$attr])* $pub $struct $name $body
>    |                        ^^^^^^^^^^^^^^^^^^^^^^^^ this is the expected type
>    |
>   ::: /<<PKGBUILDDIR>>/debian/cargo_registry/syn-2.0.119/src/macros.rs:36:22
>    |
> 36 |           $(#[$attr])* $pub $struct $name $body
>    |                        ------------------------ this is the found type
>    |
>   ::: /<<PKGBUILDDIR>>/debian/cargo_registry/syn-3.0.6/src/derive.rs:10:1
>    |
> 10 | / ast_struct! {
> 11 | |     /// Data structure sent to a `proc_macro_derive` macro.
> 12 | |     #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
> 13 | |     pub struct DeriveInput {
> ...  |
> 20 | | }
>    | |_- in this macro invocation
>    = help: you can use `cargo tree` to explore your dependency tree
> note: function defined here
>   --> /<<PKGBUILDDIR>>/debian/cargo_registry/derive_builder_core-0.20.2/src/lib.rs:57:8
>    |
> 57 | pub fn builder_for_struct(ast: syn::DeriveInput) -> proc_macro2::TokenStream {
>    |        ^^^^^^^^^^^^^^^^^^
>    = note: this error originates in the macro `ast_struct` (in Nightly builds, run with -Z macro-backtrace for more info)
>
> For more information about this error, try `rustc --explain E0308`.
> error: could not compile `derive_builder_macro` (lib) due to 1 previous error
>
> Caused by:
>   process didn't exit successfully: `CARGO=/usr/bin/cargo CA [too-long-redacted] ap-lints warn` (exit status: 1)
> warning: build failed, waiting for other jobs to finish...
> [nutype_macros 0.7.0] cargo:rerun-if-changed=build.rs
> [nutype_macros 0.7.0] cargo:rustc-cfg=ERROR_IN_CORE
> while executing ['/usr/share/cargo/bin/cargo', 'build', '--manifest-path', '/<<PKGBUILDDIR>>/Cargo.toml', '--target-dir', '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src', '--profile', 'release']
> [46/51] /usr/bin/msgfmt -o po/zh_TW/LC_MESSAGES/resources.mo ../po/zh_TW.po
> FAILED: [code=101] src/release
> /usr/bin/meson --internal exe --unpickle /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/meson-private/meson_exe_cargo_98629a245bbae40fcb7e9e2942431326ec355f5d.dat
> ninja: build stopped: subcommand failed.
> dh_auto_build: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j2 -v returned exit code 101
> make: *** [debian/rules:13: binary] Error 25
> dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
> --------------------------------------------------------------------------------

Simon,

This appears to be triggered by the rust-derive-builder-macro update today.

Thank you,
Jeremy Bícha



More information about the pkg-gnome-maintainers mailing list