aes: x86_64-unknown-none breaks on Rust 1.100

Ouverte
#607 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
1-2 jours
Accessibilité débutants
55/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
rust
Domaine
backend

Piste de recherche

Start with aes-0.9.4/src/backends/x86_aes.rs:40 and inspect the sse target feature warning for x86_64-unknown-none. Reproduce the build with Rust 1.100 and cargo report future-incompatibilities --id 1; determine whether the warning and LLVM error share a cause. Done means the target compiles without the reported failure and the issue’s relationship between the two diagnostics is clarified.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

The aes crate does not build anymore on Rust 1.100.

See the output of cargo report future-incompatibilities --id 1:

[...]
The package `aes v0.9.4` currently triggers the following future incompatibility lints:
> warning: enabling the `sse` target feature on the current target is unsupported due to LLVM backend issues
>   --> /home/user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/aes-0.9.4/src/backends/x86_aes.rs:40:22
>    |
> 40 |     #[target_feature(enable = "aes")]
>    |                      ^^^^^^^^^^^^^^
>    |
>    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
>    = note: for more information, see issue #117938 <https://github.com/rust-lang/rust/issues/117938>
[...]

This gives the following error when compiling for x86_64-unknown-none:

   Compiling mycrate v0.1.0 (/home/user/mycrate)
rustc-LLVM ERROR: Do not know how to split the result of this operator!

error: could not compile `mycrate` (lib)

(although this might be 2 different problems)

Langage dominant
Rust
Étoiles
789
Forks
160
Merge moyen
7 min
PR mergées (30 j)
1

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de RustCrypto/block-ciphers

Toutes les issues de RustCrypto/block-ciphers

Issues similaires

Plus d'issues Rust

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.