[Pkg-rust-maintainers] Bug#1072140: rust-bytecodec: FTBFS: error: doctest failed

Santiago Vila sanvila at debian.org
Wed May 29 00:38:10 BST 2024


Package: src:rust-bytecodec
Version: 0.4.15-1
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary --buildsystem cargo
    dh_update_autotools_config -O--buildsystem=cargo
    dh_autoreconf -O--buildsystem=cargo
    dh_auto_configure -O--buildsystem=cargo
debian cargo wrapper: options, profiles, parallel, lto: ['parallel=1'] [] ['-j1'] 0
debian cargo wrapper: rust_type, gnu_type: x86_64-unknown-linux-gnu, x86_64-linux-gnu
debian cargo wrapper: linking /usr/share/cargo/registry/* into /<<PKGBUILDDIR>>/debian/cargo_registry/
    dh_auto_build -O--buildsystem=cargo
    debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_test -- test --all
debian cargo wrapper: options, profiles, parallel, lto: ['parallel=1'] [] ['-j1'] 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', '-j1', '--target', 'x86_64-unknown-linux-gnu', '--all'],) {}
    Compiling proc-macro2 v1.0.81
      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/proc-macro2-1.0.81 CARGO_PKG_AUTHORS='David Tolnay <dtolnay at gmail.com>:Alex Crichton <alex at alexcrichton.com>' CARGO_PKG_DESCRIPTION='A substitute implementation of the compiler'\''s `proc_macro` API to decouple token-based libraries from the procedural macro use case.' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=proc-macro2 CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/dtolnay/proc-macro2' CARGO_PKG_RUST_VERSION=1.56 CARGO_PKG_VERSION=1.0.81 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=81 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' rustc --crate-name build_script_build --edition=2021 /<<PKGBUILDDIR>>/debian/cargo_registry/proc-macro2-1.0.81/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="proc-macro"' -C metadata=0e64e948c39d5c0d -C extra-filename=-0e64e948c39d5c0d --out-dir /<<PKGBUILDDIR>>/target/debug/build/proc-macro2-0e64e948c39d5c0d -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --cap-lints warn`
      Running `/<<PKGBUILDDIR>>/target/debug/build/proc-macro2-0e64e948c39d5c0d/build-script-build`
[proc-macro2 1.0.81] cargo:rustc-cfg=no_literal_byte_character
[proc-macro2 1.0.81] cargo:rustc-cfg=no_literal_c_string
[proc-macro2 1.0.81] cargo:rerun-if-changed=build/probe.rs
[proc-macro2 1.0.81] cargo:rustc-cfg=wrap_proc_macro
[proc-macro2 1.0.81] cargo:rerun-if-env-changed=RUSTC_BOOTSTRAP
    Compiling unicode-ident v1.0.12
      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=unicode_ident CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/unicode-ident-1.0.12 CARGO_PKG_AUTHORS='David Tolnay <dtolnay at gmail.com>' CARGO_PKG_DESCRIPTION='Determine whether characters have the XID_Start or XID_Continue properties according to Unicode Standard Annex #31' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='(MIT OR Apache-2.0) AND Unicode-DFS-2016' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=unicode-ident CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/dtolnay/unicode-ident' CARGO_PKG_RUST_VERSION=1.31 CARGO_PKG_VERSION=1.0.12 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=12 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' rustc --crate-name unicode_ident --edition=2018 /<<PKGBUILDDIR>>/debian/cargo_registry/unicode-ident-1.0.12/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 -C metadata=be436016487c1153 -C extra-filename=-be436016487c1153 --out-dir /<<PKGBUILDDIR>>/target/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --cap-lints warn`
      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=proc_macro2 CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/proc-macro2-1.0.81 CARGO_PKG_AUTHORS='David Tolnay <dtolnay at gmail.com>:Alex Crichton <alex at alexcrichton.com>' CARGO_PKG_DESCRIPTION='A substitute implementation of the compiler'\''s `proc_macro` API to decouple token-based libraries from the procedural macro use case.' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=proc-macro2 CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/dtolnay/proc-macro2' CARGO_PKG_RUST_VERSION=1.56 CARGO_PKG_VERSION=1.0.81 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=81 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' OUT_DIR=/<<PKGBUILDDIR>>/target/debug/build/proc-macro2-aa88d37dad334d9e/out rustc --crate-name proc_macro2 --edition=2021 /<<PKGBUILDDIR>>/debian/cargo_registry/proc-macro2-1.0.81/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="proc-macro"' -C metadata=08d7df21fb843a2a -C extra-filename=-08d7df21fb843a2a --out-dir /<<PKGBUILDDIR>>/target/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern unicode_ident=/<<PKGBUILDDIR>>/target/debug/deps/libunicode_ident-be436016487c1153.rmeta --cap-lints warn --cfg no_literal_byte_character --cfg no_literal_c_string --cfg wrap_proc_macro`
    Compiling syn v1.0.109
      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/syn-1.0.109 CARGO_PKG_AUTHORS='David Tolnay <dtolnay at gmail.com>' CARGO_PKG_DESCRIPTION='Parser for Rust source code' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=syn CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/dtolnay/syn' CARGO_PKG_RUST_VERSION=1.31 CARGO_PKG_VERSION=1.0.109 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=109 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' rustc --crate-name build_script_build --edition=2018 /<<PKGBUILDDIR>>/debian/cargo_registry/syn-1.0.109/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="clone-impls"' --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="parsing"' --cfg 'feature="printing"' --cfg 'feature="proc-macro"' --cfg 'feature="quote"' -C metadata=bedcd7a935e335ee -C extra-filename=-bedcd7a935e335ee --out-dir /<<PKGBUILDDIR>>/target/debug/build/syn-bedcd7a935e335ee -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --cap-lints warn`
      Running `/<<PKGBUILDDIR>>/target/debug/build/syn-bedcd7a935e335ee/build-script-build`
[syn 1.0.109] cargo:rustc-cfg=syn_disable_nightly_tests
    Compiling quote v1.0.36
      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=quote CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/quote-1.0.36 CARGO_PKG_AUTHORS='David Tolnay <dtolnay at gmail.com>' CARGO_PKG_DESCRIPTION='Quasi-quoting macro quote'\!'(...)' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=quote CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/dtolnay/quote' CARGO_PKG_RUST_VERSION=1.56 CARGO_PKG_VERSION=1.0.36 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=36 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' rustc --crate-name quote --edition=2018 /<<PKGBUILDDIR>>/debian/cargo_registry/quote-1.0.36/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="proc-macro"' -C metadata=e0b9dae82b540322 -C extra-filename=-e0b9dae82b540322 --out-dir /<<PKGBUILDDIR>>/target/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern proc_macro2=/<<PKGBUILDDIR>>/target/debug/deps/libproc_macro2-08d7df21fb843a2a.rmeta --cap-lints warn`
      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=syn CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/syn-1.0.109 CARGO_PKG_AUTHORS='David Tolnay <dtolnay at gmail.com>' CARGO_PKG_DESCRIPTION='Parser for Rust source code' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=syn CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/dtolnay/syn' CARGO_PKG_RUST_VERSION=1.31 CARGO_PKG_VERSION=1.0.109 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=109 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' OUT_DIR=/<<PKGBUILDDIR>>/target/debug/build/syn-cf5867c445388f5c/out rustc --crate-name syn --edition=2018 /<<PKGBUILDDIR>>/debian/cargo_registry/syn-1.0.109/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="clone-impls"' --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="parsing"' --cfg 'feature="printing"' --cfg 'feature="proc-macro"' --cfg 'feature="quote"' -C metadata=e22266214edae685 -C extra-filename=-e22266214edae685 --out-dir /<<PKGBUILDDIR>>/target/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern proc_macro2=/<<PKGBUILDDIR>>/target/debug/deps/libproc_macro2-08d7df21fb843a2a.rmeta --extern quote=/<<PKGBUILDDIR>>/target/debug/deps/libquote-e0b9dae82b540322.rmeta --extern unicode_ident=/<<PKGBUILDDIR>>/target/debug/deps/libunicode_ident-be436016487c1153.rmeta --cap-lints warn --cfg syn_disable_nightly_tests`
    Compiling trackable_derive v1.0.0
      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=trackable_derive CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/trackable_derive-1.0.0 CARGO_PKG_AUTHORS='Takeru Ohta <phjgt308 at gmail.com>' CARGO_PKG_DESCRIPTION='Custom derive for `trackable` crate' CARGO_PKG_HOMEPAGE='https://github.com/sile/trackable_derive' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=trackable_derive CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/sile/trackable_derive' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=1.0.0 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' rustc --crate-name trackable_derive /<<PKGBUILDDIR>>/debian/cargo_registry/trackable_derive-1.0.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C embed-bitcode=no -C debuginfo=2 -C metadata=a6e35f93507dd77a -C extra-filename=-a6e35f93507dd77a --out-dir /<<PKGBUILDDIR>>/target/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern quote=/<<PKGBUILDDIR>>/target/debug/deps/libquote-e0b9dae82b540322.rlib --extern syn=/<<PKGBUILDDIR>>/target/debug/deps/libsyn-e22266214edae685.rlib --extern proc_macro --cap-lints warn`
    Compiling trackable v1.3.0
      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=trackable CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/trackable-1.3.0 CARGO_PKG_AUTHORS='Takeru Ohta <phjgt308 at gmail.com>' CARGO_PKG_DESCRIPTION='This library provides a way to track objects manually as an alternative to mechanisms like backtracing' CARGO_PKG_HOMEPAGE='https://github.com/sile/trackable' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=trackable CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/sile/trackable' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=1.3.0 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=3 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' rustc --crate-name trackable /<<PKGBUILDDIR>>/debian/cargo_registry/trackable-1.3.0/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 -C metadata=008bb81a960c448b -C extra-filename=-008bb81a960c448b --out-dir /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -L dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern trackable_derive=/<<PKGBUILDDIR>>/target/debug/deps/libtrackable_derive-a6e35f93507dd77a.so --cap-lints warn -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/bytecodec-0.4.15 --remap-path-prefix /<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry`
    Compiling byteorder v1.5.0
      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=byteorder CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/byteorder-1.5.0 CARGO_PKG_AUTHORS='Andrew Gallant <jamslam at gmail.com>' CARGO_PKG_DESCRIPTION='Library for reading/writing numbers in big-endian and little-endian.' CARGO_PKG_HOMEPAGE='https://github.com/BurntSushi/byteorder' CARGO_PKG_LICENSE='Unlicense OR MIT' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=byteorder CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/BurntSushi/byteorder' CARGO_PKG_RUST_VERSION=1.60 CARGO_PKG_VERSION=1.5.0 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=5 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' rustc --crate-name byteorder --edition=2021 /<<PKGBUILDDIR>>/debian/cargo_registry/byteorder-1.5.0/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=b3cdae0ec9beffa9 -C extra-filename=-b3cdae0ec9beffa9 --out-dir /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -L dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --cap-lints warn -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/bytecodec-0.4.15 --remap-path-prefix /<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry`
    Compiling bytecodec v0.4.15 (/<<PKGBUILDDIR>>)
      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=bytecodec CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='Takeru Ohta <phjgt308 at gmail.com>' CARGO_PKG_DESCRIPTION='A tiny framework for implementing encoders/decoders of byte-oriented protocols' CARGO_PKG_HOMEPAGE='https://github.com/sile/bytecodec' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=bytecodec CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/sile/bytecodec' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.4.15 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=4 CARGO_PKG_VERSION_PATCH=15 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' rustc --crate-name bytecodec --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 -C metadata=d3896cde3747a7a4 -C extra-filename=-d3896cde3747a7a4 --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 byteorder=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libbyteorder-b3cdae0ec9beffa9.rmeta --extern trackable=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libtrackable-008bb81a960c448b.rmeta -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/bytecodec-0.4.15 --remap-path-prefix /<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry`
      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=bytecodec CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='Takeru Ohta <phjgt308 at gmail.com>' CARGO_PKG_DESCRIPTION='A tiny framework for implementing encoders/decoders of byte-oriented protocols' CARGO_PKG_HOMEPAGE='https://github.com/sile/bytecodec' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=bytecodec CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/sile/bytecodec' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.4.15 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=4 CARGO_PKG_VERSION_PATCH=15 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' rustc --crate-name bytecodec --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 -C metadata=8288a2bbc66a2f32 -C extra-filename=-8288a2bbc66a2f32 --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 byteorder=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libbyteorder-b3cdae0ec9beffa9.rlib --extern trackable=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libtrackable-008bb81a960c448b.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/bytecodec-0.4.15 --remap-path-prefix /<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry`
     Finished test [unoptimized + debuginfo] target(s) in 15.80s
      Running `CARGO=/usr/bin/cargo CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='Takeru Ohta <phjgt308 at gmail.com>' CARGO_PKG_DESCRIPTION='A tiny framework for implementing encoders/decoders of byte-oriented protocols' CARGO_PKG_HOMEPAGE='https://github.com/sile/bytecodec' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=bytecodec CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/sile/bytecodec' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.4.15 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=4 CARGO_PKG_VERSION_PATCH=15 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/bytecodec-8288a2bbc66a2f32`

running 29 tests
test byte_count::test::it_works ... ok
test bytes::test::bytes_decoder_works ... ok
test bytes::test::utf8_encoder_works ... ok
test combinator::test::and_then_works ... ok
test combinator::test::collect_works ... ok
test combinator::test::collectn_works ... ok
test combinator::test::decoder_length_works ... ok
test combinator::test::decoder_max_bytes_works ... ok
test combinator::test::decoder_slice_works ... ok
test combinator::test::encoder_length_works ... ok
test combinator::test::encoder_max_bytes_works ... ok
test combinator::test::encoder_slice_works ... ok
test combinator::test::maybe_eos_works ... ok
test combinator::test::peekable_works ... ok
test combinator::test::repeat_works ... ok
test decode::test::decode_from_bytes_works ... ok
test encode::test::encode_into_bytes_works ... ok
test fixnum::test::fixnum_works ... ok
test io::test::decode_from_read_buf_works ... ok
test io::test::encode_to_write_buf_works ... ok
test io::test::read_from_read_buf_works ... ok
test io::test::write_to_write_buf_works ... ok
test null::test::null_decoder_works ... ok
test null::test::null_encoder_works ... ok
test padding::test::padding_decoder_works ... ok
test padding::test::padding_encoder_works ... ok
test slice::tests::owned_slice_works ... ok
test tuple::test::tuple_decoder_works ... ok
test tuple::test::tuple_encoder_works ... ok

test result: ok. 29 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

    Doc-tests bytecodec
      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=bytecodec CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='Takeru Ohta <phjgt308 at gmail.com>' CARGO_PKG_DESCRIPTION='A tiny framework for implementing encoders/decoders of byte-oriented protocols' CARGO_PKG_HOMEPAGE='https://github.com/sile/bytecodec' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=bytecodec CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/sile/bytecodec' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.4.15 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=4 CARGO_PKG_VERSION_PATCH=15 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' rustdoc --edition=2018 --crate-type lib --crate-name bytecodec --test src/lib.rs --test-run-directory /<<PKGBUILDDIR>> --target x86_64-unknown-linux-gnu -L dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern bytecodec=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libbytecodec-d3896cde3747a7a4.rlib --extern byteorder=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libbyteorder-b3cdae0ec9beffa9.rlib --extern trackable=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libtrackable-008bb81a960c448b.rlib -C embed-bitcode=no --error-format human`

running 86 tests
test src/bytes.rs - bytes::BytesDecoder (line 183) ... ok
test src/bytes.rs - bytes::BytesEncoder (line 11) ... ok
test src/bytes.rs - bytes::CopyableBytesDecoder (line 95) ... ok
test src/bytes.rs - bytes::RemainingBytesDecoder (line 273) ... ok
test src/bytes.rs - bytes::Utf8Decoder (line 401) ... ok
test src/bytes.rs - bytes::Utf8Encoder (line 348) ... ok
test src/decode.rs - decode::DecodeExt::and_then (line 221) ... ok
test src/decode.rs - decode::DecodeExt::collect (line 243) ... ok
test src/decode.rs - decode::DecodeExt::collectn (line 263) ... ok
test src/decode.rs - decode::DecodeExt::decode_from_bytes (line 437) ... ok
test src/decode.rs - decode::DecodeExt::length (line 283) ... ok
test src/decode.rs - decode::DecodeExt::map (line 130) ... ok
test src/decode.rs - decode::DecodeExt::map_err (line 181) ... FAILED
test src/decode.rs - decode::DecodeExt::max_bytes (line 331) ... ok
test src/decode.rs - decode::DecodeExt::maybe_eos (line 416) ... ok
test src/decode.rs - decode::DecodeExt::omit (line 308) ... ok
test src/decode.rs - decode::DecodeExt::peekable (line 392) ... ok
test src/decode.rs - decode::DecodeExt::slice (line 361) ... ok
test src/decode.rs - decode::DecodeExt::try_map (line 150) ... ok
test src/encode.rs - encode::EncodeExt::encode_into_bytes (line 421) ... ok
test src/encode.rs - encode::EncodeExt::length (line 295) ... ok
test src/encode.rs - encode::EncodeExt::map_err (line 160) ... FAILED
test src/encode.rs - encode::EncodeExt::map_from (line 191) ... ok
test src/encode.rs - encode::EncodeExt::max_bytes (line 271) ... ok
test src/encode.rs - encode::EncodeExt::optional (line 247) ... ok
test src/encode.rs - encode::EncodeExt::pre_encode (line 356) ... ignored
test src/encode.rs - encode::EncodeExt::repeat (line 331) ... ok
test src/encode.rs - encode::EncodeExt::slice (line 382) ... ok
test src/encode.rs - encode::EncodeExt::try_map_from (line 215) ... ok
test src/encode.rs - encode::EncodeExt::with_item (line 134) ... ok
test src/eos.rs - eos::Eos::back (line 37) ... ok
test src/fixnum.rs - fixnum::F32beDecoder (line 1357) ... ok
test src/fixnum.rs - fixnum::F32beEncoder (line 1411) ... ok
test src/fixnum.rs - fixnum::F32leDecoder (line 1384) ... ok
test src/fixnum.rs - fixnum::F32leEncoder (line 1441) ... ok
test src/fixnum.rs - fixnum::F64beDecoder (line 1471) ... ok
test src/fixnum.rs - fixnum::F64beEncoder (line 1525) ... ok
test src/fixnum.rs - fixnum::F64leDecoder (line 1498) ... ok
test src/fixnum.rs - fixnum::F64leEncoder (line 1555) ... ok
test src/fixnum.rs - fixnum::I16beDecoder (line 293) ... ok
test src/fixnum.rs - fixnum::I16beEncoder (line 347) ... ok
test src/fixnum.rs - fixnum::I16leDecoder (line 320) ... ok
test src/fixnum.rs - fixnum::I16leEncoder (line 377) ... ok
test src/fixnum.rs - fixnum::I32beDecoder (line 643) ... ok
test src/fixnum.rs - fixnum::I32beEncoder (line 697) ... ok
test src/fixnum.rs - fixnum::I32leDecoder (line 670) ... ok
test src/fixnum.rs - fixnum::I32leEncoder (line 727) ... ok
test src/fixnum.rs - fixnum::I64beDecoder (line 1243) ... ok
test src/fixnum.rs - fixnum::I64beEncoder (line 1297) ... ok
test src/fixnum.rs - fixnum::I64leDecoder (line 1270) ... ok
test src/fixnum.rs - fixnum::I64leEncoder (line 1327) ... ok
test src/fixnum.rs - fixnum::I8Decoder (line 122) ... ok
test src/fixnum.rs - fixnum::I8Encoder (line 149) ... ok
test src/fixnum.rs - fixnum::U16beDecoder (line 179) ... ok
test src/fixnum.rs - fixnum::U16beEncoder (line 233) ... ok
test src/fixnum.rs - fixnum::U16leDecoder (line 206) ... ok
test src/fixnum.rs - fixnum::U16leEncoder (line 263) ... ok
test src/fixnum.rs - fixnum::U24beDecoder (line 409) ... ok
test src/fixnum.rs - fixnum::U24beEncoder (line 467) ... ok
test src/fixnum.rs - fixnum::U24leDecoder (line 438) ... ok
test src/fixnum.rs - fixnum::U24leEncoder (line 499) ... ok
test src/fixnum.rs - fixnum::U32beDecoder (line 529) ... ok
test src/fixnum.rs - fixnum::U32beEncoder (line 583) ... ok
test src/fixnum.rs - fixnum::U32leDecoder (line 556) ... ok
test src/fixnum.rs - fixnum::U32leEncoder (line 613) ... ok
test src/fixnum.rs - fixnum::U40beDecoder (line 759) ... ok
test src/fixnum.rs - fixnum::U40beEncoder (line 817) ... ok
test src/fixnum.rs - fixnum::U40leDecoder (line 788) ... ok
test src/fixnum.rs - fixnum::U40leEncoder (line 850) ... ok
test src/fixnum.rs - fixnum::U48beDecoder (line 883) ... ok
test src/fixnum.rs - fixnum::U48beEncoder (line 941) ... ok
test src/fixnum.rs - fixnum::U48leDecoder (line 912) ... ok
test src/fixnum.rs - fixnum::U48leEncoder (line 974) ... ok
test src/fixnum.rs - fixnum::U56beDecoder (line 1007) ... ok
test src/fixnum.rs - fixnum::U56beEncoder (line 1065) ... ok
test src/fixnum.rs - fixnum::U56leDecoder (line 1036) ... ok
test src/fixnum.rs - fixnum::U56leEncoder (line 1098) ... ok
test src/fixnum.rs - fixnum::U64beDecoder (line 1129) ... ok
test src/fixnum.rs - fixnum::U64beEncoder (line 1183) ... ok
test src/fixnum.rs - fixnum::U64leDecoder (line 1156) ... ok
test src/fixnum.rs - fixnum::U64leEncoder (line 1213) ... ok
test src/fixnum.rs - fixnum::U8Decoder (line 65) ... ok
test src/fixnum.rs - fixnum::U8Encoder (line 92) ... ok
test src/macros.rs - macros::bytecodec_try_decode (line 45) ... ignored
test src/macros.rs - macros::bytecodec_try_encode (line 5) ... ignored
test src/slice.rs - slice::OwnedSlice (line 7) ... ok

failures:

---- src/decode.rs - decode::DecodeExt::map_err (line 181) stdout ----
Test executable failed (exit status: 101).

stderr:
thread 'main' panicked at src/decode.rs:17:1:
assertion `left == right` failed
   left: "UnexpectedEos (cause; assertion failed: `!eos.is_reached()`; self.offset=1, self.bytes.as_ref().len()=2)\nHISTORY:\n  [0] at src/bytes.rs:152\n  [1] at src/fixnum.rs:200\n  [2] at src/decode.rs:11 -- oops!\n  [3] at src/io.rs:45\n  [4] at src/decode.rs:15\n"
  right: "UnexpectedEos (cause; assertion failed: `!eos.is_reached()`; self.offset=1, self.bytes.as_ref().len()=2)\nHISTORY:\n  [0] at src/bytes.rs:152\n  [1] at src/fixnum.rs:200\n  [2] at src/decode.rs:10 -- oops!\n  [3] at src/io.rs:45\n  [4] at src/decode.rs:14\n"
stack backtrace:
    0: rust_begin_unwind
              at /usr/src/rustc-1.73.0/library/std/src/panicking.rs:595:5
    1: core::panicking::panic_fmt
              at /usr/src/rustc-1.73.0/library/core/src/panicking.rs:67:14
    2: core::panicking::assert_failed_inner
    3: core::panicking::assert_failed
    4: rust_out::main::_doctest_main_src_decode_rs_181_0
    5: rust_out::main
    6: core::ops::function::FnOnce::call_once
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.


---- src/encode.rs - encode::EncodeExt::map_err (line 160) stdout ----
Test executable failed (exit status: 101).

stderr:
thread 'main' panicked at src/encode.rs:13:1:
assertion `left == right` failed
   left: "UnexpectedEos (cause; assertion failed: `!eos.is_reached()`; buf.len()=0, size=0, self.offset=0, b.as_ref().len()=1)\nHISTORY:\n  [0] at src/bytes.rs:53\n  [1] at src/fixnum.rs:116\n  [2] at src/encode.rs:10 -- oops!\n  [3] at src/encode.rs:11\n"
  right: "UnexpectedEos (cause; assertion failed: `!eos.is_reached()`; buf.len()=0, size=0, self.offset=0, b.as_ref().len()=1)\nHISTORY:\n  [0] at src/bytes.rs:53\n  [1] at src/fixnum.rs:116\n  [2] at src/encode.rs:9 -- oops!\n  [3] at src/encode.rs:10\n"
stack backtrace:
    0: rust_begin_unwind
              at /usr/src/rustc-1.73.0/library/std/src/panicking.rs:595:5
    1: core::panicking::panic_fmt
              at /usr/src/rustc-1.73.0/library/core/src/panicking.rs:67:14
    2: core::panicking::assert_failed_inner
    3: core::panicking::assert_failed
    4: rust_out::main::_doctest_main_src_encode_rs_160_0
    5: rust_out::main
    6: core::ops::function::FnOnce::call_once
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.



failures:
     src/decode.rs - decode::DecodeExt::map_err (line 181)
     src/encode.rs - encode::EncodeExt::map_err (line 160)

test result: FAILED. 81 passed; 2 failed; 3 ignored; 0 measured; 0 filtered out; finished in 28.32s

error: doctest failed, to rerun pass `--doc`
dh_auto_test: error: /usr/share/cargo/bin/cargo test --all returned exit code 101
make[1]: *** [debian/rules:6: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:3: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202405/

About the archive rebuild: The build was first tried under trixie
on virtual machines of type m6a.large and r6a.large from AWS,
using sbuild and a reduced chroot with only build-essential packages,
then under sid on self-hosted KVM machines.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.


More information about the Pkg-rust-maintainers mailing list