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

Lucas Nussbaum lucas at debian.org
Sun Oct 23 14:15:34 BST 2022


Source: rust-semver
Version: 1.0.4-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20221023 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_test -- test --all
> debian cargo wrapper: options, profiles, parallel: ['parallel=8'] [] ['-j8']
> debian cargo wrapper: rust_type, gnu_type: x86_64-unknown-linux-gnu, x86_64-linux-gnu
> debian cargo wrapper: running subprocess (['env', 'RUST_BACKTRACE=1', '/usr/bin/cargo', '-Zavoid-dev-deps', 'test', '--verbose', '--verbose', '-j8', '--target', 'x86_64-unknown-linux-gnu', '--all'],) {}
>    Compiling semver v1.0.4 (/<<PKGBUILDDIR>>)
>      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='David Tolnay <dtolnay at gmail.com>' CARGO_PKG_DESCRIPTION='Parser and evaluator for Cargo'\''s flavor of Semantic Versioning' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=semver CARGO_PKG_REPOSITORY='https://github.com/dtolnay/semver' CARGO_PKG_VERSION=1.0.4 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=4 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' rustc --crate-name build_script_build --edition=2018 build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=04aabbe59f90bb38 -C extra-filename=-04aabbe59f90bb38 --out-dir /<<PKGBUILDDIR>>/target/debug/build/semver-04aabbe59f90bb38 -C incremental=/<<PKGBUILDDIR>>/target/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/debug/deps`
>      Running `/<<PKGBUILDDIR>>/target/debug/build/semver-04aabbe59f90bb38/build-script-build`
>      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=semver CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='David Tolnay <dtolnay at gmail.com>' CARGO_PKG_DESCRIPTION='Parser and evaluator for Cargo'\''s flavor of Semantic Versioning' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=semver CARGO_PKG_REPOSITORY='https://github.com/dtolnay/semver' CARGO_PKG_VERSION=1.0.4 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=4 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' OUT_DIR=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/build/semver-17178e06f6bc6eeb/out rustc --crate-name semver --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=f6c77920f0fed280 -C extra-filename=-f6c77920f0fed280 --out-dir /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps -C debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/semver-1.0.4`
>      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=semver CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='David Tolnay <dtolnay at gmail.com>' CARGO_PKG_DESCRIPTION='Parser and evaluator for Cargo'\''s flavor of Semantic Versioning' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=semver CARGO_PKG_REPOSITORY='https://github.com/dtolnay/semver' CARGO_PKG_VERSION=1.0.4 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=4 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' OUT_DIR=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/build/semver-17178e06f6bc6eeb/out rustc --crate-name semver --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=6388cf4ade6b3c93 -C extra-filename=-6388cf4ade6b3c93 --out-dir /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps -C debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/semver-1.0.4`
>      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=test_version_req CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='David Tolnay <dtolnay at gmail.com>' CARGO_PKG_DESCRIPTION='Parser and evaluator for Cargo'\''s flavor of Semantic Versioning' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=semver CARGO_PKG_REPOSITORY='https://github.com/dtolnay/semver' CARGO_PKG_VERSION=1.0.4 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=4 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_TARGET_TMPDIR=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/tmp LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' OUT_DIR=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/build/semver-17178e06f6bc6eeb/out rustc --crate-name test_version_req --edition=2018 tests/test_version_req.rs --error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=aa506e81cd6dc0ae -C extra-filename=-aa506e81cd6dc0ae --out-dir /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern semver=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libsemver-f6c77920f0fed280.rlib -C debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/semver-1.0.4`
>      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=test_version CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='David Tolnay <dtolnay at gmail.com>' CARGO_PKG_DESCRIPTION='Parser and evaluator for Cargo'\''s flavor of Semantic Versioning' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=semver CARGO_PKG_REPOSITORY='https://github.com/dtolnay/semver' CARGO_PKG_VERSION=1.0.4 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=4 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_TARGET_TMPDIR=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/tmp LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' OUT_DIR=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/build/semver-17178e06f6bc6eeb/out rustc --crate-name test_version --edition=2018 tests/test_version.rs --error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=5d631d4b1ab04ad3 -C extra-filename=-5d631d4b1ab04ad3 --out-dir /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern semver=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libsemver-f6c77920f0fed280.rlib -C debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/semver-1.0.4`
>      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=test_identifier CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='David Tolnay <dtolnay at gmail.com>' CARGO_PKG_DESCRIPTION='Parser and evaluator for Cargo'\''s flavor of Semantic Versioning' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=semver CARGO_PKG_REPOSITORY='https://github.com/dtolnay/semver' CARGO_PKG_VERSION=1.0.4 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=4 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_TARGET_TMPDIR=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/tmp LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' OUT_DIR=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/build/semver-17178e06f6bc6eeb/out rustc --crate-name test_identifier --edition=2018 tests/test_identifier.rs --error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=3f7a579afad524bc -C extra-filename=-3f7a579afad524bc --out-dir /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern semver=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libsemver-f6c77920f0fed280.rlib -C debuginfo=2 --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/semver-1.0.4`
>     Finished test [unoptimized + debuginfo] target(s) in 1.76s
>      Running `/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/semver-6388cf4ade6b3c93`
> 
> running 0 tests
> 
> test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
> 
>      Running `/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/test_identifier-3f7a579afad524bc`
> 
> running 2 tests
> test test_eq ... ok
> test test_new ... ok
> 
> test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s
> 
>      Running `/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/test_version-5d631d4b1ab04ad3`
> 
> running 10 tests
> test test_align ... ok
> test test_display ... ok
> test test_eq ... ok
> test test_ge ... ok
> test test_gt ... ok
> test test_le ... ok
> test test_lt ... ok
> test test_ne ... ok
> test test_spec_order ... ok
> test test_parse ... ok
> 
> test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
> 
>      Running `/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/test_version_req-aa506e81cd6dc0ae`
> 
> running 17 tests
> test test_any ... ok
> test test_cargo3202 ... ok
> test test_default ... ok
> test test_digit_after_wildcard ... ok
> test test_caret ... ok
> test test_eq_hash ... ok
> test test_exact ... ok
> test test_greater_than ... ok
> test test_less_than ... ok
> test test_logical_or ... ok
> test test_multiple ... ok
> test test_pre ... ok
> test test_whitespace_delimited_comparator_sets ... ok
> test test_tilde ... ok
> test test_wildcard ... ok
> test test_parsing_pre_and_build_metadata_see_issue_217 ... ok
> test test_parse_errors ... FAILED
> 
> failures:
> 
> ---- test_parse_errors stdout ----
> thread 'test_parse_errors' panicked at 'assertion failed: `(left == right)`
>   left: `"unexpected character '\\0' while parsing major version number"`,
>  right: `"unexpected character '\\u{0}' while parsing major version number"`', tests/test_version_req.rs:323:5
> stack backtrace:
>    0: rust_begin_unwind
>              at /usr/src/rustc-1.61.0/library/std/src/panicking.rs:584:5
>    1: core::panicking::panic_fmt
>              at /usr/src/rustc-1.61.0/library/core/src/panicking.rs:143:14
>    2: core::panicking::assert_failed_inner
>    3: core::panicking::assert_failed
>              at /usr/src/rustc-1.61.0/library/core/src/panicking.rs:182:5
>    4: test_version_req::util::assert_to_string
>              at /usr/share/cargo/registry/semver-1.0.4/tests/util/mod.rs:38:5
>    5: test_version_req::test_parse_errors
>              at /usr/share/cargo/registry/semver-1.0.4/tests/test_version_req.rs:323:5
>    6: test_version_req::test_parse_errors::{{closure}}
>              at /usr/share/cargo/registry/semver-1.0.4/tests/test_version_req.rs:321:1
>    7: core::ops::function::FnOnce::call_once
>              at /usr/src/rustc-1.61.0/library/core/src/ops/function.rs:227:5
>    8: core::ops::function::FnOnce::call_once
>              at /usr/src/rustc-1.61.0/library/core/src/ops/function.rs:227:5
> note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
> 
> 
> failures:
>     test_parse_errors
> 
> test result: FAILED. 16 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
> 
> error: test failed, to rerun pass '--test test_version_req'
> 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/2022/10/23/rust-semver_1.0.4-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20221023;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20221023&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

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 mine
so that we can identify if something relevant changed in the meantime.



More information about the Pkg-rust-maintainers mailing list