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

03-22的nightly版本,发生编译失败 #15

Closed
dev4u opened this issue Mar 24, 2022 · 4 comments
Closed

03-22的nightly版本,发生编译失败 #15

dev4u opened this issue Mar 24, 2022 · 4 comments

Comments

@dev4u
Copy link

dev4u commented Mar 24, 2022

我升级nightly版本到03-23,编译shadowsocks-rust项目失败。03-22的nightly版本没这个问题。
rustup -V

rustup 1.24.3 (ce5817a94 2021-05-31)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.61.0-nightly (9f4dc0b4d 2022-03-23)`
error: no rules expected the token `aarch64_apple`
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/src/cpu.rs:257:13
no rules expected the token `aarch64_apple`

    |
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`
   --> /.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`
   --> /.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 `NEON` in this scope
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/src/cpu.rs:95:32
    |
95  |             let mut features = NEON.mask;
    |                                ^^^^ not found in this scope
    |
note: unit variant `crate::aead::gcm::Implementation::NEON` exists but is inaccessible
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/src/aead/gcm.rs:289:5
    |
289 |     NEON,
    |     ^^^^ not accessible

error[E0425]: cannot find value `AES` in this scope
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/src/cpu.rs:114:29
    |
114 |                 features |= AES.mask;
    |                             ^^^ not found in this scope
    |
help: consider importing this constant
    |
64  |     use crate::cpu::intel::AES;
    |

error[E0425]: cannot find value `PMULL` in this scope
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/src/cpu.rs:117:29
    |
117 |                 features |= PMULL.mask;
    |                             ^^^^^ not found in this scope

error[E0425]: cannot find value `SHA256` in this scope
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/src/cpu.rs:120:29
    |
120 |                 features |= SHA256.mask;
    |                             ^^^^^^ not found in this scope
    |
help: consider importing this static
    |
64  |     use crate::digest::SHA256;
    |

error[E0425]: cannot find value `ARMCAP_STATIC` in this scope
   --> /.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

error[E0425]: cannot find value `ARMCAP_STATIC` in this scope
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/src/cpu.rs:288:36
    |
288 |     static mut GFp_armcap_P: u32 = ARMCAP_STATIC;
    |                                    ^^^^^^^^^^^^^ not found in this scope

For more information about this error, try `rustc --explain E0425`.
error: could not compile `ring` due to 9 previous errors
warning: build failed, waiting for other jobs to finish...
could not compile `ring` due to 9 previous errors

build failed, waiting for other jobs to finish...

error: build failed
build failed
dev4u referenced this issue in shadowsocks/shadowsocks-rust Mar 24, 2022
@zonyitoo
Copy link
Collaborator

Well, then it must be a regression in rustc. Just wait for the next release.

@dev4u
Copy link
Author

dev4u commented Mar 25, 2022

好的,那我先指定版本来编译。

@zonyitoo
Copy link
Collaborator

Related issue: briansmith/ring#1469

@dev4u
Copy link
Author

dev4u commented Mar 31, 2022

03-30 nightly toolchain顺利编译通过。

@dev4u dev4u closed this as completed Mar 31, 2022
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