[Pkg-rust-maintainers] Bug#1117371: rust-shared-library: FTBFS: error: test failed, to rerun pass `--lib`

Santiago Vila sanvila at debian.org
Sun Oct 5 15:15:15 BST 2025


Package: src:rust-shared-library
Version: 0.1.9-2
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

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

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot 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 add an affects on src:rust-shared-library, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem cargo
   dh_auto_clean -O--buildsystem=cargo
debian cargo wrapper: options = ['parallel=2'], profiles = [], parallel = ['-j2'], lto = 
debian cargo wrapper: rust_type = x86_64-unknown-linux-gnu, gnu_type = x86_64-linux-gnu
debian cargo wrapper: running subprocess (['env', 'RUST_BACKTRACE=1', '/usr/bin/cargo', 'clean', '--verbose', '--verbose'],) {'check': True}
     Removed 0 files
   dh_autoreconf_clean -O--buildsystem=cargo
   dh_clean -O--buildsystem=cargo
 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 = ['parallel=2'], profiles = [], parallel = ['-j2'], lto = 
debian cargo wrapper: rust_type = x86_64-unknown-linux-gnu, gnu_type = 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 = ['parallel=2'], profiles = [], parallel = ['-j2'], lto = 
debian cargo wrapper: rust_type = x86_64-unknown-linux-gnu, gnu_type = x86_64-linux-gnu
debian cargo wrapper: running subprocess (['env', 'RUST_BACKTRACE=1', '/usr/bin/cargo', '-Zavoid-dev-deps', 'test', '--verbose', '--verbose', '-j2', '--target', 'x86_64-unknown-linux-gnu', '--all'],) {}
warning: no edition set: defaulting to the 2015 edition while the latest is 2024
   Compiling libc v0.2.175
   Compiling lazy_static v1.5.0
     Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=build_sc [too-long-redacted] et/debug/deps --cap-lints warn`
     Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=lazy_sta [too-long-redacted] stry=/usr/share/cargo/registry`
warning: elided lifetime has a name
  --> /usr/share/cargo/registry/lazy_static-1.5.0/src/inline_lazy.rs:26:43
   |
