Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error compile on debian #304

Open
choupaland opened this issue Dec 6, 2024 · 1 comment
Open

error compile on debian #304

choupaland opened this issue Dec 6, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@choupaland
Copy link

Hi,

i try to compile on a debian

❯ uname -a
Linux DESKTOP-F4COUFC 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 GNU/Linux

❯ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux trixie/sid
Release: n/a
Codename: trixie

 rustup default stable
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2024-11-28, rust version 1.83.0 (90b35a623 2024-11-26)
info: downloading component 'cargo'
  8.6 MiB /   8.6 MiB (100 %)   7.0 MiB/s in  1s ETA:  0s
info: downloading component 'clippy'
info: downloading component 'rust-docs'
 16.4 MiB /  16.4 MiB (100 %)   8.5 MiB/s in  1s ETA:  0s
info: downloading component 'rust-std'
 26.1 MiB /  26.1 MiB (100 %)   8.4 MiB/s in  3s ETA:  0s
info: downloading component 'rustc'
 69.3 MiB /  69.3 MiB (100 %)   7.4 MiB/s in  9s ETA:  0s
info: downloading component 'rustfmt'
info: installing component 'cargo'
  8.6 MiB /   8.6 MiB (100 %)   5.9 MiB/s in  1s ETA:  0s
info: installing component 'clippy'
info: installing component 'rust-docs'
 16.4 MiB /  16.4 MiB (100 %)   2.6 MiB/s in  5s ETA:  0s
info: installing component 'rust-std'
 26.1 MiB /  26.1 MiB (100 %)   5.2 MiB/s in  5s ETA:  0s
info: installing component 'rustc'
 69.3 MiB /  69.3 MiB (100 %)   5.7 MiB/s in 11s ETA:  0s
info: installing component 'rustfmt'
info: default toolchain set to 'stable-x86_64-unknown-linux-gnu'

  stable-x86_64-unknown-linux-gnu installed - rustc 1.83.0 (90b35a623 2024-11-26)

