EmbarkStudios / rust-gpu

🐉 Making Rust a first-class language and ecosystem for GPU shaders 🚧

Home Page:https://shader.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spirv-tools: Assertion `env != SPV_ENV_WEBGPU_0' failed.(my bug report)

sirati opened this issue · comments

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