YaLTeR / wl-clipboard-rs

A safe Rust crate for working with the Wayland clipboard.
Apache License 2.0
223 stars 16 forks source link

Failed to build on LoongArch #41

Closed zoze0 closed 5 months ago

zoze0 commented 5 months ago
error[E0432]: unresolved import `self::consts`
  --> /home/test/.cargo/bin/registry/src/rsproxy.cn-0dccff568467c15b/nix-0.26.4/src/sys/ioctl/linux.rs:60:15
   |
60 | pub use self::consts::*;
   |               ^^^^^^ could not find `consts` in `self`

error[E0425]: cannot find value `SIZEBITS` in this scope
  --> /home/test/.cargo/bin/registry/src/rsproxy.cn-0dccff568467c15b/nix-0.26.4/src/sys/ioctl/linux.rs:69:50
   |
69 | pub const DIRSHIFT: ioctl_num_type = SIZESHIFT + SIZEBITS as ioctl_num_type;
   |                                                  ^^^^^^^^ not found in this scope

error[E0425]: cannot find value `SIZEBITS` in this scope
  --> /home/test/.cargo/bin/registry/src/rsproxy.cn-0dccff568467c15b/nix-0.26.4/src/sys/ioctl/linux.rs:76:44
   |
76 | pub const SIZEMASK: ioctl_num_type = (1 << SIZEBITS) - 1;
   |                                            ^^^^^^^^ not found in this scope

error[E0425]: cannot find value `DIRBITS` in this scope
  --> /home/test/.cargo/bin/registry/src/rsproxy.cn-0dccff568467c15b/nix-0.26.4/src/sys/ioctl/linux.rs:78:43
   |
13 | pub const NRBITS: ioctl_num_type = 8;
   | ------------------------------------- similarly named constant `NRBITS` defined here
...
78 | pub const DIRMASK: ioctl_num_type = (1 << DIRBITS) - 1;
   |                                           ^^^^^^^ help: a constant with a similar name exists: `NRBITS`

nix-0.27.1 should fixes this problem.

YaLTeR commented 5 months ago

I upgraded all dependencies, could you please check if it fixes the problem?

jiegec commented 5 months ago

The problem is fixed.

zoze0 commented 5 months ago

It works well. When will the new version be released.?

YaLTeR commented 4 months ago

Sorry for the delay, I published v0.8.1 now. I also further bumped nix to 0.28, hopefully it doesn't break it again.

I am also planning to move from nix to rustix, because wayland-rs did, so hopefully this also won't break things.

zoze0 commented 4 months ago

Thanks a lot! I will continue to track and report any break issues.