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

Build breaks on Rust 1.48 #13808

Closed
hendrikhofstadt opened this issue Nov 25, 2020 · 0 comments
Closed

Build breaks on Rust 1.48 #13808

hendrikhofstadt opened this issue Nov 25, 2020 · 0 comments

Comments

@hendrikhofstadt
Copy link
Contributor

Problem

Solana does not build on Rust 1.48

error: attribute should be applied to a function
   --> core/src/validator.rs:953:9
    |
953 |           #[target_feature(enable = "avx")]
    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
954 | /         {
955 | |             if is_x86_feature_detected!("avx") {
956 | |                 info!("AVX detected");
957 | |             } else {
...   |
960 | |             }
961 | |         }
    | |_________- not a function

This is likely due to changed checks for target_feature in the new Rust release:

https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1480-2020-11-19
rust-lang/rust#78143

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant