Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sirati opened this issue Apr 5, 2024 · 0 comments
Open
Labels
t: bug Something isn't working

Comments

@sirati
Copy link

sirati commented Apr 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant