Bug#1145058: sccache FTBFS on 32-bit

Adrian Bunk <[email protected]>
Newsgroups gmane.linux.debian.devel.bugs.rc
Message-ID <178734972529.3059952.128810244871826618.reportbug__6109.55977333418$1787349797$gmane$org@localhost>
Source: sccache
Version: 0.17.0+ds-2
Severity: serious
Tags: ftbfs patch

https://buildd.debian.org/status/logs.php?pkg=sccache&ver=0.17.0%2Bds-2

...
error: failed to run `rustc` to learn about target-specific information

Caused by:
  process didn't exit successfully: `rustc - --crate-name ___ --print=file-names debuginfo=1 --target armv7-unknown-linux-gnueabihf --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=split-debuginfo --print=crate-name --print=cfg -Wwarnings` (exit status: 1)
  --- stderr
  error: multiple input filenames provided (first two filenames are `-` and `debuginfo=1`)

dh_auto_build: error: /usr/share/dh-rust/bin/cargo build returned exit code 101
make: *** [debian/rules:46: binary-arch] Error 25


The following fixes the build on i386 and armhf:

--- sccache-0.17.0+ds/debian/rules	2026-08-17 13:10:13.000000000 +0300
+++ sccache-0.17.0+ds/debian/rules	2026-08-18 19:59:50.000000000 +0300
@@ -13,11 +13,6 @@
 export DEB_CXXFLAGS_MAINT_STRIP=-O2
 endif
 
-# reduce risk of out-of-memory issues during build for weak arches
-ifneq (,$(filter $(DEB_HOST_ARCH),armel armhf i386 mipsel riscv64))
-export RUSTFLAGS += debuginfo=1
-endif
-
 # build binary sccache-dist on supported arches
 # TODO: enable when using safe crates (see bug#1142994)
 #ifneq (,$(filter $(DEB_HOST_ARCH),amd64 arm64))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.