windows-gnu: Failed to load codegen backend: LoadLibraryExw failed: The specified procedure could not be found. (os error 127)

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
rust

調査の方向性

rust-toolchain.toml の nightly バージョン、git の spirv-builder 依存関係、および Windows 11 上での cargo build を使って、まず失敗を再現します。rustc_codegen_spirv.dll を読み込めない理由を調査し、同じビルドスクリプトが LoadLibraryExW エラーなしで完了することを確認します。

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

説明

bug
Expected Behaviour

Build script using spirv-builder runs without errors

Example & Steps To Reproduce
  1. Copy rust-toolchain.toml to use rustc nightly-2025-06-23
  2. build-dependency spirv-builder = { git = "https://github.com/Rust-GPU/rust-gpu" }
  3. cargo build

The build fails with the full error:

    error: couldn't load codegen backend \\?\C:\Users\****\Downloads\fvm2d\target\debug\deps\rustc_codegen_spirv.dll: LoadLibraryExW failed: The specified procedure could not be found. (os error 127) (The specified procedure could not be found. (os error 127)) (retried 5 times)

rustc_codegen_spirv.dll does exist in that location, but the error suggests that some symbol is missing that is attempting to be loaded. I don't know how to get the name of the procedure it wants.

System Info

  • Rust: rustc 1.89.0-nightly (be19eda0d 2025-06-22) (the date on this value always seems to be 1 day behind the version specified in rust-toolchain.toml)
  • OS: Win11
  • GPU: NVIDIA GeForce MX450
  • SPIR-V: SPIRV-Tools v2025.2 unknown hash, 2025-05-06T12:14:19+00:00
主要言語
Rust
スター
3.4k
フォーク
126
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

Rust-GPU/rust-gpu のほかの issue

Rust-GPU/rust-gpu の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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