[Migrated] spirv-tools: Assertion `env != SPV_ENV_WEBGPU_0' failed.(my bug report)
Nessuno ha ancora preso questa issue.
- Lingua principale
- Rust
- Stelle
- 3.4k
- Fork
- 126
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Issue automatically imported from old repo: https://github.com/EmbarkStudios/rust-gpu/issues/1141
Old labels: t: bug
Originally creatd by sirati on 2024-04-05T23:00:44Z
rustc: spirv-tools/source/opt/optimizer.cpp:66: spvtools::Optimizer::Optimizer(spv_target_env): Assertion `env != SPV_ENV_WEBGPU_0' failed.
Expected Behaviour
properly compiling
Example & Steps To Reproduce
researching this. so far i have nothing but stub methods in my project and this still triggers. dont know if this is a portable bug yet.
System Info
- Rust:
rustc 1.71.0-nightly (1a5f8bce7 2023-05-26) - OS: PopOS
- GPU: Intel(R) UHD Graphics 630
- SPIR-V: apparently not installed, but it cann still run spirv-tools code?!?!??! Installing did not help
Backtrace
Backtrace
/home/sirati/.cargo/bin/cargo check --message-format json --workspace --all-targets -Z unstable-options --keep-going
Checking ahash v0.8.11
Checking hashbrown v0.14.3
Checking indexmap v2.2.6
Checking gpu-descriptor v0.2.4
Checking naga v0.19.2
Checking civ3-renderer-shaders v0.1.0 (/home/sirati/RustroverProjects/Civ3Renderer/shaders)
Compiling Civ3Renderer v0.1.0 (/home/sirati/RustroverProjects/Civ3Renderer)
Checking wgpu-hal v0.19.3
Checking wgpu-core v0.19.3
Checking wgpu v0.19.3
error: failed to run custom build command for `Civ3Renderer v0.1.0 (/home/sirati/RustroverProjects/Civ3Renderer)`
error: failed to run custom build command for `Civ3Renderer v0.1.0 (/home/sirati/RustroverProjects/Civ3Renderer)`
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_DEV_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.
Caused by:
process didn't exit successfully: `/home/sirati/RustroverProjects/Civ3Renderer/target/debug/build/Civ3Renderer-da0432a522988ca8/build-script-build` (exit status: 1)
--- stdout
cargo:rerun-if-env-changed=RUSTGPU_CODEGEN_ARGS
cargo:rerun-if-env-changed=RUSTGPU_RUSTFLAGS
--- stderr
Compiling civ3-renderer-shaders v0.1.0 (/home/sirati/RustroverProjects/Civ3Renderer/shaders)
rustc: spirv-tools/source/opt/optimizer.cpp:66: spvtools::Optimizer::Optimizer(spv_target_env): Assertion `env != SPV_ENV_WEBGPU_0' failed.
error: could not compile `civ3-renderer-shaders` (lib)
Error: BuildFailed
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia eseguendo il comando cargo check riportato nell’esempio Civ3Renderer e conferma se il fallimento è riproducibile con l’ambiente Rust e PopOS indicato. Traccia la compilazione dello shader attraverso il comando di build personalizzato fino all’assertion in spirv-tools/source/opt/optimizer.cpp. Il lavoro è completo quando viene identificata una causa portabile e viene ripristinata la compilazione, con una riproduzione mirata o un test se il progetto ne supporta uno.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rust
- Ambito
- compilers, computer-graphics
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100