[Pkg-rust-maintainers] Bug#1043122: rust-cargo-outdated FTBFS on i386

Adrian Bunk bunk at debian.org
Sun Aug 6 10:26:54 BST 2023


Source: rust-cargo-outdated
Version: 0.11.1-2
Severity: serious
Tags: ftbfs patch

https://buildd.debian.org/status/fetch.php?pkg=rust-cargo-outdated&arch=i386&ver=0.11.1-2%2Bb2&stamp=1691281459&raw=0

...
   Compiling cargo-outdated v0.11.1 (/<<PKGBUILDDIR>>)
     Running `CARGO=/usr/bin/cargo CARGO_BIN_NAME=cargo-outdated CARGO_CRATE_NAME=cargo_outdated CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='Kevin K. <kbknapp at gmail.com>:Frederick Z. <frederick888 at tsundere.moe>:Ricky H. <ricky.hosfelt at gmail.com>' CARGO_PKG_DESCRIPTION='Cargo subcommand for displaying when dependencies are out of date' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=cargo-outdated CARGO_PKG_REPOSITORY='https://github.com/kbknapp/cargo-outdated.git' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.11.1 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=11 CARGO_PKG_VERSION_PATCH=1 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/release/deps:/usr/lib' rustc --crate-name cargo_outdated --edition=2021 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C opt-level=3 -C lto --cfg 'feature="default"' -C metadata=10150f9b45772b13 -C extra-filename=-10150f9b45772b13 --out-dir /<<PKGBUILDDIR>>/target/i686-unknown-linux-gnu/release/deps --target i686-unknown-linux-gnu -L dependency=/<<PKGBUILDDIR>>/target/i686-unknown-linux-gnu/release/deps -L dependency=/<<PKGBUILDDIR>>/target/release/deps --extern anyhow=/<<PKGBUILDDIR>>/target/i686-unknown-linux-gnu/release/deps/libanyhow-c48d3102a0bce80d.rlib --extern cargo=/<<PKGBUILDDIR>>/target/i686-unknown-linux-gnu/release/deps/libcargo-23903a11b32352ed.rlib --extern clap=/<<PKGBUILDDIR>>/target/i686-unknown-linux-gnu/release/deps/libclap-73d705ff12e8319b.rlib --extern env_logger=/<<PKGBUILDDIR>>/target/i686-unknown-linux-gnu/release/deps/libenv_logger-33bade16531972fd.rlib --extern git2_curl=/<<PKGBUILDDIR>>/target/i686-unknown-linux-gnu/release/deps/libgit2_curl-f2102546b1f137d0.rlib --extern semver=/<<PKGBUILDDIR>>/target/i686-unknown-linux-gnu/release/deps/libsemver-45b6e27d18e6caff.rlib --extern serde=/<<PKGBUILDDIR>>/target/i686-unknown-linux-gnu/release/deps/libserde-5f8a4b63cb9ba203.rlib --extern serde_derive=/<<PKGBUILDDIR>>/target/release/deps/libserde_derive-ec44495953d5a4b9.so --extern serde_json=/<<PKGBUILDDIR>>/target/i686-unknown-linux-gnu/release/deps/libserde_json-dd1c2fa9619d6755.rlib --extern tabwriter=/<<PKGBUILDDIR>>/target/i686-unknown-linux-gnu/release/deps/libtabwriter-80d09d35ad315607.rlib --extern tempfile=/<<PKGBUILDDIR>>/target/i686-unknown-linux-gnu/release/deps/libtempfile-0b2fb83cb6c10a6c.rlib --extern toml=/<<PKGBUILDDIR>>/target/i686-unknown-linux-gnu/release/deps/libtoml-9784df5cff5c540f.rlib -C debuginfo=2 --cap-lints warn -C linker=i686-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/cargo-outdated-0.11.1 --remap-path-prefix /<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry -L native=/<<PKGBUILDDIR>>/target/i686-unknown-linux-gnu/release/build/rustix-cdf51c8d04ee3483/out -L native=/usr/lib/i386-linux-gnu -L native=/usr/lib/i386-linux-gnu -L native=/usr/lib/i386-linux-gnu -L native=/usr/lib/i386-linux-gnu`
LLVM ERROR: out of memory
Allocation failed
error: could not compile `cargo-outdated`



Fix:

--- debian/rules.old	2023-08-06 09:22:33.248596042 +0000
+++ debian/rules	2023-08-06 09:23:00.012581438 +0000
@@ -3,8 +3,8 @@
 %:
 	dh $@ --buildsystem cargo
 
-#lto disabled on these architectures due to address space exhaustion.
-ifneq (,$(filter $(DEB_HOST_ARCH),armhf armel mipsel))
+#lto disabled on 32bit architectures due to address space exhaustion.
+ifeq ($(DEB_HOST_ARCH_BITS), 32)
   LTO=false
 else
   LTO=true



More information about the Pkg-rust-maintainers mailing list