Open QYH2MMT4EVER opened 1 year ago
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”
https://prereleases.llvm.org/win-snapshots/LLVM-12.0.0-6923b0a7-win64.exe
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
$ 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 anErr
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 withRUST_BACKTRACE=1
environment variable to display a backtrace warning: build failed, waiting for other jobs to finish...