cargo-edit icon indicating copy to clipboard operation
cargo-edit copied to clipboard

Failing aarch64_apple: Update / Install on Windows 10

Open Zageron opened this issue 2 years ago • 3 comments

cargo 1.61.0-nightly (109bfbd05 2022-03-17) rustc 1.61.0-nightly (ab0c2e18d 2022-03-27)

Upgrading from cargo-edit 8 to 9.

   Compiling dirs-next v2.0.0
error: no rules expected the token `aarch64_apple`
   --> C:\Users\Zageron\.cargo\registry\src\github.com-1ecc6299db9ec823\ring-0.16.20\src\cpu.rs:257:13
    |
165 |     macro_rules! features {
    |     --------------------- when calling this macro
...
257 |             aarch64_apple: true,
    |             ^^^^^^^^^^^^^ no rules expected this token in macro call

error[E0425]: cannot find value `AES` in module `cpu::arm`
   --> C:\Users\Zageron\.cargo\registry\src\github.com-1ecc6299db9ec823\ring-0.16.20\src\aead\aes.rs:381:65
    |
381 |         if cpu::intel::AES.available(cpu_features) || cpu::arm::AES.available(cpu_features) {
    |                                                                 ^^^ not found in `cpu::arm`
    |
help: consider importing this constant
    |
15  | use crate::cpu::intel::AES;
    |

error[E0425]: cannot find value `PMULL` in module `cpu::arm`
   --> C:\Users\Zageron\.cargo\registry\src\github.com-1ecc6299db9ec823\ring-0.16.20\src\aead\gcm.rs:315:26
    |
315 |             || cpu::arm::PMULL.available(cpu_features)
    |                          ^^^^^ not found in `cpu::arm`

error[E0425]: cannot find value `ARMCAP_STATIC` in this scope
   --> C:\Users\Zageron\.cargo\registry\src\github.com-1ecc6299db9ec823\ring-0.16.20\src\cpu.rs:235:41
    |
235 |             if self.mask == self.mask & ARMCAP_STATIC {
    |                                         ^^^^^^^^^^^^^ not found in this scope

   Compiling clap_derive v3.1.4
For more information about this error, try `rustc --explain E0425`.
error: could not compile `ring` due to 4 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-edit v0.9.0`, intermediate artifacts can be found at `C:\Users\Zageron\AppData\Local\Temp\cargo-installXpjMFX`

Caused by:
  build failed

Zageron avatar Mar 28 '22 20:03 Zageron

Me too. I am under macos, same error.

getong avatar Mar 29 '22 02:03 getong

Linux same error.

songww avatar Mar 29 '22 05:03 songww

Alright, tried again the next day after a system restart and it installed successfully.

Zageron avatar Mar 29 '22 23:03 Zageron