Source: rust-byte-slice-cast
Version: 1.2.1-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20240702 ftbfs-trixie

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, lto: ['parallel=8'] [] 
> ['-j8'] 0
> 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 byte-slice-cast v1.2.1 (/<<PKGBUILDDIR>>)
>      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=byte_slice_cast 
> CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='Sebastian Dröge 
> <sebast...@centricular.com>' CARGO_PKG_DESCRIPTION='Safely cast bytes slices 
> from/to slices of built-in fundamental numeric types' CARGO_PKG_HOMEPAGE='' 
> CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' 
> CARGO_PKG_NAME=byte-slice-cast CARGO_PKG_README=README.md 
> CARGO_PKG_REPOSITORY='https://github.com/sdroege/bytes-num-slice-cast' 
> CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=1.2.1 CARGO_PKG_VERSION_MAJOR=1 
> CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=1 CARGO_PKG_VERSION_PRE='' 
> CARGO_PRIMARY_PACKAGE=1 CARGO_RUSTC_CURRENT_DIR=/<<PKGBUILDDIR>> 
> LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/target/debug/deps rustc --crate-name 
> byte_slice_cast --edition=2018 src/lib.rs --error-format=json 
> --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib 
> --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 
> 'feature="default"' --cfg 'feature="std"' -C metadata=5505555d559da2ec -C 
> extra-filename=-5505555d559da2ec --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 -C strip=none 
> --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro 
> --remap-path-prefix 
> /<<PKGBUILDDIR>>=/usr/share/cargo/registry/byte-slice-cast-1.2.1 
> --remap-path-prefix 
> /<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry`
>      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=byte_slice_cast 
> CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='Sebastian Dröge 
> <sebast...@centricular.com>' CARGO_PKG_DESCRIPTION='Safely cast bytes slices 
> from/to slices of built-in fundamental numeric types' CARGO_PKG_HOMEPAGE='' 
> CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' 
> CARGO_PKG_NAME=byte-slice-cast CARGO_PKG_README=README.md 
> CARGO_PKG_REPOSITORY='https://github.com/sdroege/bytes-num-slice-cast' 
> CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=1.2.1 CARGO_PKG_VERSION_MAJOR=1 
> CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=1 CARGO_PKG_VERSION_PRE='' 
> CARGO_PRIMARY_PACKAGE=1 CARGO_RUSTC_CURRENT_DIR=/<<PKGBUILDDIR>> 
> LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/target/debug/deps rustc --crate-name 
> byte_slice_cast --edition=2018 src/lib.rs --error-format=json 
> --json=diagnostic-rendered-ansi,artifacts,future-incompat 
> --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test --cfg 
> 'feature="default"' --cfg 'feature="std"' -C metadata=6d167038305f1211 -C 
> extra-filename=-6d167038305f1211 --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 -C strip=none 
> --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro 
> --remap-path-prefix 
> /<<PKGBUILDDIR>>=/usr/share/cargo/registry/byte-slice-cast-1.2.1 
> --remap-path-prefix 
> /<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry`
>     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.27s
>      Running `CARGO=/usr/bin/cargo CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> 
> CARGO_PKG_AUTHORS='Sebastian Dröge <sebast...@centricular.com>' 
> CARGO_PKG_DESCRIPTION='Safely cast bytes slices from/to slices of built-in 
> fundamental numeric types' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT 
> CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=byte-slice-cast 
> CARGO_PKG_README=README.md 
> CARGO_PKG_REPOSITORY='https://github.com/sdroege/bytes-num-slice-cast' 
> CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=1.2.1 CARGO_PKG_VERSION_MAJOR=1 
> CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=1 CARGO_PKG_VERSION_PRE='' 
> LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps:/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug:/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib'
>  
> /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/byte_slice_cast-6d167038305f1211`
> 
> running 18 tests
> test tests::f64 ... ok
> test tests::f32 ... ok
> test tests::u16 ... ok
> test tests::u16_empty_from_byte_slice ... ok
> test tests::u16_box_slice ... ok
> test tests::u16_empty_to_byte_slice ... ok
> test tests::u16_mut ... ok
> test tests::u32 ... ok
> test tests::u16_mut_box_slice ... ok
> test tests::u16_mut_vec ... ok
> test tests::u64 ... ok
> test tests::u16_vec ... ok
> test tests::unit ... ok
> test tests::u16_error_string ... ok
> test tests::usize ... ok
> test tests::u8_array ... ok
> test tests::u8 ... ok
> test tests::u16_array ... FAILED
> 
> failures:
> 
> ---- tests::u16_array stdout ----
> thread 'tests::u16_array' panicked at src/lib.rs:986:9:
> assertion `left == right` failed
>   left: Err(AlignmentMismatch { dst_type: "[u16; N]", dst_minimum_alignment: 
> 2 })
>  right: Err(AlignmentMismatch { dst_type: "[u16 ; N]", dst_minimum_alignment: 
> 2 })
> stack backtrace:
>    0: rust_begin_unwind
>              at /usr/src/rustc-1.79.0/library/std/src/panicking.rs:652:5
>    1: core::panicking::panic_fmt
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:72:14
>    2: core::panicking::assert_failed_inner
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:409:17
>    3: core::panicking::assert_failed
>              at /usr/src/rustc-1.79.0/library/core/src/panicking.rs:364:5
>    4: byte_slice_cast::tests::u16_array
>              at 
> /usr/share/cargo/registry/byte-slice-cast-1.2.1/src/lib.rs:986:9
>    5: byte_slice_cast::tests::u16_array::{{closure}}
>              at 
> /usr/share/cargo/registry/byte-slice-cast-1.2.1/src/lib.rs:976:19
>    6: core::ops::function::FnOnce::call_once
>              at /usr/src/rustc-1.79.0/library/core/src/ops/function.rs:250:5
>    7: core::ops::function::FnOnce::call_once
>              at /usr/src/rustc-1.79.0/library/core/src/ops/function.rs:250:5
> note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose 
> backtrace.
> 
> 
> failures:
>     tests::u16_array
> 
> test result: FAILED. 17 passed; 1 failed; 0 ignored; 0 measured; 0 filtered 
> out; finished in 0.04s
> 
> error: test failed, to rerun pass `--lib`
> 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/2024/07/02/rust-byte-slice-cast_1.2.1-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240702;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240702&fusertaguser=lu...@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 mark 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.

Reply via email to