aes: x86_64-unknown-none breaks on Rust 1.100

Offen
#607 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
rust
Bereich
backend

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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)

Vorherrschende Sprache
Rust
Sterne
789
Forks
160
Ø Merge
7 Min.
Gemergte PRs (30 T.)
1

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus RustCrypto/block-ciphers

Alle Issues in RustCrypto/block-ciphers

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.