[Pkg-rust-maintainers] Bug#1114357: rust-libphosh: FTBFS: error: could not compile `libphosh` (lib) due to 2 previous errors
Santiago Vila
sanvila at debian.org
Fri Sep 5 19:25:40 BST 2025
Package: src:rust-libphosh
Version: 0.0.6-4
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build.
Below you will find how the build ends (probably the most relevant part,
but not necessarily). If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202509/
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 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 add an affects on src:rust-libphosh, 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 -XCargo.toml.orig -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
[... snipped ...]
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(gdk_backend, values("x11"))'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(gdk_backend, values(\"x11\"))");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
warning: unexpected `cfg` condition value: `gio_v2_80`
--> /usr/share/cargo/registry/gtk-0.18-0.18.1/src/auto/application.rs:74:35
|
74 | ... #[cfg(feature = "gio_v2_80")]
| ^^^^^^^^^^-----------
| |
| help: there is a expected value with a similar name: `"gio_v2_58"`
|
= note: expected values for `feature` are: `gio_v2_58`, `unsafe-assume-initialized`, `v3_24`, `v3_24_1`, `v3_24_11`, `v3_24_30`, `v3_24_8`, and `v3_24_9`
= help: consider adding `gio_v2_80` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `gdk_backend`
--> /usr/share/cargo/registry/gtk-0.18-0.18.1/src/auto/mod.rs:1040:11
|
1040 | #[cfg(gdk_backend = "x11")]
| ^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(gdk_backend, values("x11"))'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(gdk_backend, values(\"x11\"))");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `gdk_backend`
--> /usr/share/cargo/registry/gtk-0.18-0.18.1/src/auto/mod.rs:1043:11
|
1043 | #[cfg(gdk_backend = "x11")]
| ^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(gdk_backend, values("x11"))'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(gdk_backend, values(\"x11\"))");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `gdk_backend`
--> /usr/share/cargo/registry/gtk-0.18-0.18.1/src/auto/mod.rs:1070:11
|
1070 | #[cfg(gdk_backend = "x11")]
| ^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(gdk_backend, values("x11"))'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(gdk_backend, values(\"x11\"))");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `gdk_backend`
--> /usr/share/cargo/registry/gtk-0.18-0.18.1/src/auto/mod.rs:1073:11
|
1073 | #[cfg(gdk_backend = "x11")]
| ^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(gdk_backend, values("x11"))'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(gdk_backend, values(\"x11\"))");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `gdk_backend`
--> /usr/share/cargo/registry/gtk-0.18-0.18.1/src/auto/mod.rs:1206:11
|
1206 | #[cfg(gdk_backend = "x11")]
| ^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(gdk_backend, values("x11"))'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(gdk_backend, values(\"x11\"))");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `gdk_backend`
--> /usr/share/cargo/registry/gtk-0.18-0.18.1/src/auto/mod.rs:1209:11
|
1209 | #[cfg(gdk_backend = "x11")]
| ^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(gdk_backend, values("x11"))'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(gdk_backend, values(\"x11\"))");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `gdk_backend`
--> /usr/share/cargo/registry/gtk-0.18-0.18.1/src/auto/mod.rs:1240:11
|
1240 | #[cfg(gdk_backend = "x11")]
| ^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(gdk_backend, values("x11"))'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(gdk_backend, values(\"x11\"))");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `gdk_backend`
--> /usr/share/cargo/registry/gtk-0.18-0.18.1/src/auto/mod.rs:1243:11
|
1243 | #[cfg(gdk_backend = "x11")]
| ^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(gdk_backend, values("x11"))'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(gdk_backend, values(\"x11\"))");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
warning: unexpected `cfg` condition value: `v3_22`
--> /usr/share/cargo/registry/gtk-0.18-0.18.1/src/file_chooser.rs:4:7
|
4 | #[cfg(feature = "v3_22")]
| ^^^^^^^^^^-------
| |
| help: there is a expected value with a similar name: `"v3_24"`
|
= note: expected values for `feature` are: `gio_v2_58`, `unsafe-assume-initialized`, `v3_24`, `v3_24_1`, `v3_24_11`, `v3_24_30`, `v3_24_8`, and `v3_24_9`
= help: consider adding `v3_22` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
warning: unexpected `cfg` condition value: `v3_22`
--> /usr/share/cargo/registry/gtk-0.18-0.18.1/src/file_chooser.rs:17:11
|
17 | #[cfg(feature = "v3_22")]
| ^^^^^^^^^^-------
| |
| help: there is a expected value with a similar name: `"v3_24"`
|
= note: expected values for `feature` are: `gio_v2_58`, `unsafe-assume-initialized`, `v3_24`, `v3_24_1`, `v3_24_11`, `v3_24_30`, `v3_24_8`, and `v3_24_9`
= help: consider adding `v3_22` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `gdk_backend`
--> /usr/share/cargo/registry/gtk-0.18-0.18.1/src/subclass/mod.rs:28:7
|
28 | #[cfg(gdk_backend = "x11")]
| ^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(gdk_backend, values("x11"))'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(gdk_backend, values(\"x11\"))");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `gdk_backend`
--> /usr/share/cargo/registry/gtk-0.18-0.18.1/src/subclass/mod.rs:31:7
|
31 | #[cfg(gdk_backend = "x11")]
| ^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(gdk_backend, values("x11"))'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(gdk_backend, values(\"x11\"))");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `gdk_backend`
--> /usr/share/cargo/registry/gtk-0.18-0.18.1/src/subclass/mod.rs:70:11
|
70 | #[cfg(gdk_backend = "x11")]
| ^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(gdk_backend, values("x11"))'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(gdk_backend, values(\"x11\"))");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `gdk_backend`
--> /usr/share/cargo/registry/gtk-0.18-0.18.1/src/subclass/mod.rs:73:11
|
73 | #[cfg(gdk_backend = "x11")]
| ^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(gdk_backend, values("x11"))'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(gdk_backend, values(\"x11\"))");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
warning: unused import: `glib::subclass::prelude::*`
--> /usr/share/cargo/registry/gtk-0.18-0.18.1/src/subclass/mod.rs:43:13
|
43 | pub use glib::subclass::prelude::*;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: unused import: `gdk_pixbuf::prelude::*`
--> /usr/share/cargo/registry/gtk-0.18-0.18.1/src/prelude.rs:10:9
|
10 | pub use gdk_pixbuf::prelude::*;
| ^^^^^^^^^^^^^^^^^^^^^^
warning: unused import: `gio::prelude::*`
--> /usr/share/cargo/registry/gtk-0.18-0.18.1/src/prelude.rs:12:9
|
12 | pub use gio::prelude::*;
| ^^^^^^^^^^^^^^^
warning: unused import: `glib::prelude::*`
--> /usr/share/cargo/registry/gtk-0.18-0.18.1/src/prelude.rs:14:9
|
14 | pub use glib::prelude::*;
| ^^^^^^^^^^^^^^^^
warning: unused import: `pango::prelude::*`
--> /usr/share/cargo/registry/gtk-0.18-0.18.1/src/prelude.rs:16:9
|
16 | pub use pango::prelude::*;
| ^^^^^^^^^^^^^^^^^
warning: trait `MessageDialogExt` is never used
--> /usr/share/cargo/registry/gtk-0.18-0.18.1/src/message_dialog.rs:45:11
|
45 | pub trait MessageDialogExt: IsA<MessageDialog> + sealed::Sealed + 'static {
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
warning: trait `Sealed` is never used
--> /usr/share/cargo/registry/gtk-0.18-0.18.1/src/message_dialog.rs:41:15
|
41 | pub trait Sealed {}
| ^^^^^^
Compiling libphosh v0.0.6 (/<<PKGBUILDDIR>>)
Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=libphosh [too-long-redacted] stry=/usr/share/cargo/registry`
error[E0425]: cannot find function `phosh_status_icon_get_pixel_size` in crate `ffi`
--> src/auto/status_icon.rs:318:18
|
318 | ffi::phosh_status_icon_get_pixel_size(self.as_ref().to_glib_none().0)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `phosh_status_icon_get_icon_size`
|
::: /usr/share/cargo/registry/libphosh-sys-0.0.6/src/lib.rs:579:5
|
579 | pub fn phosh_status_icon_get_icon_size(self_: *mut PhoshStatusIcon) -> gtk::GtkIconSize;
| ---------------------------------------------------------------------------------------- similarly named function `phosh_status_icon_get_icon_size` defined here
error[E0425]: cannot find function `phosh_status_icon_set_pixel_size` in crate `ffi`
--> src/auto/status_icon.rs:350:18
|
350 | ffi::phosh_status_icon_set_pixel_size(self.as_ref().to_glib_none().0, size);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `phosh_status_icon_set_icon_size`
|
::: /usr/share/cargo/registry/libphosh-sys-0.0.6/src/lib.rs:583:5
|
583 | pub fn phosh_status_icon_set_icon_size(self_: *mut PhoshStatusIcon, size: gtk::GtkIconSize);
| -------------------------------------------------------------------------------------------- similarly named function `phosh_status_icon_set_icon_size` defined here
For more information about this error, try `rustc --explain E0425`.
error: could not compile `libphosh` (lib) due to 2 previous errors
Caused by:
process didn't exit successfully: `CARGO=/usr/bin/cargo CA [too-long-redacted] argo/registry` (exit status: 1)
warning: build failed, waiting for other jobs to finish...
warning: `gtk` (lib) generated 30 warnings
dh_auto_test: error: /usr/share/cargo/bin/cargo test --all returned exit code 101
make[1]: *** [debian/rules:139: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:4: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
More information about the Pkg-rust-maintainers
mailing list