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

failed to run custom build command for `scrap v0.5.0 (C:\Users\1\rustdesk\libs\scrap #46

Open
QYH2MMT4EVER opened this issue Mar 6, 2023 · 2 comments

Comments

@QYH2MMT4EVER
Copy link

$ cargo run
Compiling hbb_common v0.1.0 (C:\Users\1\rustdesk\libs\hbb_common)
Compiling scrap v0.5.0 (C:\Users\1\rustdesk\libs\scrap)
Compiling hyper-rustls v0.23.2
Compiling reqwest v0.11.13
error: failed to run custom build command for scrap v0.5.0 (C:\Users\1\rustdesk\libs\scrap)

Caused by:
process didn't exit successfully: C:\Users\1\rustdesk\target\debug\build\scrap-80d6c6f8afe2291c\build-script-build (exit code: 101)
--- stdout
cargo:info=x64-windows-static
cargo:rustc-link-lib=static=yuv
cargo:rustc-link-search=C:/Users/1/vcpkg\installed\x64-windows-static\lib
cargo:include=C:/Users/1/vcpkg\installed\x64-windows-static\include
cargo:info=x64-windows-static
cargo:rustc-link-lib=static=vpx
cargo:rustc-link-search=C:/Users/1/vcpkg\installed\x64-windows-static\lib
cargo:include=C:/Users/1/vcpkg\installed\x64-windows-static\include
rerun-if-changed=C:\Users\1\rustdesk\libs\scrap\vpx_ffi.h
rerun-if-changed=C:/Users/1/vcpkg\installed\x64-windows-static\include

--- stderr
thread 'main' panicked at 'called Result::unwrap() on an Err value: LexError { span: Span }', C:\Users\1.cargo\registry\src\github.com-1ecc6299db9ec823\bindgen-0.59.2\src\codegen\mod.rs:4577:66
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

@QYH2MMT4EVER
Copy link
Author

uninstall your llvm and install the version as follow,last but not least do not forget to“Add LLVM to the system PATH for all users”

安装 llvm,下载地址

https://prereleases.llvm.org/win-snapshots/LLVM-12.0.0-6923b0a7-win64.exe

@sdeass
Copy link

sdeass commented Aug 10, 2024

vcpkg/vcpkg install llvm
Computing installation plan...
The following packages will be built and installed:
llvm[clang,core,default-targets,enable-bindings,enable-terminfo,enable-zlib,enable-zstd,lld,target-x86,tools]:x64-osx@18.1.6
Detecting compiler hash for triplet x64-osx...
Compiler found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
Restored 0 package(s) from /Users/qunfangshi/.cache/vcpkg/archives in 226 us. Use --debug to see more details.
Installing 1/1 llvm[clang,core,default-targets,enable-bindings,enable-terminfo,enable-zlib,enable-zstd,lld,target-x86,tools]:x64-osx@18.1.6...
Building llvm[clang,core,default-targets,enable-bindings,enable-terminfo,enable-zlib,enable-zstd,lld,target-x86,tools]:x64-osx@18.1.6...
-- Using cached llvm-llvm-project-llvmorg-18.1.6.tar.gz.
-- Cleaning sources at /Users/qunfangshi/vcpkg/buildtrees/llvm/src/org-18.1.6-0d643cbd61.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /Users/qunfangshi/vcpkg/downloads/llvm-llvm-project-llvmorg-18.1.6.tar.gz
-- Applying patch 0001-fix-install-package-dir.patch
-- Applying patch 0002-fix-tools-install-dir.patch
-- Applying patch 0003-fix-llvm-config.patch
-- Applying patch 0004-disable-libomp-aliases.patch
-- Applying patch 0005-remove-numpy.patch
-- Applying patch 0006-create-destination-mlir-directory.patch
-- Applying patch 75711.patch
-- Applying patch 79694.patch
-- Applying patch 82407.patch
-- Using source at /Users/qunfangshi/vcpkg/buildtrees/llvm/src/org-18.1.6-0d643cbd61.clean
-- Found external ninja('1.12.1').
-- Getting CMake variables for x64-osx
-- Configuring x64-osx
-- Building x64-osx-dbg

It is pending one hours

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants