[Pkg-rust-maintainers] Bug#976532: rust-cpuid-bool: FTBFS: dh_auto_test: error: /usr/share/cargo/bin/cargo test --all returned exit code 101

Lucas Nussbaum lucas at debian.org
Sat Dec 5 13:28:14 GMT 2020


Source: rust-cpuid-bool
Version: 0.1.2-2
Severity: serious
Justification: FTBFS on arm64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201205 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on arm64 (I don't know if it also fails on amd64).

Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_test -- test --all
> debian cargo wrapper: options, profiles, parallel: ['parallel=4'] [] ['-j4']
> debian cargo wrapper: rust_type, gnu_type: aarch64-unknown-linux-gnu, aarch64-linux-gnu
> debian cargo wrapper: running subprocess (['env', 'RUST_BACKTRACE=1', '/usr/bin/cargo', '-Zavoid-dev-deps', 'test', '--verbose', '--verbose', '-j4', '--target', 'aarch64-unknown-linux-gnu', '--all'],) {}
>    Compiling cpuid-bool v0.1.2 (/<<PKGBUILDDIR>>)
>      Running `CARGO_PKG_REPOSITORY='https://github.com/RustCrypto/utils' CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_NAME=cpuid-bool CARGO_PKG_VERSION_PRE= CARGO_PKG_HOMEPAGE= CARGO_PKG_VERSION_MAJOR=0 LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_MINOR=1 CARGO=/usr/bin/cargo CARGO_PKG_DESCRIPTION='A lightweight no-std compatible alternative to is_x86_feature_detected' CARGO_PKG_VERSION=0.1.2 CARGO_PKG_AUTHORS='RustCrypto Developers' rustc --crate-name cpuid_bool --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=638d73400b0fbf8b -C extra-filename=-638d73400b0fbf8b --out-dir /<<PKGBUILDDIR>>/target/aarch64-unknown-linux-gnu/debug/deps --target aarch64-unknown-linux-gnu -C incremental=/<<PKGBUILDDIR>>/target/aarch64-unknown-linux-gnu/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/aarch64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps -C debuginfo=2 --cap-lints warn -C linker=aarch64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/cpuid-bool-0.1.2`
>      Running `CARGO_PKG_REPOSITORY='https://github.com/RustCrypto/utils' CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_NAME=cpuid-bool CARGO_PKG_VERSION_PRE= CARGO_PKG_HOMEPAGE= CARGO_PKG_VERSION_MAJOR=0 LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_MINOR=1 CARGO=/usr/bin/cargo CARGO_PKG_DESCRIPTION='A lightweight no-std compatible alternative to is_x86_feature_detected' CARGO_PKG_VERSION=0.1.2 CARGO_PKG_AUTHORS='RustCrypto Developers' rustc --crate-name cpuid_bool --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link -C debuginfo=2 --test -C metadata=9bdbf0620c157365 -C extra-filename=-9bdbf0620c157365 --out-dir /<<PKGBUILDDIR>>/target/aarch64-unknown-linux-gnu/debug/deps --target aarch64-unknown-linux-gnu -C incremental=/<<PKGBUILDDIR>>/target/aarch64-unknown-linux-gnu/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/aarch64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps -C debuginfo=2 --cap-lints warn -C linker=aarch64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/cpuid-bool-0.1.2`
> error: This crate works only on x86 and x86-64 targets.
>   --> src/lib.rs:20:1
>    |
> 20 | compile_error!("This crate works only on x86 and x86-64 targets.");
>    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> error: This crate works only on x86 and x86-64 targets.
>   --> src/lib.rs:20:1
>    |
> 20 | compile_error!("This crate works only on x86 and x86-64 targets.");
>    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> error: aborting due to previous error
> 
> error: could not compile `cpuid-bool`.
> 
> Caused by:
>   process didn't exit successfully: `CARGO_PKG_REPOSITORY='https://github.com/RustCrypto/utils' CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_NAME=cpuid-bool CARGO_PKG_VERSION_PRE= CARGO_PKG_HOMEPAGE= CARGO_PKG_VERSION_MAJOR=0 LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_MINOR=1 CARGO=/usr/bin/cargo CARGO_PKG_DESCRIPTION='A lightweight no-std compatible alternative to is_x86_feature_detected' CARGO_PKG_VERSION=0.1.2 CARGO_PKG_AUTHORS='RustCrypto Developers' rustc --crate-name cpuid_bool --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=638d73400b0fbf8b -C extra-filename=-638d73400b0fbf8b --out-dir /<<PKGBUILDDIR>>/target/aarch64-unknown-linux-gnu/debug/deps --target aarch64-unknown-linux-gnu -C incremental=/<<PKGBUILDDIR>>/target/aarch64-unknown-linux-gnu/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/aarch64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps -C debuginfo=2 --cap-lints warn -C linker=aarch64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/cpuid-bool-0.1.2` (exit code: 1)
> warning: build failed, waiting for other jobs to finish...
> error: aborting due to previous error
> 
> error: could not compile `cpuid-bool`.
> 
> Caused by:
>   process didn't exit successfully: `CARGO_PKG_REPOSITORY='https://github.com/RustCrypto/utils' CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_NAME=cpuid-bool CARGO_PKG_VERSION_PRE= CARGO_PKG_HOMEPAGE= CARGO_PKG_VERSION_MAJOR=0 LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_MINOR=1 CARGO=/usr/bin/cargo CARGO_PKG_DESCRIPTION='A lightweight no-std compatible alternative to is_x86_feature_detected' CARGO_PKG_VERSION=0.1.2 CARGO_PKG_AUTHORS='RustCrypto Developers' rustc --crate-name cpuid_bool --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link -C debuginfo=2 --test -C metadata=9bdbf0620c157365 -C extra-filename=-9bdbf0620c157365 --out-dir /<<PKGBUILDDIR>>/target/aarch64-unknown-linux-gnu/debug/deps --target aarch64-unknown-linux-gnu -C incremental=/<<PKGBUILDDIR>>/target/aarch64-unknown-linux-gnu/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/aarch64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps -C debuginfo=2 --cap-lints warn -C linker=aarch64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/cpuid-bool-0.1.2` (exit code: 1)
> dh_auto_test: error: /usr/share/cargo/bin/cargo test --all returned exit code 101

The full build log is available from:
   http://qa-logs.debian.net/2020/12/05/rust-cpuid-bool_0.1.2-2_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with me
so that we can identify if something relevant changed in the meantime.

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Pkg-rust-maintainers mailing list