26 |     pub fn get<F>(&'static self, f: F) -> &T
   |                                           ^ this elided lifetime gets resolved as `'static`
   |
   = note: `#[warn(elided_named_lifetimes)]` on by default
help: consider specifying it explicitly
   |
26 |     pub fn get<F>(&'static self, f: F) -> &'static T
   |                                            +++++++

warning: `lazy_static` (lib) generated 1 warning
     Running `CARGO=/usr/bin/cargo CARGO_CFG_FEATURE=default [too-long-redacted] 57dd5e37389/build-script-build`
[libc 0.2.175] cargo:rerun-if-changed=build.rs
[libc 0.2.175] cargo:rerun-if-env-changed=RUST_LIBC_UNSTABLE_FREEBSD_VERSION
[libc 0.2.175] cargo:rustc-cfg=freebsd11
[libc 0.2.175] cargo:rerun-if-env-changed=RUST_LIBC_UNSTABLE_MUSL_V1_2_3
[libc 0.2.175] cargo:rerun-if-env-changed=RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64
[libc 0.2.175] cargo:rerun-if-env-changed=RUST_LIBC_UNSTABLE_GNU_FILE_OFFSET_BITS
[libc 0.2.175] cargo:rerun-if-env-changed=RUST_LIBC_UNSTABLE_GNU_TIME_BITS
[libc 0.2.175] cargo:rustc-cfg=libc_const_extern_fn
[libc 0.2.175] cargo:rustc-check-cfg=cfg(emscripten_old_stat_abi)
[libc 0.2.175] cargo:rustc-check-cfg=cfg(espidf_time32)
[libc 0.2.175] cargo:rustc-check-cfg=cfg(freebsd10)
[libc 0.2.175] cargo:rustc-check-cfg=cfg(freebsd11)
[libc 0.2.175] cargo:rustc-check-cfg=cfg(freebsd12)
[libc 0.2.175] cargo:rustc-check-cfg=cfg(freebsd13)
[libc 0.2.175] cargo:rustc-check-cfg=cfg(freebsd14)
[libc 0.2.175] cargo:rustc-check-cfg=cfg(freebsd15)
[libc 0.2.175] cargo:rustc-check-cfg=cfg(gnu_file_offset_bits64)
[libc 0.2.175] cargo:rustc-check-cfg=cfg(gnu_time_bits64)
[libc 0.2.175] cargo:rustc-check-cfg=cfg(libc_const_extern_fn)
[libc 0.2.175] cargo:rustc-check-cfg=cfg(libc_deny_warnings)
[libc 0.2.175] cargo:rustc-check-cfg=cfg(libc_thread_local)
[libc 0.2.175] cargo:rustc-check-cfg=cfg(libc_ctest)
[libc 0.2.175] cargo:rustc-check-cfg=cfg(linux_time_bits64)
[libc 0.2.175] cargo:rustc-check-cfg=cfg(musl_v1_2_3)
[libc 0.2.175] cargo:rustc-check-cfg=cfg(target_os,values("switch","aix","ohos","hurd","rtems","visionos","nuttx","cygwin"))
[libc 0.2.175] cargo:rustc-check-cfg=cfg(target_env,values("illumos","wasi","aix","ohos","nto71_iosock","nto80"))
[libc 0.2.175] cargo:rustc-check-cfg=cfg(target_arch,values("loongarch64","mips32r6","mips64r6","csky"))
     Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=libc CAR [too-long-redacted] mips32r6","mips64r6","csky"))'`
   Compiling shared_library v0.1.9 (/<<PKGBUILDDIR>>)
     Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=shared_l [too-long-redacted] stry=/usr/share/cargo/registry`
     Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=shared_l [too-long-redacted] stry=/usr/share/cargo/registry`
warning: unexpected `cfg` condition value: `bitrig`
   --> src/dynamic_library.rs:230:11
    |
230 |           target_os = "bitrig",
    |           ^^^^^^^^^^^^^^^^^^^^
    |
    = note: expected values for `target_os` are: `aix`, `amdhsa`, `android`, `cuda`, `cygwin`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `lynxos178`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, and `uefi` and 9 more
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
    = note: `#[warn(unexpected_cfgs)]` on by default

warning: `extern` declarations without an explicit ABI are deprecated
   --> src/dynamic_library.rs:300:5
    |
300 |     extern {
    |     ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"`
    |
    = note: `#[warn(missing_abi)]` on by default

warning: unexpected `cfg` condition value: `bitrig`
   --> src/dynamic_library.rs:207:15
    |
207 |               target_os = "bitrig",
    |               ^^^^^^^^^^^^^^^^^^^^
    |
    = note: expected values for `target_os` are: `aix`, `amdhsa`, `android`, `cuda`, `cygwin`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `lynxos178`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, and `uefi` and 9 more
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

warning: `extern` declarations without an explicit ABI are deprecated
   --> src/dynamic_library.rs:184:21
    |
184 |         let cosine: extern fn(libc::c_double) -> libc::c_double = unsafe {
    |                     ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"`
    |
    = note: `#[warn(missing_abi)]` on by default

warning: `extern` declarations without an explicit ABI are deprecated
   --> src/dynamic_library.rs:300:5
    |
300 |     extern {
    |     ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"`

warning: `shared_library` (lib) generated 2 warnings (run `cargo fix --lib -p shared_library` to apply 1 suggestion)
warning: `shared_library` (lib test) generated 4 warnings (1 duplicate) (run `cargo fix --lib -p shared_library --tests` to apply 2 suggestions)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 1.61s
     Running `CARGO=/usr/bin/cargo CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_MANIFEST_PATH=/<<PKGBUILDDIR>>/Cargo.toml CARGO_PKG_AUTHORS='Pierre Krieger <pierre.krieger1708 at gmail.com>' CARGO_PKG_DESCRIPTION='Easily bind to and load shared libraries' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=Apache-2.0/MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=shared_library CARGO_PKG_README='' CARGO_PKG_REPOSITORY='https://github.com/tomaka/shared_library/' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.1.9 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=9 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/shared_library-f281f1ac9551cdec`

running 2 tests
test dynamic_library::test::test_errors_do_not_crash ... ok
test dynamic_library::test::test_loading_cosine ... FAILED

failures:

---- dynamic_library::test::test_loading_cosine stdout ----

thread 'dynamic_library::test::test_loading_cosine' panicked at src/dynamic_library.rs:186:31:
Could not load function cos: /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/shared_library-f281f1ac9551cdec: undefined symbol: cos
stack backtrace:
   0: __rustc::rust_begin_unwind
             at /usr/src/rustc-1.88.0/library/std/src/panicking.rs:697:5
   1: core::panicking::panic_fmt
             at /usr/src/rustc-1.88.0/library/core/src/panicking.rs:75:14
   2: shared_library::dynamic_library::test::test_loading_cosine
             at /usr/share/cargo/registry/shared-library-0.1.9/src/dynamic_library.rs:186:31
   3: shared_library::dynamic_library::test::test_loading_cosine::{{closure}}
             at /usr/share/cargo/registry/shared-library-0.1.9/src/dynamic_library.rs:176:29
   4: core::ops::function::FnOnce::call_once
             at /usr/src/rustc-1.88.0/library/core/src/ops/function.rs:250:5
   5: core::ops::function::FnOnce::call_once
             at /usr/src/rustc-1.88.0/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.


failures:
    dynamic_library::test::test_loading_cosine

test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s

error: test failed, to rerun pass `--lib`
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
--------------------------------------------------------------------------------



More information about the Pkg-rust-maintainers mailing list