Package: src:python-cotengrust
Version: 0.2.0-1
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/202603/

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:python-cotengrust, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
   Compiling cotengrust v0.2.0 (/<<PKGBUILDDIR>>)
     Running `rustc --crate-name cotengrust --edition=2021 s 
[too-long-redacted] stc_hash-9b6fa21de5300a61.rlib`
error[E0432]: unresolved import `rand::rngs::OsRng`
 --> src/lib.rs:6:18
  |
6 | use rand::rngs::{OsRng, StdRng};
  |                  ^^^^^ no `OsRng` in `rngs`

warning: unused import: `Rng`
 --> src/lib.rs:5:12
  |
5 | use rand::{Rng, SeedableRng};
  |            ^^^
  |
  = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default

error[E0599]: no method named `expect` found for struct `StdRng` in the current 
scope
   --> src/lib.rs:470:49
    |
470 |                 None => StdRng::from_rng(OsRng).expect("OsRng 
unavailable"),
    |                                                 ^^^^^^ method not found 
in `StdRng`

error[E0282]: type annotations needed
   --> src/lib.rs:479:45
    |
479 |                 coeff_t * -f32::ln(-f32::ln(rng.gen::<f32>()))
    |                                             ^^^ cannot infer type

error[E0599]: no method named `gen` found for mutable reference `&mut StdRng` 
in the current scope
    --> src/lib.rs:1050:31
     |
1050 |             costmod_min + rng.gen::<f32>() * costmod_diff
     |                               ^^^ method not found in `&mut StdRng`

error[E0599]: no method named `gen` found for mutable reference `&mut StdRng` 
in the current scope
    --> src/lib.rs:1056:41
     |
1056 |             f32::exp(log_temp_min + rng.gen::<f32>() * log_temp_diff)
     |                                         ^^^ method not found in `&mut 
StdRng`

error[E0599]: no method named `allow_threads` found for struct 
`pyo3::Python<'py>` in the current scope
    --> src/lib.rs:1248:8
     |
1248 |     py.allow_threads(|| {
     |     ---^^^^^^^^^^^^^ method not found in `pyo3::Python<'_>`

error[E0599]: no method named `allow_threads` found for struct 
`pyo3::Python<'py>` in the current scope
    --> src/lib.rs:1375:8
     |
1375 |     py.allow_threads(|| {
     |     ---^^^^^^^^^^^^^ method not found in `pyo3::Python<'_>`

error[E0599]: no method named `expect` found for struct `StdRng` in the current 
scope
    --> src/lib.rs:1388:45
     |
1388 |             None => StdRng::from_rng(OsRng).expect("OsRng unavailable"),
     |                                             ^^^^^^ method not found in 
`StdRng`

error[E0599]: no method named `allow_threads` found for struct 
`pyo3::Python<'py>` in the current scope
    --> src/lib.rs:1533:8
     |
1533 |     py.allow_threads(|| {
     |     ---^^^^^^^^^^^^^ method not found in `pyo3::Python<'_>`

Some errors have detailed explanations: E0282, E0432, E0599.
For more information about an error, try `rustc --explain E0282`.
warning: `cotengrust` (lib) generated 1 warning
error: could not compile `cotengrust` (lib) due to 9 previous errors; 1 warning 
emitted

Caused by:
  process didn't exit successfully: `rustc --crate-name cote 
[too-long-redacted] e5300a61.rlib` (exit status: 1)
💥 maturin failed
  Caused by: Failed to build a native library through cargo
  Caused by: Cargo build finished with "exit status: 101": `env -u CARGO 
PYO3_BUILD_EXTENSION_MODULE="1" PYO3_ENVIRONMENT_SIGNATURE="cpython-3.13-64bit" 
PYO3_PYTHON="/usr/bin/python3" PYTHON_SYS_EXECUTABLE="/usr/bin/python3" "cargo" 
"rustc" "--features" "pyo3/extension-module" "--message-format" 
"json-render-diagnostics" "-v" "--manifest-path" "/<<PKGBUILDDIR>>/Cargo.toml" 
"--release" "--lib"`
make[1]: *** [debian/rules:13: override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:17: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit 
status 2
--------------------------------------------------------------------------------

Reply via email to