aes: x86_64-unknown-none breaks on Rust 1.100

オープン
#607 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust
領域
backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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)

主要言語
Rust
スター
789
フォーク
160
平均マージ
7分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

RustCrypto/block-ciphers のほかの issue

RustCrypto/block-ciphers の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。