🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.rc
Article #3847

Bug#1154798: rust-samply-api: FTBFS: error[E0308]: mismatched types

#3847
From: Santiago Vila
Date: Sun, 22 Nov 2026 12:00
68 lines
4550 bytes
Package: src:rust-samply-api
Version: 0.24.0-1
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-api, 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")),
    |                                                       +++++++++++++++++

   Compiling yaxpeax-arm v0.3.1
     Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=yaxpeax_ [too-long-redacted] stry=/usr/share/cargo/registry`
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 build returned exit code 101
make: *** [debian/rules:3: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
Technical Details
Message-ID: <O2eoF-dsNe-11@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From: Santiago Vila <sanvila@debian.org>
Newsgroups: linux.debian.bugs.rc
Subject: Bug#1154798: rust-samply-api: FTBFS: error[E0308]: mismatched types
Date: Sun, 22 Nov 2026 13:00:01 +0100
Message-ID: <O2eoF-dsNe-11@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org  Sun Nov 22 11:58:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Santiago Vila <sanvila@debian.org>, 1154798@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: sanvila@debian.org, pkg-rust-maintainers@alioth-lists.debian.net
X-Debian-Pr-Message: report 1154798
X-Debian-Pr-Package: src:rust-samply-api
X-Debian-Pr-Keywords: forky ftbfs sid
X-Debian-Pr-Source: rust-samply-api
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/839177
List-ID: <debian-bugs-rc.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-rc/>
Approved: robomod@news.nic.it
Lines: 68
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sun, 22 Nov 2026 11:54:54 +0000
X-Original-Message-ID: <E1xV69m-005hX3-1b@paradis.debian.org>