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

ring-0.16.20 compile error #1471

Closed
ArunGust opened this issue Mar 26, 2022 · 11 comments
Closed

ring-0.16.20 compile error #1471

ArunGust opened this issue Mar 26, 2022 · 11 comments

Comments

@ArunGust
Copy link

ArunGust commented Mar 26, 2022

I got below error.(env: rustc 1.61.0-nightly (d53246fed 2022-03-25))

registry\src\github.jparrowsec.cn-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

Compiling h2 v0.1.26
error[E0425]: cannot find value AES in module cpu::arm
--> registry\src\github.jparrowsec.cn-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
--> registry\src\github.jparrowsec.cn-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
--> \registry\src\github.jparrowsec.cn-1ecc6299db9ec823\ring-0.16.20\src\cpu.rs:235:41
|
235 | if self.mask == self.mask & ARMCAP_STATIC {
| ^^^^^^^^^^^^^ not found in this scope

Compiling flate2 v0.2.20
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: build failed

@Liu-WeiHu
Copy link

I have the same problem

@spa5k
Copy link

spa5k commented Mar 26, 2022

Same problem

@Antiarchitect
Copy link

Antiarchitect commented Mar 27, 2022

Same. Official rust docker image 1.59.0 and ring 0.16.20

@Jerrody
Copy link

Jerrody commented Mar 27, 2022

Yep, the same problem.

@Samuel-B-D
Copy link

Same here. Seems broken on nightly 1.61.0-nightly; it worked for me on 1.60.0-nightly this morning.

@ArunGust
Copy link
Author

ArunGust commented Mar 28, 2022

Same here. Seems broken on nightly 1.61.0-nightly; it worked for me on 1.60.0-nightly this morning.

thanks, will test

This worked (for others)
rustup install nightly-2022-01-13
rustup override set nightly-2022-01-13

@kekeimiku
Copy link

Same problem.

@HTGAzureX1212
Copy link

I just encountered this issue today with this workflow: https://github.com/HarTexTeam/HarTex-rust-discord-bot/runs/5715118385?check_suite_focus=true

@HTGAzureX1212
Copy link

See also issue on upstream Rust: rust-lang/rust#95267

@ArunGust
Copy link
Author

rollback to rustc 1.60.0-nightly (1bd4fdc94 2022-01-12) works for now

rustup install nightly-2022-01-13
rustup override set nightly-2022-01-13

@briansmith
Copy link
Owner

Thanks for the report. This is a duplicate of #1469, so closing in favor of that issue, which notes in its description that this is an issue specifically about building with Nightly Rust.

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

9 participants