❯ cargo install --root "$HOME/.cargo" --path .
  Installing gpg-tui v0.11.0 (/home/yoda/gpg-tui)
    Updating crates.io index
     Locking 237 packages to latest compatible versions
      Adding crossterm v0.27.0 (available: v0.28.1)
      Adding ratatui v0.27.0 (available: v0.29.0)
      Adding tui-logger v0.11.2 (available: v0.14.0)
  Downloaded addr2line v0.24.2
  Downloaded anstream v0.6.18
  Downloaded adler2 v2.0.0
  Downloaded colorchoice v1.0.3
  Downloaded anstyle-query v1.1.2
  Downloaded darling_macro v0.20.10
  Downloaded cstr-argument v0.1.2
  Downloaded dlib v0.5.2
  Downloaded fxhash v0.2.1
  Downloaded equivalent v1.0.1
  Downloaded anstyle-parse v0.2.6
  Downloaded build-rs v0.1.2
  Downloaded byteorder v1.5.0
  Downloaded block-buffer v0.10.4
  Downloaded anstyle v1.0.10
  Downloaded option-ext v0.2.0
  Downloaded ident_case v1.0.1
  Downloaded conv v0.3.3
  Downloaded clap_lex v0.7.4
  Downloaded copypasta v0.8.2
  Downloaded dirs-sys v0.4.1
  Downloaded digest v0.10.7
  Downloaded either v1.13.0
  Downloaded foldhash v0.1.3
  Downloaded fnv v1.0.7
  Downloaded fdeflate v0.3.6
  Downloaded errno v0.3.10
  Downloaded env_filter v0.1.2
  Downloaded dirs-sys-next v0.1.2
  Downloaded autocfg v1.4.0
  Downloaded custom_derive v0.1.7
  Downloaded gpgme-sys v0.11.0
  Downloaded stability v0.2.1
  Downloaded home v0.5.9
  Downloaded gethostname v0.2.3
  Downloaded indoc v2.0.5
  Downloaded lazy_static v1.5.0
  Downloaded memoffset v0.6.5
  Downloaded lru v0.12.5
  Downloaded memoffset v0.7.1
  Downloaded colorsys v0.6.7
  Downloaded strum v0.26.3
  Downloaded humantime v2.1.0
  Downloaded bitflags v1.3.2
  Downloaded ratatui-splash-screen v0.1.4
  Downloaded hex v0.4.3
  Downloaded memmap2 v0.5.10
  Downloaded paste v1.0.15
  Downloaded lock_api v0.4.12
  Downloaded compact_str v0.8.0
  Downloaded iana-time-zone v0.1.61
  Downloaded miniz_oxide v0.8.0
  Downloaded gpg-error v0.6.2
  Downloaded scopeguard v1.2.0
  Downloaded backtrace v0.3.74
  Downloaded signal-hook-registry v1.4.2
  Downloaded rustversion v1.0.18
  Downloaded toml_datetime v0.6.8
  Downloaded terminal_size v0.4.1
  Downloaded strsim v0.11.1
  Downloaded scoped-tls v1.0.1
  Downloaded memchr v2.7.4
  Downloaded utf8parse v0.2.2
  Downloaded mio v1.0.3
  Downloaded version_check v0.9.5
  Downloaded version-compare v0.2.0
  Downloaded crossterm v0.28.1
  Downloaded unicode-truncate v1.1.0
  Downloaded once_cell v1.20.2
  Downloaded itertools v0.13.0
  Downloaded pkg-config v0.3.31
  Downloaded chrono v0.4.38
  Downloaded static_assertions v1.1.0
  Downloaded image v0.25.5
  Downloaded quote v1.0.37
  Downloaded smithay-clipboard v0.6.6
  Downloaded gimli v0.31.1
  Downloaded xcursor v0.3.8
  Downloaded tinytemplate v1.2.1
  Downloaded wayland-sys v0.29.5
  Downloaded target-lexicon v0.12.16
  Downloaded wayland-cursor v0.29.5
  Downloaded better-panic v0.3.0
  Downloaded shellexpand v3.1.0
  Downloaded strum_macros v0.26.4
  Downloaded smallvec v1.13.2
  Downloaded proc-macro2 v1.0.92
  Downloaded parking_lot v0.12.3
  Downloaded sha2 v0.10.8
  Downloaded rustc-demangle v0.1.24
  Downloaded parking_lot_core v0.9.10
  Downloaded clap_builder v4.5.23
  Downloaded typenum v1.17.0
  Downloaded signal-hook v0.3.17
  Downloaded sha256 v1.5.0
  Downloaded ryu v1.0.18
  Downloaded zune-core v0.4.12
  Downloaded num-traits v0.2.19
  Downloaded unicode-ident v1.0.14
  Downloaded wayland-scanner v0.29.5
  Downloaded wayland-commons v0.29.5
  Downloaded x11-clipboard v0.7.1
  Downloaded libc v0.2.167
  Downloaded which v4.4.2
  Downloaded serde_derive v1.0.215
  Downloaded toml v0.8.19
  Downloaded system-deps v6.2.2
  Downloaded aho-corasick v1.1.3
  Downloaded pretty_assertions v1.4.1
  Downloaded serde v1.0.215
  Downloaded simd-adler32 v0.3.7
  Downloaded xml-rs v0.8.24
  Downloaded hashbrown v0.15.2
  Downloaded crossterm v0.27.0
  Downloaded zune-jpeg v0.4.13
  Downloaded wayland-client v0.29.5
  Downloaded unicode-segmentation v1.12.0
  Downloaded toml_edit v0.22.22
  Downloaded yansi v1.0.1
  Downloaded smithay-client-toolkit v0.16.1
  Downloaded png v0.17.14
  Downloaded mio v0.8.11
  Downloaded serde_json v1.0.133
  Downloaded flate2 v1.0.35
  Downloaded gpgme v0.11.0
  Downloaded indexmap v2.7.0
  Downloaded signal-hook-mio v0.2.4
  Downloaded wayland-protocols v0.29.5
  Downloaded serde_spanned v0.6.8
  Downloaded clap_complete v4.5.38
  Downloaded log v0.4.22
  Downloaded darling_core v0.20.10
  Downloaded bytes v1.9.0
  Downloaded winnow v0.6.20
  Downloaded allocator-api2 v0.2.21
  Downloaded env_logger v0.11.5
  Downloaded x11rb v0.10.1
  Downloaded diff v0.1.13
  Downloaded regex v1.11.1
  Downloaded unicode-width v0.2.0
  Downloaded syn v2.0.90
  Downloaded unicode-width v0.1.14
  Downloaded nix v0.24.3
  Downloaded object v0.36.5
  Downloaded regex-syntax v0.8.5
  Downloaded libloading v0.8.6
  Downloaded rustix v0.38.41
  Downloaded libgpg-error-sys v0.6.2
  Downloaded ratatui v0.29.0
  Downloaded compact_str v0.7.1
  Downloaded x11rb-protocol v0.10.0
  Downloaded console v0.15.8
  Downloaded ratatui v0.27.0
  Downloaded clap v4.5.23
  Downloaded cfg-expr v0.15.8
  Downloaded bytemuck v1.20.0
  Downloaded bitflags v2.6.0
  Downloaded async-trait v0.1.83
  Downloaded regex-automata v0.4.9
  Downloaded anyhow v1.0.94
  Downloaded dirs-next v2.0.0
  Downloaded darling v0.20.10
  Downloaded crc32fast v1.4.2
  Downloaded itoa v1.0.14
  Downloaded instability v0.3.3
  Downloaded linux-raw-sys v0.4.14
  Downloaded heck v0.5.0
  Downloaded is_terminal_polyfill v1.70.1
  Downloaded generic-array v0.14.7
  Downloaded clap_derive v4.5.18
  Downloaded downcast-rs v1.2.1
  Downloaded dirs v5.0.1
  Downloaded crypto-common v0.1.6
  Downloaded cpufeatures v0.2.16
  Downloaded copypasta-ext v0.4.4
  Downloaded cfg-if v1.0.0
  Downloaded castaway v0.2.3
  Downloaded cassowary v0.3.0
  Downloaded byteorder-lite v0.1.0
  Downloaded tui-logger v0.11.2
  Downloaded 180 crates (22.4 MB) in 3.63s (largest was `tui-logger` at 8.1 MB)
   Compiling proc-macro2 v1.0.92
   Compiling unicode-ident v1.0.14
   Compiling libc v0.2.167
   Compiling cfg-if v1.0.0
   Compiling autocfg v1.4.0
   Compiling pkg-config v0.3.31
   Compiling serde v1.0.215
   Compiling heck v0.5.0
   Compiling smallvec v1.13.2
   Compiling bitflags v1.3.2
   Compiling log v0.4.22
   Compiling hashbrown v0.15.2
   Compiling equivalent v1.0.1
   Compiling xml-rs v0.8.24
   Compiling target-lexicon v0.12.16
   Compiling memchr v2.7.4
   Compiling lazy_static v1.5.0
   Compiling rustversion v1.0.18
   Compiling rustix v0.38.41
   Compiling memoffset v0.6.5
   Compiling winnow v0.6.20
   Compiling wayland-sys v0.29.5
   Compiling indexmap v2.7.0
   Compiling libloading v0.8.6
   Compiling linux-raw-sys v0.4.14
   Compiling quote v1.0.37
   Compiling dlib v0.5.2
   Compiling cfg-expr v0.15.8
   Compiling lock_api v0.4.12
   Compiling version-compare v0.2.0
   Compiling syn v2.0.90
   Compiling wayland-scanner v0.29.5
   Compiling signal-hook v0.3.17
   Compiling allocator-api2 v0.2.21
   Compiling parking_lot_core v0.9.10
   Compiling once_cell v1.20.2
   Compiling foldhash v0.1.3
   Compiling version_check v0.9.5
   Compiling typenum v1.17.0
   Compiling scopeguard v1.2.0
   Compiling ryu v1.0.18
   Compiling itoa v1.0.14
   Compiling simd-adler32 v0.3.7
   Compiling either v1.13.0
   Compiling generic-array v0.14.7
   Compiling adler2 v2.0.0
   Compiling downcast-rs v1.2.1
   Compiling scoped-tls v1.0.1
   Compiling build-rs v0.1.2
   Compiling nix v0.24.3
   Compiling signal-hook-registry v1.4.2
   Compiling mio v1.0.3
   Compiling mio v0.8.11
   Compiling wayland-client v0.29.5
   Compiling static_assertions v1.1.0
   Compiling wayland-protocols v0.29.5
   Compiling miniz_oxide v0.8.0
   Compiling signal-hook-mio v0.2.4
   Compiling parking_lot v0.12.3
   Compiling castaway v0.2.3
   Compiling serde_spanned v0.6.8
   Compiling toml_datetime v0.6.8
   Compiling num-traits v0.2.19
   Compiling paste v1.0.15
   Compiling strsim v0.11.1
   Compiling toml_edit v0.22.22
   Compiling fnv v1.0.7
   Compiling utf8parse v0.2.2
   Compiling ident_case v1.0.1
   Compiling anstyle-parse v0.2.6
   Compiling itertools v0.13.0
   Compiling smithay-client-toolkit v0.16.1
   Compiling colorchoice v1.0.3
   Compiling xcursor v0.3.8
   Compiling anstyle-query v1.1.2
   Compiling unicode-width v0.1.14
   Compiling anstyle v1.0.10
   Compiling is_terminal_polyfill v1.70.1
   Compiling unicode-segmentation v1.12.0
   Compiling anstream v0.6.18
   Compiling darling_core v0.20.10
   Compiling block-buffer v0.10.4
   Compiling crypto-common v0.1.6
   Compiling lru v0.12.5
   Compiling memmap2 v0.5.10
   Compiling gethostname v0.2.3
   Compiling aho-corasick v1.1.3
   Compiling crc32fast v1.4.2
   Compiling diff v0.1.13
   Compiling yansi v1.0.1
   Compiling cassowary v0.3.0
   Compiling regex-syntax v0.8.5
   Compiling pretty_assertions v1.4.1
   Compiling flate2 v1.0.35
   Compiling digest v0.10.7
   Compiling toml v0.8.19
   Compiling fdeflate v0.3.6
   Compiling system-deps v6.2.2
   Compiling unicode-truncate v1.1.0
   Compiling memoffset v0.7.1
   Compiling serde_json v1.0.133
   Compiling cpufeatures v0.2.16
   Compiling gimli v0.31.1
   Compiling indoc v2.0.5
   Compiling regex-automata v0.4.9
   Compiling wayland-commons v0.29.5
   Compiling x11rb-protocol v0.10.0
   Compiling serde_derive v1.0.215
   Compiling libgpg-error-sys v0.6.2
   Compiling strum_macros v0.26.4
   Compiling darling_macro v0.20.10
   Compiling gpgme-sys v0.11.0
   Compiling option-ext v0.2.0
   Compiling zune-core v0.4.12
   Compiling wayland-cursor v0.29.5
   Compiling clap_lex v0.7.4
   Compiling zune-jpeg v0.4.13
   Compiling addr2line v0.24.2
   Compiling dirs-sys v0.4.1
   Compiling darling v0.20.10
   Compiling instability v0.3.3
   Compiling stability v0.2.1
   Compiling clap_derive v4.5.18
   Compiling async-trait v0.1.83
   Compiling strum v0.26.3
   Compiling regex v1.11.1
   Compiling sha2 v0.10.8
   Compiling png v0.17.14
   Compiling compact_str v0.8.0
   Compiling compact_str v0.7.1
   Compiling object v0.36.5
   Compiling unicode-width v0.2.0
   Compiling copypasta-ext v0.4.4
   Compiling iana-time-zone v0.1.61
   Compiling bytes v1.9.0
   Compiling rustc-demangle v0.1.24
   Compiling byteorder-lite v0.1.0
   Compiling bytemuck v1.20.0
   Compiling anyhow v1.0.94
   Compiling home v0.5.9
   Compiling custom_derive v0.1.7
   Compiling hex v0.4.3
   Compiling byteorder v1.5.0
   Compiling conv v0.3.3
   Compiling image v0.25.5
   Compiling fxhash v0.2.1
   Compiling chrono v0.4.38
   Compiling env_filter v0.1.2
   Compiling sha256 v1.5.0
   Compiling dirs v5.0.1
   Compiling gpg-error v0.6.2
   Compiling dirs-sys-next v0.1.2
   Compiling console v0.15.8
   Compiling cstr-argument v0.1.2
   Compiling humantime v2.1.0
   Compiling gpgme v0.11.0
   Compiling env_logger v0.11.5
   Compiling dirs-next v2.0.0
   Compiling shellexpand v3.1.0
   Compiling colorsys v0.6.7
   Compiling bitflags v2.6.0
   Compiling crossterm v0.27.0
   Compiling backtrace v0.3.74
   Compiling smithay-clipboard v0.6.6
   Compiling x11rb v0.10.1
   Compiling terminal_size v0.4.1
   Compiling clap_builder v4.5.23
   Compiling crossterm v0.28.1
   Compiling which v4.4.2
   Compiling ratatui v0.29.0
   Compiling ratatui v0.27.0
   Compiling x11-clipboard v0.7.1
   Compiling copypasta v0.8.2
   Compiling better-panic v0.3.0
   Compiling tui-logger v0.11.2
   Compiling ratatui-splash-screen v0.1.4
   Compiling tinytemplate v1.2.1
   Compiling clap v4.5.23
   Compiling clap_complete v4.5.38
   Compiling gpg-tui v0.11.0 (/home/yoda/gpg-tui)
error[E0277]: the trait bound `&mut SplashScreen: Widget` is not satisfied
  --> src/app/renderer.rs:32:23
   |
32 |         frame.render_widget(&mut app.splash_screen, rect);
   |               ------------- ^^^^^^^^^^^^^^^^^^^^^^ the trait `Widget` is not implemented for `&mut SplashScreen`
   |               |
   |               required by a bound introduced by this call
   |
   = help: the following other types implement trait `Widget`:
             &W
             &str
             BarChart<'_>
             Canvas<'_, F>
             Chart<'_>
             Gauge<'_>
             LineGauge<'_>
             List<'_>
           and 13 others
note: required by a bound in `Frame::<'_>::render_widget`
  --> /home/yoda/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.27.0/src/terminal/frame.rs:74:29
   |
74 |     pub fn render_widget<W: Widget>(&mut self, widget: W, area: Rect) {
   |                             ^^^^^^ required by this bound in `Frame::<'_>::render_widget`

For more information about this error, try `rustc --explain E0277`.
error: could not compile `gpg-tui` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `gpg-tui v0.11.0 (/home/yoda/gpg-tui)`, intermediate artifacts can be found at `/home/yoda/gpg-tui/target`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

how can if fix that error ? pls

@choupaland choupaland added the bug Something isn't working label Dec 6, 2024
@orhun
Copy link
Owner

orhun commented Dec 6, 2024

Hey, it seems like I need to update the dependencies for fixing this. In the meantime you can use pre-built binaries from the releases page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants