DFIR-ORC / dfir-orc

Forensics artefact collection tool for systems running Microsoft Windows
https://dfir-orc.github.io
GNU Lesser General Public License v2.1
370 stars 42 forks source link

Can't compile because of cli11[core]:x86-windows-static #63

Closed ClemHuriaux closed 2 years ago

ClemHuriaux commented 2 years ago

Hi ! I am trying to do a project using DFIR ORC. I have to install it on a Windows 21h1 (inside a Virtuale Machine). But sadly, I have this error saying the package "cli11[core]:x8-windows-static" can't be dowloaded (404 error). I correctly imported the .vsconfig in my Visual Studio (2019 v.16.11) and the C++ Desktop utilities.

Just to add precision, I did the same thing on my personnal computer, on Windows 11 and I had no problem to compile on it. It works perfectly fine. Do you have any idea why this is not working on Windows 10 ? Is it because it is inside a virtual machine ? Of course, my virtual machine have access over internet.

I thank you in advance if you can help me !

Below, the error:

PS C:\Users\dfir\source\repos\dfir-orc\build-x86> cmake -G "Visual Studio 16 2019" -A Win32 .. -- Found SemVer: 10.1.0 (v10.1.0) CMake Warning at CMakeLists.txt:77 (message): BEWARE: VCPKG is currently compatible ONLY with ENGLISH version of Visual Studio. -- Using vcpkg: C:/Users/dfir/source/repos/dfir-orc/external/vcpkg/vcpkg.exe All installed packages are up-to-date with the local portfiles. -- Install dependencies with: "C:/Users/dfir/source/repos/dfir-orc/external/vcpkg\vcpkg.exe" --vcpkg-root "C:/Users/dfir/source/repos/dfir-orc/external/vcpkg" --overlay-triplets=C:/Users/dfir/source/repos/dfir-orc/build- x86/vcpkg/tripletsinstall 7zip:x86-windows-static boost-algorithm:x86-windows-static boost-dynamic-bitset:x86-windows-static boost-logic:x86-windows-static boost-multi-index:x86-windows-static boost-outcome:x86-windows-s tatic boost-scope-exit:x86-windows-static boost-system:x86-windows-static boost-tokenizer:x86-windows-static fmt:x86-windows-static ms-gsl:x86-windows-static spdlog:x86-windows-static yara:x86-windows-static rapidjson:x8 6-windows-static cli11:x86-windows-static boost-stacktrace:x86-windows-static Computing installation plan... The following packages are already installed: 7zip[core]:x86-windows-static -> 19.00#3 boost-algorithm[core]:x86-windows-static -> 1.77.0 boost-dynamic-bitset[core]:x86-windows-static -> 1.77.0 boost-logic[core]:x86-windows-static -> 1.77.0 boost-multi-index[core]:x86-windows-static -> 1.77.0 boost-outcome[core]:x86-windows-static -> 1.77.0 boost-scope-exit[core]:x86-windows-static -> 1.77.0 boost-stacktrace[core]:x86-windows-static -> 1.77.0 boost-system[core]:x86-windows-static -> 1.77.0 boost-tokenizer[core]:x86-windows-static -> 1.77.0 The following packages will be built and installed: cli11[core]:x86-windows-static -> 2.1.2#1 fmt[core]:x86-windows-static -> 8.0.1 ms-gsl[core]:x86-windows-static -> 3.1.0#1 rapidjson[core]:x86-windows-static -> 2020-09-14#2 spdlog[core]:x86-windows-static -> 1.9.2 yara[core]:x86-windows-static -> 4.1.3 Package 7zip:x86-windows-static is already installed Package boost-algorithm:x86-windows-static is already installed Package boost-dynamic-bitset:x86-windows-static is already installed Package boost-logic:x86-windows-static is already installed Package boost-multi-index:x86-windows-static is already installed Package boost-outcome:x86-windows-static is already installed Package boost-scope-exit:x86-windows-static is already installed Package boost-stacktrace:x86-windows-static is already installed Package boost-system:x86-windows-static is already installed Package boost-tokenizer:x86-windows-static is already installed Detecting compiler hash for triplet x86-windows-static... Restored 0 packages from C:\Users\dfir\AppData\Local\vcpkg\archives in 272.2 us. Use --debug to see more details. Starting package 1/6: cli11:x86-windows-static Building package cli11[core]:x86-windows-static... -- [OVERLAY] Loading triplet configuration from: C:\Users\dfir\source\repos\dfir-orc\build-x86\vcpkg\triplets\x86-windows-static.cmake -- Using cached CLIUtils-CLI11-v2.1.2.tar.gz. -- Cleaning sources at C:/Users/dfir/source/repos/dfir-orc/external/vcpkg/buildtrees/cli11/src/v2.1.2-57e44f74f5.clean. Use --editable to skip cleaning for the packages you specify. -- Extracting source C:/Users/dfir/source/repos/dfir-orc/external/vcpkg/downloads/CLIUtils-CLI11-v2.1.2.tar.gz -- Using source at C:/Users/dfir/source/repos/dfir-orc/external/vcpkg/buildtrees/cli11/src/v2.1.2-57e44f74f5.clean -- Found external ninja('1.10.2'). -- Configuring x86-windows-static -- Building x86-windows-static-dbg -- Building x86-windows-static-rel -- Fixing pkgconfig file: C:/Users/dfir/source/repos/dfir-orc/external/vcpkg/packages/cli11_x86-windows-static/share/pkgconfig/CLI11.pc -- Using cached msys-mingw-w64-i686-pkg-config-0.29.2-2-any.pkg.tar.zst. -- Downloading https://repo.msys2.org/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst;https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.59 06.c9a21571-1-any.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686- libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst;https://mirror.bit.edu.cn/msys2/mingw/i686/mingw -w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst;https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst;https://mirrors.sjtug.sjtu.edu.cn/msys2/ mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst -> msys-mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst... [DEBUG] Feature flag 'binarycaching' unset [DEBUG] Feature flag 'manifests' = off [DEBUG] Feature flag 'compilertracking' unset [DEBUG] Feature flag 'registries' unset [DEBUG] Feature flag 'versions' unset [DEBUG] Downloading https://repo.msys2.org/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst [DEBUG] Downloading https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst [DEBUG] Downloading https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst [DEBUG] Downloading https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst [DEBUG] Downloading https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst [DEBUG] Downloading https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst [DEBUG] Download failed -- retrying after 1000 ms. [DEBUG] Download failed -- retrying after 2000 ms. [DEBUG] Download failed -- retrying after 4000 ms. [DEBUG] Downloading https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst [DEBUG] Download failed -- retrying after 1000 ms. [DEBUG] Download failed -- retrying after 2000 ms. [DEBUG] Download failed -- retrying after 4000 ms. [DEBUG] Downloading https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst Error: Failed to download from mirror set: https://repo.msys2.org/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst: failed: status code 404 https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst: failed: status code 404 https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst: failed: status code 404 https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst: failed: status code 404 https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst: failed: status code 404 https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst: WinHttpSendRequest() failed: 12007 https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst: WinHttpSendRequest() failed: 12007 https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst: WinHttpSendRequest() failed: 12007 https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst: WinHttpSendRequest() failed: 12007 https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst: WinHttpSendRequest() failed: 12175 https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst: WinHttpSendRequest() failed: 12175 https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst: WinHttpSendRequest() failed: 12175 https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst: WinHttpSendRequest() failed: 12175 https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst: failed: status code 404 [DEBUG] D:\a_work\1\s\src\vcpkg\base\downloads.cpp(656) [DEBUG] Time in subprocesses: 0 us [DEBUG] Time in parsing JSON: 5 us [DEBUG] Time in JSON reader: 0 us [DEBUG] Time in filesystem: 13940 us [DEBUG] Time in loading ports: 0 us [DEBUG] Exiting after 19.98 s (19781247 us) CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:84 (message): Failed to download file with error: 1 If you use a proxy, please check your proxy setting. Possible causes are:

  1. You are actually using an HTTP proxy, but setting HTTPS_PROXY variable to https://address:port. This is not correct, because https:// prefix claims the proxy is an HTTPS proxy, while your proxy (v2ray, shadowsocksr , etc..) is an HTTP proxy. Try setting http://address:port to both HTTP_PROXY and HTTPS_PROXY instead.
  2. You are using Fiddler. Currently a bug (https://github.com/microsoft/vcpkg/issues/17752) will set HTTPS_PROXY to https://fiddler_address:port which lead to problem 1 above. Workaround is open Windows 10 Settings App, and search for Proxy Configuration page, Change http=address:port;https=address:port to address, and fill the port number.
  3. You proxy's remote server is out of service. In future vcpkg releases, if you are using Windows, you no longer need to set HTTP(S)_PROXY environment variables. Vcpkg will simply apply Windows IE Proxy Settings set by your proxy software. See (https://github.com/microsoft/vcpkg-tool/pull/49) and (https://github.com/microsoft/vcpkg-tool/pull/77) Otherwise, please submit an issue at https://github.com/Microsoft/vcpkg/issues Call Stack (most recent call first): scripts/cmake/vcpkg_download_distfile.cmake:309 (z_vcpkg_download_distfile_show_proxy_and_fail) scripts/cmake/vcpkg_acquire_msys.cmake:84 (vcpkg_download_distfile) scripts/cmake/vcpkg_acquire_msys.cmake:174 (z_vcpkg_acquire_msys_download_package) scripts/cmake/vcpkg_find_acquire_program.cmake:547 (vcpkg_acquire_msys) scripts/cmake/vcpkg_fixup_pkgconfig.cmake:198 (vcpkg_find_acquire_program) ports/cli11/portfile.cmake:20 (vcpkg_fixup_pkgconfig) scripts/ports.cmake:142 (include) Error: Building package cli11:x86-windows-static failed with: BUILD_FAILED Please ensure you're using the latest portfiles with git pull and .\vcpkg update. Then check for known issues at: https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+cli11 You can submit a new issue at: https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[cli11]+Build+error including: package: cli11[core]:x86-windows-static -> 2.1.2#1 vcpkg-tool version: 2021-11-24-48b94a6946b8a70abd21529218927fd478d02b6c vcpkg-scripts version: 355d732e5 2022-01-03 (3 months ago) Additionally, attach any relevant sections from the log files above. CMake Error at cmake/vcpkg.cmake:115 (message): Failed to install packages: 1 Call Stack (most recent call first): cmake/vcpkg.cmake:205 (vcpkg_install_packages) CMakeLists.txt:151 (vcpkg_install) -- Configuring incomplete, errors occurred!
ClemHuriaux commented 2 years ago

Update: I just tried in a Windows 11 Virtual Machine (using the "Windows 11 development environment" from Microsoft) and I have exactly the same issue

ClemHuriaux commented 2 years ago

Nevermind, I get the issue. The virutal machine need to be in bridge network (not nat). Sry to bothered you, I close the issue