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

Cannot compile on Apple M1 #1283

Closed
christopher-wilke opened this issue May 19, 2023 · 4 comments
Closed

Cannot compile on Apple M1 #1283

christopher-wilke opened this issue May 19, 2023 · 4 comments

Comments

@christopher-wilke
Copy link

I am not able to compile the SDK on my Apple M1 processor. Seems the issue is related to ring.

ring-0.14.6/pregenerated/aesv8-armx-linux64.S:193:1: error: unknown directive .type GFp_aes_hw_decrypt,%function

I believe this is a known issue, please see briansmith/ring#1063

@cataggar
Copy link
Member

Using native-tls is the default, not rustls. Which crate are you wanting to use and what features did you select?

@christopher-wilke
Copy link
Author

christopher-wilke commented May 22, 2023

Hi @cataggar, not sure if I understood you correctly.

When I add the azure_sdk_for_rust crate to my Cargo.toml, Rust Analyzer throws this Error:

[ERROR rust_analyzer::main_loop] FetchBuildDataError: error: failed to run custom build command for ring v0.14.6

I suggest to upgrade ring as this issue has already been resolved.

@cataggar
Copy link
Member

@christopher-wilke, that is an outdated crate, not to be used. Please see:
https://github.com/Azure/azure-sdk-for-rust/blob/main/HISTORY.md

@christopher-wilke
Copy link
Author

christopher-wilke commented May 22, 2023

@cataggar Thx for your quick feedback.

The only thing I did was adding the azure_sdk_for_rust crate to my Cargo.toml file. Then rust-analyzer crashed because of the error above.

Cargo. toml:
azure_sdk_for_rust = "0.12.0"

I tested it on Linux and it worked. So I guess its related to my M1 processor.

Is there anything I miss here?

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