#1149481 rust-regalloc2: FTBFS: failed to select a version for the requirement `bincode = "^1.3.3"`

#1149481#5
Date:
2026-09-29 23:06:51 UTC
From:
To:
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/202609/

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

Thanks.
--------------------------------------------------------------------------------
[...]
  Installing regalloc2-tool v0.0.0 (/<<PKGBUILDDIR>>/regalloc2-tool)
error: failed to compile `regalloc2-tool v0.0.0 (/<<PKGBUILDDIR>>/regalloc2-tool)`, intermediate artifacts can be found at `/<<PKGBUILDDIR>>/target`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_BUILD_BUILD_DIR` to that path.

Caused by:
  failed to select a version for the requirement `bincode = "^1.3.3"`
  candidate versions found which didn't match: 2.0.1
  location searched: directory source `/<<PKGBUILDDIR>>/debian/cargo_registry` (which is replacing registry `crates-io`)
  required by package `regalloc2-tool v0.0.0 (/<<PKGBUILDDIR>>/regalloc2-tool)`
  perhaps a crate was updated and forgotten to be re-vendored?
Traceback (most recent call last):
  File "/usr/share/dh-rust/bin/cargo", line 265, in <module>
    sys.exit(main(*sys.argv[1:]))
             ~~~~^^^^^^^^^^^^^^^
  File "/usr/share/dh-rust/bin/cargo", line 255, in main
    return install(os.getenv("DESTDIR", ""),
        os.environ["DEB_CARGO_CRATE"],
    ...<2 lines>...
        os.getenv("DEB_CARGO_INSTALL_PREFIX", "/usr"),
        *newargs)
  File "/usr/share/dh-rust/bin/cargo", line 128, in install
    logrun(["env", "RUST_BACKTRACE=1",
    ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        # set CARGO_TARGET_DIR so build products are saved in target/
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
        ([crate, "--vers", version] if crate_in_registry else path_args) +
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        ["--root", install_target], check=True)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/dh-rust/bin/cargo", line 81, in logrun
    return subprocess.run(*args, **kwargs)
           ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/subprocess.py", line 578, in run
    raise CalledProcessError(retcode, process.args,
                             output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['env', 'RUST_BACKTRACE=1', 'CARGO_TARGET_DIR=/<<PKGBUILDDIR>>/target', '/usr/bin/cargo', '-Zavoid-dev-deps', 'install', '--profile', 'release', '--verbose', '--verbose', '-j1', '--target', 'x86_64-unknown-linux-gnu', '--path', 'regalloc2-tool', '--root', 'debian/regalloc2-tool/usr']' returned non-zero exit status 101.
dh_auto_install: error: env DEB_CARGO_CRATE=regalloc2-tool_0.0.0 DEB_BUILDDIR=target DESTDIR=debian/regalloc2-tool /usr/share/dh-rust/bin/cargo install --path regalloc2-tool returned exit code 1
make: *** [debian/rules:21: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1149481#10
Date:
2026-10-22 13:50:07 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
rust-regalloc2, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1149481@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jonas Smedegaard <dr@jones.dk> (supplier of updated rust-regalloc2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 22 Oct 2026 15:22:00 +0200
Source: rust-regalloc2
Architecture: source
Version: 0.12.2+ds-2
Distribution: unstable
Urgency: medium
Maintainer: Jonas Smedegaard <dr@jones.dk>
Changed-By: Jonas Smedegaard <dr@jones.dk>
Closes: 1149481
Changes:
 rust-regalloc2 (0.12.2+ds-2) unstable; urgency=medium
 .
   * update watch file: use Custom-Version, and add comment why
   * tighten build- and autopkgtest-dependencies;
     closes: bug#1149481, thanks to Santiago Vila
   * use debhelper compatibility level 14 (not 13)
Checksums-Sha1:
 701422fa5673381c0650c6b5851af7ecd596f504 2846 rust-regalloc2_0.12.2+ds-2.dsc
 b31ea6a9d6e758bf66539b000bc62675283996be 6464 rust-regalloc2_0.12.2+ds-2.debian.tar.xz
 f508fe05d7d5c282dd51eb81584215a40532c810 13651 rust-regalloc2_0.12.2+ds-2_amd64.buildinfo
Checksums-Sha256:
 fd8d752b1e66e1176646c66ecba35047a3973ab618b311d891bec0f667e27743 2846 rust-regalloc2_0.12.2+ds-2.dsc
 991efb5d37df782bc7fa07661d4e608943de926587a798601591f7b8f8132666 6464 rust-regalloc2_0.12.2+ds-2.debian.tar.xz
 5d13acd9ecd269f60c1c953be9b65f5b768d5a4eb0809b02f48b256fb397b7cf 13651 rust-regalloc2_0.12.2+ds-2_amd64.buildinfo
Files:
 9be7a6ee5eb3914f68910ca51b7c1e7b 2846 rust optional rust-regalloc2_0.12.2+ds-2.dsc
 3bed989c4272839f6f66858c08399a62 6464 rust optional rust-regalloc2_0.12.2+ds-2.debian.tar.xz
 a2fcf6cb10eb0a09f07aa8b973d4359e 13651 rust optional rust-regalloc2_0.12.2+ds-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJABAEBCgAqFiEEn+Ppw2aRpp/1PMaELHwxRsGgASEFAmraD3IMHGRyQGpvbmVz
LmRrAAoJECx8MUbBoAEh7hIP/A3hKx9mgr7ZvzGUPpMSWxRvBbdJelkJyz6QbGXG
uGNvp+3n1aTUXh7BWoPTT/8ovA1qjnt8+Q8rvi8LElO3s6klCw6AXSxfvAPueBGr
HMWuOL32tmpz0Gsa+su+2WXcQohEr/NrIAsfEkyx3rLqwygE9N46hUipQCDh9ktk
Gk3LzjXY15Wnxoo9vGcOGKb3bsTSvQK+EZoiSDy85SY2xShMrr4EqI80Yj8fprsI
YMAtM8o4bPfqKyDYKIC4FkxMNLwWNXojY4ppabLB1TJIKbAppNxEX/L2MD9dDjPT
lrkwP0d9O7/Jz2H5vqs7/NqGYfvIOuPWDrCr/hu8EMUcr9qhHTrWmDnnkXP29Gks
WnnO0ZoeV7GcXjIJQEO33S577lRN7ReIo0sRKQ8sJIiPUx5WWXC2VObLPQQY8fXT
XXWr0Eb6dBYxSIZlwoPozrne8CVwYWVdaEWNwmrGj//jOJRHsNcQn24trJAgTh0u
FGRYD32U2bwshs2jOvbtgusYq6uTtuMKRFxGYpib0+FfmDOeWwd7wgaSfPZRFm9j
hgyo57nGq3MlMHxKq1sVjnj19C3MvIdXDLvWX+wTcq6wCjH95gr/zCMnE716qZaZ
ZNCwMMRM99LDPswrIYrDR9hjGyX5mohIensUK/VYXwcBNN2bRr1TaaLe7DHcQNt5
oekx
=jv2y
-----END PGP SIGNATURE-----