Skip to content

Current build fails on Windows #91

@almarklein

Description

@almarklein

I am currently unable to build wgpu-native on Windows, and the CI fails with the same error:

The following warnings were emitted during compilation:

warning: couldn't execute `llvm-config --prefix` (error: The system cannot find the file specified. (os error 2))
warning: set the LLVM_CONFIG_PATH environment variable to the full path to a valid `llvm-config` executable (including the executable itself)

error: failed to run custom build command for `wgpu-native v0.6.0 (D:\a\wgpu-native\wgpu-native)`

Caused by:
  process didn't exit successfully: `D:\a\wgpu-native\wgpu-native\target\debug\build\wgpu-native-6227c725d218db06\build-script-build` (exit code: 101)
  --- stdout
  cargo:rerun-if-changed=ffi/webgpu-headers/webgpu.h
  cargo:rerun-if-changed=ffi/wgpu.h
  cargo:warning=couldn't execute `llvm-config --prefix` (error: The system cannot find the file specified. (os error 2))
  cargo:warning=set the LLVM_CONFIG_PATH environment variable to the full path to a valid `llvm-config` executable (including the executable itself)

  --- stderr
  thread 'main' panicked at 'Unable to find libclang: "the `libclang` shared library at C:\\msys64\\mingw64\\bin\\libclang.dll could not be opened: The specified module could not be found. (os error 126)"', C:\Users\runneradmin\.cargo\registry\src\mygithub.libinneed.workers.dev-1ecc6299db9ec823\bindgen-0.53.3\src/lib.rs:1956:31
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed
mingw32-make: *** [Makefile:87: lib-native] Error 101
Error: Process completed with exit code 2.

I pushed a tag to my fork to trigger building a binary, and got the error shown above. Full run is here: https://github.com/almarklein/wgpu-native/runs/2439175864?check_suite_focus=true

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions