Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1035879 > unrolled thread
| Started by | Lucas Nussbaum <lucas@debian.org> |
|---|---|
| First post | 2020-12-05 14:40 +0100 |
| Last post | 2020-12-05 21:30 +0100 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.debian.bugs.dist
Bug#976532: rust-cpuid-bool: FTBFS: dh_auto_test: error: /usr/share/cargo/bin/cargo test --all returned exit code 101 Lucas Nussbaum <lucas@debian.org> - 2020-12-05 14:40 +0100
Bug#976532: rust-cpuid-bool: FTBFS: compile_error!("This crate works only on my computer"); Geert Stappers <stappers@stappers.nl> - 2020-12-05 15:30 +0100
Bug#976532: [Pkg-rust-maintainers] Bug#976532: marked as done (rust-cpuid-bool: FTBFS: compile_error!("This crate works only on my computer"); ) Geert Stappers <stappers@stappers.nl> - 2020-12-05 21:30 +0100
| From | Lucas Nussbaum <lucas@debian.org> |
|---|---|
| Date | 2020-12-05 14:40 +0100 |
| Subject | Bug#976532: rust-cpuid-bool: FTBFS: dh_auto_test: error: /usr/share/cargo/bin/cargo test --all returned exit code 101 |
| Message-ID | <BiFXc-4ss-71@gated-at.bofh.it> |
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.
[toc] | [next] | [standalone]
| From | Geert Stappers <stappers@stappers.nl> |
|---|---|
| Date | 2020-12-05 15:30 +0100 |
| Subject | Bug#976532: rust-cpuid-bool: FTBFS: compile_error!("This crate works only on my computer"); |
| Message-ID | <BiGJs-5hr-7@gated-at.bofh.it> |
| In reply to | #1035879 |
Control: retitle -1 rust-cpuid-bool: FTBFS: compile_error!("This crate works only on my computer");
On Sat, Dec 05, 2020 at 02:28:14PM +0100, Lucas Nussbaum wrote:
> Source: rust-cpuid-bool
> Severity: serious
> Justification: FTBFS on arm64
Yes, severity serious is justified.
> Hi,
>
> During a rebuild of all packages in sid,
> your package failed to build on arm64
>
> > 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`.
> >
Qouting https://crates.io/crates/cpuid-bool
lightweight and efficient no-std compatible alternative to the
is_x86_feature_detected macro
Reality says there are instruction set architectures others than x86.
In other words:
This bugreport is about enabling other architectures
than a currently dominant architecture.
Regards
Geert Stappers
--
Silence is hard to parse
[toc] | [prev] | [next] | [standalone]
| From | Geert Stappers <stappers@stappers.nl> |
|---|---|
| Date | 2020-12-05 21:30 +0100 |
| Subject | Bug#976532: [Pkg-rust-maintainers] Bug#976532: marked as done (rust-cpuid-bool: FTBFS: compile_error!("This crate works only on my computer"); ) |
| Message-ID | <BiMlP-JA-9@gated-at.bofh.it> |
| In reply to | #1035879 |
On Sat, Dec 05, 2020 at 07:45:29PM +0000, Debian Bug Tracking System wrote:
> Date: Sat, 5 Dec 2020 14:28:14 +0100
> From: Lucas Nussbaum <lucas@debian.org>
> To: submit@bugs.debian.org
> Subject: rust-cpuid-bool: FTBFS: dh_auto_test: error: /usr/share/cargo/bin/cargo test --all returned exit code 101
> Source: rust-cpuid-bool
> Version: 0.1.2-2
> Severity: serious
> Justification: FTBFS on arm64
>
> Hi,
>
> Relevant part (hopefully):
> > 20 | compile_error!("This crate works only on x86 and x86-64 targets.");
> > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >
> > error: aborting due to previous error
> Date: Sat, 5 Dec 2020 20:42:02 +0100
> From: Lucas Nussbaum <lucas@debian.org>
> To: 976532-done@bugs.debian.org
> Subject: Re: Bug#976532: rust-cpuid-bool: FTBFS: dh_auto_test: error: /usr/share/cargo/bin/cargo test --all returned exit code 101
> User-Agent: Mutt/1.10.1 (2018-07-13)
>
> Version: 0.1.2-3
>
> Actually, this was fixed in 0.1.2-3 (by disabling tests) before I filed the bug.
It allows us to find a better fix
Regards
Geert Stappers
--
Silence is hard to parse
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.bugs.dist
csiph-web