Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

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