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

Doesn't compile #13

Closed
kun-codes opened this issue Jan 28, 2024 · 5 comments
Closed

Doesn't compile #13

kun-codes opened this issue Jan 28, 2024 · 5 comments

Comments

@kun-codes
Copy link

Hello, I am on arch linux
I am trying to install it using yay -S awatcher-git

The AUR package is here: https://aur.archlinux.org/packages/awatcher-git

This is the error I am getting

[🔴] × yay -S awatcher
AUR Explicit (1): awatcher-git-r48.9f89fdb-1
:: PKGBUILD up to date, skipping download: awatcher-git
  1 awatcher-git                     (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
  1 awatcher-git                     (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
==> Making package: awatcher-git r48.9f89fdb-1 (Sunday 28 January 2024 05:58:42 PM)
==> Retrieving sources...
  -> Updating awatcher git repo...
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
    awatcher ... Skipped
:: (1/1) Parsing SRCINFO: awatcher-git
==> Making package: awatcher-git r48.9f89fdb-1 (Sunday 28 January 2024 05:58:43 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating awatcher git repo...
==> Validating source files with sha256sums...
    awatcher ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of awatcher git repo...
Cloning into 'awatcher'...
done.
==> Starting prepare()...
==> Starting pkgver()...
==> Updated version: awatcher-git r76.16ec9f6-1
==> Sources are ready.
==> Making package: awatcher-git r76.16ec9f6-1 (Sunday 28 January 2024 05:58:45 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
   Compiling autocfg v1.1.0
   Compiling proc-macro2 v1.0.67
   Compiling unicode-ident v1.0.12
   Compiling libc v0.2.150
   Compiling cfg-if v1.0.0
   Compiling pkg-config v0.3.27
   Compiling quote v1.0.33
   Compiling syn v2.0.37
   Compiling futures-core v0.3.28
   Compiling cc v1.0.83
   Compiling pin-project-lite v0.2.13
   Compiling syn v1.0.109
   Compiling serde v1.0.193
   Compiling log v0.4.20
   Compiling bitflags v2.4.0
   Compiling memchr v2.6.3
   Compiling once_cell v1.18.0
   Compiling futures-io v0.3.28
   Compiling scopeguard v1.2.0
   Compiling memoffset v0.9.0
   Compiling slab v0.4.9
   Compiling itoa v1.0.9
   Compiling vcpkg v0.2.15
   Compiling crossbeam-utils v0.8.16
   Compiling tracing-core v0.1.31
   Compiling openssl-sys v0.9.93
   Compiling memoffset v0.7.1
   Compiling crossbeam-epoch v0.9.15
   Compiling bitflags v1.3.2
   Compiling bytes v1.5.0
   Compiling serde_derive v1.0.193
   Compiling tracing-attributes v0.1.26
   Compiling simd-adler32 v0.3.7
   Compiling futures-task v0.3.28
   Compiling tokio-macros v2.2.0
   Compiling tracing v0.1.37
   Compiling signal-hook-registry v1.4.1
   Compiling socket2 v0.5.5
   Compiling num_cpus v1.16.0
   Compiling mio v0.8.10
   Compiling futures-sink v0.3.28
   Compiling version_check v0.9.4
   Compiling equivalent v1.0.1
   Compiling rayon-core v1.12.0
   Compiling typenum v1.17.0
   Compiling futures-util v0.3.28
   Compiling event-listener v2.5.3
   Compiling hashbrown v0.14.1
   Compiling generic-array v0.14.7
   Compiling tokio v1.35.1
   Compiling nix v0.26.4
   Compiling indexmap v2.0.2
   Compiling crossbeam-deque v0.8.3
   Compiling wayland-sys v0.31.1
   Compiling lock_api v0.4.10
   Compiling indexmap v1.9.3
   Compiling libloading v0.8.0
   Compiling foreign-types-shared v0.1.1
   Compiling adler v1.0.2
   Compiling winnow v0.5.15
   Compiling fnv v1.0.7
   Compiling crc32fast v1.3.2
   Compiling toml_datetime v0.6.5
   Compiling pin-utils v0.1.0
   Compiling openssl v0.10.57
   Compiling http v0.2.9
   Compiling toml_edit v0.19.15
   Compiling miniz_oxide v0.7.1
   Compiling foreign-types v0.3.2
   Compiling dlib v0.5.2
   Compiling concurrent-queue v2.3.0
   Compiling openssl-macros v0.1.1
   Compiling wayland-backend v0.3.2
   Compiling socket2 v0.4.9
   Compiling num-traits v0.2.16
   Compiling hashbrown v0.12.3
   Compiling futures-channel v0.3.28
   Compiling ryu v1.0.15
   Compiling native-tls v0.2.11
   Compiling httparse v1.8.0
   Compiling serde_json v1.0.108
   Compiling tinyvec_macros v0.1.1
   Compiling fastrand v1.9.0
   Compiling parking v2.1.1
   Compiling rustix v0.38.25
   Compiling waker-fn v1.1.1
   Compiling futures-lite v1.13.0
   Compiling proc-macro-crate v1.3.1
   Compiling tinyvec v1.6.0
   Compiling tokio-util v0.7.9
   Compiling async-lock v2.8.0
   Compiling zvariant_utils v1.0.1
   Compiling quick-xml v0.30.0
   Compiling num-integer v0.1.45
   Compiling fastrand v2.0.1
   Compiling linux-raw-sys v0.4.11
   Compiling try-lock v0.2.4
   Compiling smallvec v1.11.1
   Compiling percent-encoding v2.3.0
   Compiling scoped-tls v1.0.1
   Compiling openssl-probe v0.1.5
   Compiling either v1.9.0
   Compiling downcast-rs v1.2.0
   Compiling io-lifetimes v1.0.11
   Compiling rayon v1.8.0
   Compiling form_urlencoded v1.2.0
   Compiling want v0.3.1
   Compiling wayland-scanner v0.31.0
   Compiling h2 v0.3.21
   Compiling flate2 v1.0.27
   Compiling spin v0.9.8
   Compiling unicode-normalization v0.1.22
   Compiling http-body v0.4.5
   Compiling enumflags2_derive v0.7.8
   Compiling serde_derive_internals v0.26.0
   Compiling aho-corasick v1.1.1
   Compiling getrandom v0.2.10
   Compiling num-rational v0.4.1
   Compiling polling v2.8.0
   Compiling schemars v0.8.15
   Compiling rustix v0.37.24
   Compiling unicode-bidi v0.3.13
   Compiling tower-service v0.3.2
   Compiling httpdate v1.0.3
   Compiling weezl v0.1.7
   Compiling strsim v0.10.0
   Compiling regex-syntax v0.8.2
   Compiling iana-time-zone v0.1.57
   Compiling ident_case v1.0.1
   Compiling atomic-waker v1.1.2
   Compiling async-task v4.4.1
   Compiling piper v0.2.1
   Compiling darling_core v0.13.4
   Compiling chrono v0.4.31
   Compiling regex-automata v0.4.3
   Compiling hyper v0.14.27
   Compiling idna v0.4.0
   Compiling rand_core v0.6.4
   Compiling schemars_derive v0.8.15
   Compiling enumflags2 v0.7.8
   Compiling wayland-client v0.31.1
   Compiling flume v0.11.0
   Compiling tokio-native-tls v0.3.1
   Compiling jpeg-decoder v0.3.0
   Compiling zvariant_derive v3.15.0
   Compiling block-buffer v0.10.4
   Compiling crypto-common v0.1.6
   Compiling async-channel v1.9.0
   Compiling fdeflate v0.3.0
   Compiling zune-inflate v0.2.54
   Compiling async-fs v1.6.0
   Compiling async-io v1.13.0
   Compiling byteorder v1.4.3
   Compiling async-trait v0.1.75
   Compiling static_assertions v1.1.0
   Compiling ppv-lite86 v0.2.17
   Compiling bit_field v0.10.2
   Compiling linux-raw-sys v0.3.8
   Compiling utf8parse v0.2.1
   Compiling color_quant v1.1.0
   Compiling lebe v0.5.2
   Compiling half v2.2.1
   Compiling dyn-clone v1.0.14
   Compiling bytemuck v1.14.0
   Compiling exr v1.71.0
   Compiling qoi v0.4.1
   Compiling gif v0.12.0
   Compiling anstyle-parse v0.2.2
   Compiling rand_chacha v0.3.1
   Compiling png v0.17.10
   Compiling zvariant v3.15.0
   Compiling blocking v1.4.0
   Compiling digest v0.10.7
   Compiling wayland-protocols v0.31.0
   Compiling tiff v0.9.0
   Compiling hyper-tls v0.5.0
   Compiling regex v1.10.2
   Compiling url v2.4.1
   Compiling darling_macro v0.13.4
   Compiling serde_urlencoded v0.7.1
   Compiling serde_spanned v0.6.5
   Compiling encoding_rs v0.8.33
   Compiling anyhow v1.0.75
   Compiling mime v0.3.17
   Compiling cpufeatures v0.2.9
   Compiling base64 v0.21.4
   Compiling ipnet v2.8.0
   Compiling anstyle-query v1.0.0
   Compiling anstyle v1.0.4
   Compiling colorchoice v1.0.0
   Compiling option-ext v0.2.0
   Compiling dirs-sys v0.4.1
   Compiling anstream v0.6.4
   Compiling reqwest v0.11.20
   Compiling sha1 v0.10.6
   Compiling image v0.24.7
   Compiling toml_edit v0.21.0
   Compiling darling v0.13.4
   Compiling zbus_macros v3.14.1
   Compiling aw-models v0.1.0 (https://github.com/ActivityWatch/aw-server-rust?rev=448312d#448312d4)
   Compiling zbus_names v2.6.0
   Compiling rand v0.8.5
   Compiling async-executor v1.5.4
   Compiling is-terminal v0.4.9
   Compiling xdg-home v1.0.0
   Compiling async-broadcast v0.5.1
   Compiling derivative v2.2.0
   Compiling serde_repr v0.1.16
   Compiling async-recursion v1.0.5
   Compiling ordered-stream v0.2.0
   Compiling gethostname v0.4.3
   Compiling lazy_static v1.4.0
   Compiling clap_lex v0.6.0
   Compiling x11rb-protocol v0.13.0
   Compiling hex v0.4.3
   Compiling clap_builder v4.4.11
   Compiling colored v1.9.4
   Compiling zbus v3.14.1
   Compiling aw-client-rust v0.1.0 (https://github.com/ActivityWatch/aw-server-rust?rev=448312d#448312d4)
   Compiling x11rb v0.13.0
   Compiling serde_default v0.1.0
   Compiling awatcher v0.2.4 (/home/kunal/.cache/yay/awatcher-git/src/awatcher)
   Compiling toml v0.8.8
   Compiling dirs v5.0.1
   Compiling wayland-protocols-wlr v0.2.0
   Compiling wayland-protocols-plasma v0.2.0
   Compiling clap v4.4.11
   Compiling fern v0.6.2
   Compiling watchers v0.2.4 (/home/kunal/.cache/yay/awatcher-git/src/awatcher/watchers)
error[E0706]: functions in traits cannot be declared `async`
  --> watchers/src/watchers/gnome_idle.rs:32:5
   |
32 |     async fn load() -> anyhow::Result<Self> {
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

error[E0706]: functions in traits cannot be declared `async`
 --> watchers/src/watchers/gnome_wayland.rs:3:5
  |
3 |       async fn load() -> anyhow::Result<Self>
  |       ^----
  |       |
  |  _____`async` because of this
  | |
4 | |     where
5 | |         Self: Sized;
  | |____________________^
  |
  = note: `async` trait functions are not currently supported
  = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
  = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

error[E0706]: functions in traits cannot be declared `async`
  --> watchers/src/watchers/gnome_window.rs:83:5
   |
83 |     async fn load() -> anyhow::Result<Self> {
   |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     `async` because of this
   |
   = note: `async` trait functions are not currently supported
   = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
   = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information

For more information about this error, try `rustc --explain E0706`.
error: could not compile `watchers` (lib) due to 3 previous errors
warning: build failed, waiting for other jobs to finish...
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: awatcher-git-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
awatcher-git - exit status 4
@2e3s
Copy link
Owner

2e3s commented Jan 28, 2024

Hello! I think your rust is outdated. Async in traits has been stabilized a few months ago.

@kun-codes
Copy link
Author

hello, I am currently on a fully updated arch linux system. I believe that I am on the latest version of rust

Can you please tell me the names of the packages which I need to check for the versions? I would check it and post the results here afterwards

@kun-codes
Copy link
Author

I managed to compile it after installing the rust package instead of rustup, although I don't know what is the difference between both of them

@2e3s
Copy link
Owner

2e3s commented Jan 29, 2024

Okay, great. I don't use Arch, but "rustup" is not a rust compiler, it's a tool to install any version of rust and its components.

@2e3s 2e3s closed this as completed Jan 29, 2024
@kun-codes
Copy link
Author

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants