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

WebGPU build fails due to missing 'tint' shader compiler #9788

Open
ig-gh opened this issue Nov 19, 2024 · 0 comments
Open

WebGPU build fails due to missing 'tint' shader compiler #9788

ig-gh opened this issue Nov 19, 2024 · 0 comments
Assignees
Labels
bob Issues related to the bob command line build tool bug Something is not working as expected editor Issues related to the Defold editor webgpu

Comments

@ig-gh
Copy link

ig-gh commented Nov 19, 2024

Description
WebGPU variant build fails in default desktop template with app manifest, while WebGL works fine.
Error occurs during shader compilation due to missing 'tint' compiler.

Steps to reproduce

  1. Create new project from desktop template
  2. Add app manifest
  3. Build for HTML5 platform with WebGPU variant

Expected behavior

  • WebGPU variant should build successfully

Current behavior

  • Build fails with error about missing tint
  • WebGL variant builds successfully

Defold version

  • Version: 1.9.5

Platforms

  • Platform: HTML5/WebGPU
  • OS: Debian 12 + X11 (Gnome)

Minimal repro case project
desktop-webGPU.zip

Error log

Build Remote Engine...
java.io.IOException: Cannot run program "/tmp/6560141560255131250/x86_64-linux/tint": error=2, No such file or directory
 at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
 at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
 at com.dynamo.bob.util.Exec.execResult(Exec.java:100)
 at com.dynamo.bob.pipeline.shader.ShaderCompilePipeline.generateWGSL(ShaderCompilePipeline.java:134)
 at com.dynamo.bob.pipeline.shader.ShaderCompilePipelineLegacy.compileSPIRVToWGSL(ShaderCompilePipelineLegacy.java:83)
 at com.dynamo.bob.pipeline.shader.ShaderCompilePipelineLegacy.crossCompile(ShaderCompilePipelineLegacy.java:250)
 at com.dynamo.bob.pipeline.ShaderCompilers$CommonShaderCompiler.compile(ShaderCompilers.java:101)
 at com.dynamo.bob.pipeline.ShaderProgramBuilder.makeShaderDesc(ShaderProgramBuilder.java:140)
 at com.dynamo.bob.pipeline.ShaderProgramBuilder.getCompiledShaderDesc(ShaderProgramBuilder.java:158)
 at com.dynamo.bob.pipeline.VertexProgramBuilder.build(VertexProgramBuilder.java:33)
 at com.dynamo.bob.Project.runTasks(Project.java:1876)
 at com.dynamo.bob.Project.createAndRunTasks(Project.java:1530)
 at com.dynamo.bob.Project.doBuild(Project.java:1667)
 at com.dynamo.bob.Project.build(Project.java:693)
 at com.dynamo.bob.Bob.invoke(Bob.java:966)
 at editor.pipeline.bob$invoke_BANG_.invokeStatic(bob.clj:256)
 at editor.disk$async_bob_build_BANG_$fn__58400$fn__58405$fn__58406.invoke(disk.clj:363)
 at clojure.core$binding_conveyor_fn$fn__5739.invoke(core.clj:2030)
 at clojure.lang.AFn.call(AFn.java:18)
 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
 at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.io.IOException: error=2, No such file or directory
 at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
 at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:314)
 at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
 at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
 ... 22 more
@ig-gh ig-gh added the bug Something is not working as expected label Nov 19, 2024
@britzl britzl added the webgpu label Nov 25, 2024
@britzl britzl added editor Issues related to the Defold editor bob Issues related to the bob command line build tool labels Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bob Issues related to the bob command line build tool bug Something is not working as expected editor Issues related to the Defold editor webgpu
Projects
None yet
Development

No branches or pull requests

3 participants