[Pkg-rust-maintainers] Bug#1154406: rust-samply: FTBFS: error[E0308]: mismatched types

Santiago Vila sanvila at debian.org
Wed Nov 18 18:53:39 GMT 2026


Package: src:rust-samply
Version: 0.13.1-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/202611/

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:rust-samply, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
   --> /usr/share/cargo/registry/samply-symbols-0.24.1/src/symbol_map_object.rs:164:29
    |
164 |                     (export.address() - base_address) as u32,
    |                             ^^^^^^^ method not found in `Result<object::Export<'_>, object::Error>`

error[E0308]: mismatched types
   --> /usr/share/cargo/registry/samply-symbols-0.24.1/src/symbol_map_object.rs:165:49
    |
165 |                     FullSymbolListEntry::Export(export),
    |                     --------------------------- ^^^^^^ expected `Export<'_>`, found `Result<Export<'_>, Error>`
    |                     |
    |                     arguments to this enum variant are incorrect
    |
    = note: expected struct `object::Export<'_>`
                 found enum `Result<object::Export<'_>, object::Error>`
note: tuple variant defined here
   --> /usr/share/cargo/registry/samply-symbols-0.24.1/src/symbol_map_object.rs:34:5
    |
 34 |     Export(object::Export<'a>),
    |     ^^^^^^
help: consider using `Result::expect` to unwrap the `Result<object::Export<'_>, object::Error>` value, panicking if the value is a `Result::Err`
    |
165 |                     FullSymbolListEntry::Export(export.expect("REASON")),
    |                                                       +++++++++++++++++

Some errors have detailed explanations: E0027, E0277, E0308, E0599.
For more information about an error, try `rustc --explain E0027`.
error: could not compile `samply-symbols` (lib) due to 51 previous errors

Caused by:
  process didn't exit successfully: `CARGO=/usr/bin/cargo CA [too-long-redacted] _64-linux-gnu` (exit status: 1)
warning: build failed, waiting for other jobs to finish...
dh_auto_test: error: /usr/share/cargo/bin/cargo test --all returned exit code 101
make[1]: *** [debian/rules:6: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:3: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------



More information about the Pkg-rust-maintainers mailing list