microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.27k stars 6.42k forks source link

file problem creating directory #23693

Closed Jcw87 closed 2 years ago

Jcw87 commented 2 years ago

vcpkg will often fail to install a package because it fails to create a directory that already exists.

Environment

To Reproduce

  1. vcpkg install zlib:x64-windows
  2. vcpkg install freetype:x64-windows
  3. freetype will fail to install: file problem creating directory: D:/vcpkg/packages/detect_compiler_x64-windows Attempting to install freetype again will work correctly. The next package attempted will fail.

Alternately:

  1. vcpkg install llvm:x64-windows-static
  2. llvm will fail to install: file problem creating directory: D:/vcpkg/downloads/temp I could only get llvm to install by deleting the temp folder while vcpkg was extracting the llvm tar

Expected behavior A build script should never fail because it can't create a directory that already exists.

Failure logs

D:\vcpkg>vcpkg install zlib:x64-windows
Computing installation plan...
The following packages will be built and installed:
    zlib[core]:x64-windows -> 1.2.11#13
Detecting compiler hash for triplet x64-windows...
A suitable version of powershell-core was not found (required v7.2.1). Downloading portable powershell-core v7.2.1...
Downloading powershell-core...
  https://github.com/PowerShell/PowerShell/releases/download/v7.2.1/PowerShell-7.2.1-win-x86.zip -> D:\vcpkg\downloads\PowerShell-7.2.1-win-x86.zip
Extracting powershell-core...
A suitable version of 7zip was not found (required v21.7.0). Downloading portable 7zip v21.7.0...
Downloading 7zip...
  https://www.7-zip.org/a/7z2107-extra.7z -> D:\vcpkg\downloads\7z2107-extra.7z
Extracting 7zip...
Restored 1 packages from C:\Users\Jcw87\AppData\Local\vcpkg\archives in 1.906 s. Use --debug to see more details.
Starting package 1/1: zlib:x64-windows
Installing package zlib[core]:x64-windows...
Elapsed time for package zlib:x64-windows: 107.7 ms

Total elapsed time: 19.22 s

The package zlib is compatible with built-in CMake targets:

    find_package(ZLIB REQUIRED)
    target_link_libraries(main PRIVATE ZLIB::ZLIB)

D:\vcpkg>vcpkg install freetype:x64-windows
Computing installation plan...
The following packages will be built and installed:
  * brotli[core]:x64-windows -> 1.0.9#2
  * bzip2[core]:x64-windows -> 1.0.8#2
    freetype[brotli,bzip2,core,png,zlib]:x64-windows -> 2.11.1
  * libpng[core]:x64-windows -> 1.6.37#16
  * vcpkg-cmake[core]:x64-windows -> 2022-01-19
  * vcpkg-cmake-config[core]:x64-windows -> 2022-02-06
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
Error: while detecting compiler information:
The log content at D:\vcpkg\buildtrees\detect_compiler\stdout-x64-windows.log is:
CMake Error at scripts/ports.cmake:126 (file):
  file problem creating directory:
  D:/vcpkg/packages/detect_compiler_x64-windows

Error: vcpkg was unable to detect the active compiler's information. See above for the CMake failure output.

D:\vcpkg>vcpkg install freetype:x64-windows
Computing installation plan...
The following packages will be built and installed:
  * brotli[core]:x64-windows -> 1.0.9#2
  * bzip2[core]:x64-windows -> 1.0.8#2
    freetype[brotli,bzip2,core,png,zlib]:x64-windows -> 2.11.1
  * libpng[core]:x64-windows -> 1.6.37#16
  * vcpkg-cmake[core]:x64-windows -> 2022-01-19
  * vcpkg-cmake-config[core]:x64-windows -> 2022-02-06
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
Restored 2 packages from C:\Users\Jcw87\AppData\Local\vcpkg\archives in 28.31 ms. Use --debug to see more details.
Starting package 1/6: brotli:x64-windows
Building package brotli[core]:x64-windows...
-- Downloading https://github.com/google/brotli/archive/e61745a6b7add50d380cfd7d3883dd6c62fc2c71.tar.gz -> google-brotli-e61745a6b7add50d380cfd7d3883dd6c62fc2c71.tar.gz...
-- Extracting source D:/vcpkg/downloads/google-brotli-e61745a6b7add50d380cfd7d3883dd6c62fc2c71.tar.gz
-- Applying patch install.patch
-- Applying patch fix-arm-uwp.patch
-- Applying patch pkgconfig.patch
-- Applying patch fix-ios.patch
-- Using source at D:/vcpkg/buildtrees/brotli/src/6c62fc2c71-7c6c2710e9.clean
-- Found external ninja('1.10.2').
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Fixing pkgconfig file: D:/vcpkg/packages/brotli_x64-windows/lib/pkgconfig/libbrotlicommon.pc
-- Fixing pkgconfig file: D:/vcpkg/packages/brotli_x64-windows/lib/pkgconfig/libbrotlidec.pc
-- Fixing pkgconfig file: D:/vcpkg/packages/brotli_x64-windows/lib/pkgconfig/libbrotlienc.pc
-- Downloading https://repo.msys2.org/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst -> msys-mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst...
-- Downloading https://repo.msys2.org/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst -> msys-mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst...
-- Using msys root at D:/vcpkg/downloads/tools/msys2/9a1ec3f33446b195
-- Fixing pkgconfig file: D:/vcpkg/packages/brotli_x64-windows/debug/lib/pkgconfig/libbrotlicommon.pc
-- Fixing pkgconfig file: D:/vcpkg/packages/brotli_x64-windows/debug/lib/pkgconfig/libbrotlidec.pc
-- Fixing pkgconfig file: D:/vcpkg/packages/brotli_x64-windows/debug/lib/pkgconfig/libbrotlienc.pc
-- Installing: D:/vcpkg/packages/brotli_x64-windows/share/brotli/copyright
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: C:\Users\Jcw87\AppData\Local\vcpkg\archives\7f\7fdde32e35afd7a1a78d32240d728b08fedb9fe0c496feeba2014bbdb6a95839.zip
Installing package brotli[core]:x64-windows...
Elapsed time for package brotli:x64-windows: 25.24 s
Starting package 2/6: bzip2:x64-windows
Building package bzip2[core]:x64-windows...
-- Downloading https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz -> bzip2-1.0.8.tar.gz...
-- Extracting source D:/vcpkg/downloads/bzip2-1.0.8.tar.gz
-- Applying patch fix-import-export-macros.patch
-- Using source at D:/vcpkg/buildtrees/bzip2/src/bzip2-1-336d4794a3.clean
-- Found external ninja('1.10.2').
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Fixing pkgconfig file: D:/vcpkg/packages/bzip2_x64-windows/lib/pkgconfig/bzip2.pc
-- Using cached msys-mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst.
-- Using msys root at D:/vcpkg/downloads/tools/msys2/9a1ec3f33446b195
-- Fixing pkgconfig file: D:/vcpkg/packages/bzip2_x64-windows/debug/lib/pkgconfig/bzip2.pc
-- Installing: D:/vcpkg/packages/bzip2_x64-windows/share/bzip2/copyright
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: C:\Users\Jcw87\AppData\Local\vcpkg\archives\1e\1e41fd86db8a18d94b9fac0136ea3ee1141bae3161a80f5ff523a21c56132fd1.zip
Installing package bzip2[core]:x64-windows...
Elapsed time for package bzip2:x64-windows: 8.45 s
Starting package 3/6: vcpkg-cmake:x64-windows
Installing package vcpkg-cmake[core]:x64-windows...
Elapsed time for package vcpkg-cmake:x64-windows: 8.424 ms
Starting package 4/6: vcpkg-cmake-config:x64-windows
Installing package vcpkg-cmake-config[core]:x64-windows...
Elapsed time for package vcpkg-cmake-config:x64-windows: 6.714 ms
Starting package 5/6: libpng:x64-windows
Building package libpng[core]:x64-windows...
-- Downloading https://github.com/glennrp/libpng/archive/v1.6.37.tar.gz -> glennrp-libpng-v1.6.37.tar.gz...
-- Extracting source D:/vcpkg/downloads/glennrp-libpng-v1.6.37.tar.gz
-- Applying patch use_abort.patch
-- Applying patch cmake.patch
-- Applying patch pkgconfig.patch
-- Applying patch pkgconfig.2.patch
-- Applying patch fix-export-targets.patch
-- Applying patch macos-arch-fix.patch
-- Using source at D:/vcpkg/buildtrees/libpng/src/v1.6.37-05658d6f1a.clean
-- Found external ninja('1.10.2').
-- Configuring x64-windows
CMake Warning at installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:487 (message):
  The following variables are not used in CMakeLists.txt:

      PNG_ARM_NEON

  Please recheck them and remove the unnecessary options from the
  `vcpkg_cmake_configure` call.

  If these options should still be passed for whatever reason, please use the
  `MAYBE_UNUSED_VARIABLES` argument.
Call Stack (most recent call first):
  ports/libpng/portfile.cmake:71 (vcpkg_cmake_configure)
  scripts/ports.cmake:145 (include)

-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Fixing pkgconfig file: D:/vcpkg/packages/libpng_x64-windows/lib/pkgconfig/libpng.pc
-- Fixing pkgconfig file: D:/vcpkg/packages/libpng_x64-windows/lib/pkgconfig/libpng16.pc
-- Using cached msys-mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst.
-- Using msys root at D:/vcpkg/downloads/tools/msys2/9a1ec3f33446b195
-- Fixing pkgconfig file: D:/vcpkg/packages/libpng_x64-windows/debug/lib/pkgconfig/libpng.pc
-- Fixing pkgconfig file: D:/vcpkg/packages/libpng_x64-windows/debug/lib/pkgconfig/libpng16.pc
-- Installing: D:/vcpkg/packages/libpng_x64-windows/share/libpng/copyright
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: C:\Users\Jcw87\AppData\Local\vcpkg\archives\4c\4c3ce7152852424f0999b95c1f798b42accb81e2432b9bab0ba390001d96bc36.zip
Installing package libpng[core]:x64-windows...
Elapsed time for package libpng:x64-windows: 13.78 s
Starting package 6/6: freetype:x64-windows
Building package freetype[brotli,bzip2,core,png,zlib]:x64-windows...
-- Downloading https://sourceforge.net/projects/freetype/files/freetype2/2.11.1/freetype-2.11.1.tar.xz/download;https://sourceforge.net/projects/freetype/files/freetype2/2.11.1/freetype-2.11.1.tar.xz/download?use_mirror=cfhcable;https://sourceforge.net/projects/freetype/files/freetype2/2.11.1/freetype-2.11.1.tar.xz/download?use_mirror=pilotfiber;https://sourceforge.net/projects/freetype/files/freetype2/2.11.1/freetype-2.11.1.tar.xz/download?use_mirror=gigenet;https://sourceforge.net/projects/freetype/files/freetype2/2.11.1/freetype-2.11.1.tar.xz/download?use_mirror=versaweb;https://sourceforge.net/projects/freetype/files/freetype2/2.11.1/freetype-2.11.1.tar.xz/download?use_mirror=ayera;https://sourceforge.net/projects/freetype/files/freetype2/2.11.1/freetype-2.11.1.tar.xz/download?use_mirror=netactuate;https://sourceforge.net/projects/freetype/files/freetype2/2.11.1/freetype-2.11.1.tar.xz/download?use_mirror=phoenixnap;https://sourceforge.net/projects/freetype/files/freetype2/2.11.1/freetype-2.11.1.tar.xz/download?use_mirror=astuteinternet;https://sourceforge.net/projects/freetype/files/freetype2/2.11.1/freetype-2.11.1.tar.xz/download?use_mirror=freefr;https://sourceforge.net/projects/freetype/files/freetype2/2.11.1/freetype-2.11.1.tar.xz/download?use_mirror=netcologne;https://sourceforge.net/projects/freetype/files/freetype2/2.11.1/freetype-2.11.1.tar.xz/download?use_mirror=deac-riga;https://sourceforge.net/projects/freetype/files/freetype2/2.11.1/freetype-2.11.1.tar.xz/download?use_mirror=excellmedia;https://sourceforge.net/projects/freetype/files/freetype2/2.11.1/freetype-2.11.1.tar.xz/download?use_mirror=iweb;https://sourceforge.net/projects/freetype/files/freetype2/2.11.1/freetype-2.11.1.tar.xz/download?use_mirror=jaist;https://sourceforge.net/projects/freetype/files/freetype2/2.11.1/freetype-2.11.1.tar.xz/download?use_mirror=jztkft;https://sourceforge.net/projects/freetype/files/freetype2/2.11.1/freetype-2.11.1.tar.xz/download?use_mirror=managedway;https://sourceforge.net/projects/freetype/files/freetype2/2.11.1/freetype-2.11.1.tar.xz/download?use_mirror=nchc;https://sourceforge.net/projects/freetype/files/freetype2/2.11.1/freetype-2.11.1.tar.xz/download?use_mirror=netix;https://sourceforge.net/projects/freetype/files/freetype2/2.11.1/freetype-2.11.1.tar.xz/download?use_mirror=ufpr;https://sourceforge.net/projects/freetype/files/freetype2/2.11.1/freetype-2.11.1.tar.xz/download?use_mirror=tenet -> freetype-2.11.1.tar.xz...
-- Extracting source D:/vcpkg/downloads/freetype-2.11.1.tar.xz
-- Applying patch 0003-Fix-UWP.patch
-- Applying patch fix-bzip2-pc.patch
-- Applying patch brotli-static.patch
-- Applying patch fix-exports.patch
-- Using source at D:/vcpkg/buildtrees/freetype/src/0848678482-6d52b0e1f7.clean
-- Found external ninja('1.10.2').
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Fixing pkgconfig file: D:/vcpkg/packages/freetype_x64-windows/lib/pkgconfig/freetype2.pc
-- Using cached msys-mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst.
-- Using msys root at D:/vcpkg/downloads/tools/msys2/9a1ec3f33446b195
-- Fixing pkgconfig file: D:/vcpkg/packages/freetype_x64-windows/debug/lib/pkgconfig/freetype2.pc
-- Installing: D:/vcpkg/packages/freetype_x64-windows/share/freetype/copyright
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: C:\Users\Jcw87\AppData\Local\vcpkg\archives\a6\a6da8e42f36eef1a5878ba0d72da09fca1a1dfa3dadbd2982700ccef8c9ad326.zip
Installing package freetype[brotli,bzip2,core,png,zlib]:x64-windows...
Elapsed time for package freetype:x64-windows: 20.91 s

Total elapsed time: 1.189 min

The package freetype provides CMake targets:

    find_package(freetype CONFIG REQUIRED)
    target_link_libraries(main PRIVATE freetype)

D:\vcpkg>vcpkg install llvm:x64-windows-static
Computing installation plan...
The following packages will be built and installed:
    llvm[clang,compiler-rt,core,default-options,default-targets,disable-abi-breaking-checks,disable-assertions,disable-clang-static-analyzer,enable-bindings,enable-terminfo,enable-threads,enable-zlib,lld,target-x86,tools]:x64-windows-static -> 13.0.0#3
  * zlib[core]:x64-windows-static -> 1.2.11#13
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows-static...
Restored 0 packages from C:\Users\Jcw87\AppData\Local\vcpkg\archives in 211.6 us. Use --debug to see more details.
Starting package 1/2: zlib:x64-windows-static
Building package zlib[core]:x64-windows-static...
-- Downloading https://www.zlib.net/zlib-1.2.11.tar.gz;https://downloads.sourceforge.net/project/libpng/zlib/1.2.11/zlib-1.2.11.tar.gz -> zlib1211.tar.gz...
-- Extracting source D:/vcpkg/downloads/zlib1211.tar.gz
-- Applying patch cmake_dont_build_more_than_needed.patch
-- Applying patch 0001-Prevent-invalid-inclusions-when-HAVE_-is-set-to-0.patch
-- Applying patch add_debug_postfix_on_mingw.patch
-- Applying patch 0002-android-build-mingw.patch
-- Using source at D:/vcpkg/buildtrees/zlib/src/1.2.11-e9a093319e.clean
-- Found external ninja('1.10.2').
-- Configuring x64-windows-static
-- Building x64-windows-static-dbg
-- Building x64-windows-static-rel
-- Installing: D:/vcpkg/packages/zlib_x64-windows-static/share/zlib/vcpkg-cmake-wrapper.cmake
-- Fixing pkgconfig file: D:/vcpkg/packages/zlib_x64-windows-static/lib/pkgconfig/zlib.pc
-- Using cached msys-mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst.
-- Using msys root at D:/vcpkg/downloads/tools/msys2/9a1ec3f33446b195
-- Fixing pkgconfig file: D:/vcpkg/packages/zlib_x64-windows-static/debug/lib/pkgconfig/zlib.pc
-- Installing: D:/vcpkg/packages/zlib_x64-windows-static/share/zlib/copyright
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: C:\Users\Jcw87\AppData\Local\vcpkg\archives\d6\d67170f99647f28b8b4720d8f3a9425cfdcb08dcbbd321d2fa8747e158f49e95.zip
Installing package zlib[core]:x64-windows-static...
Elapsed time for package zlib:x64-windows-static: 10.05 s
Starting package 2/2: llvm:x64-windows-static
Building package llvm[clang,compiler-rt,core,default-options,default-targets,disable-abi-breaking-checks,disable-assertions,disable-clang-static-analyzer,enable-bindings,enable-terminfo,enable-threads,enable-zlib,lld,target-x86,tools]:x64-windows-static...
-- Downloading https://github.com/llvm/llvm-project/archive/llvmorg-13.0.0.tar.gz -> llvm-llvm-project-llvmorg-13.0.0.tar.gz...
-- Extracting source D:/vcpkg/downloads/llvm-llvm-project-llvmorg-13.0.0.tar.gz
-- Applying patch 0002-fix-install-paths.patch
-- Applying patch 0003-fix-openmp-debug.patch
-- Applying patch 0004-fix-dr-1734.patch
-- Applying patch 0005-fix-tools-path.patch
-- Applying patch 0007-fix-compiler-rt-install-path.patch
-- Applying patch 0009-fix-tools-install-path.patch
-- Applying patch 0010-fix-libffi.patch
-- Applying patch 0011-fix-libxml2.patch
-- Using source at D:/vcpkg/buildtrees/llvm/src/org-13.0.0-41c002f263.clean
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:220 (file):
  file problem creating directory: D:/vcpkg/downloads/temp
Call Stack (most recent call first):
  scripts/cmake/vcpkg_find_acquire_program.cmake:624 (vcpkg_download_distfile)
  ports/llvm/portfile.cmake:208 (vcpkg_find_acquire_program)
  scripts/ports.cmake:145 (include)
Cheney-W commented 2 years ago

I can't reproduce this issue in my side, I used vcpkg 2022-03-09-1affd32f93b299d5a907816c328ca3ededb73a7e and VS2019 16.11.11. I'm not sure if your disk has access rights, does this issue also occur on other drive?

Jcw87 commented 2 years ago

I've created several vcpkg installs and tried to replicate this again, both on my C drive (SSD) and my D drive (spinning magnetic disk). Most of the time, it would not happen. On a few occasions it did. I'm not sure what I did differently when the problem happened. There must be more steps critical to reproducing the issue that I'm not aware of. When I created this issue, the listed steps were all that was needed.

Among the various additional things I was trying:

  1. Uninstalling and reinstalling packages.
  2. Switching the vcpkg repository to different commits (issue originally occurred with a3df696929b28195b0d7a477ba6cd16dba48fa52)

I suppose I'll list everything that I was doing with my main vcpkg install in the past few days. Starting point was commit 30a3d841d88dbf1e668d875bcfc050aacdedc63b, with several libraries installed: x64-windows version of boost, zlib, and some others x86-windows version of zlib and some others

  1. I updated the repository to a3df696929b28195b0d7a477ba6cd16dba48fa52, which was the latest master at the time.
  2. I ran bootstrap-vcpkg.bat
  3. I ran vcpkg upgrade
  4. I tried using cmake-gui on an external project with vcpkg libs. It wasn't working. This was because I didn't add CMAKE_TOOLCHAIN_FILE early enough in the process, but I didn't know that yet.
  5. I figured something may have gone wrong with the upgrade, so I uninstalled all of the packages, and reinstalled just the ones I needed for this project, which included zlib and freetype. This is when I encountered the first directory issue.
  6. I later needed llvm and tried to install it, and encountered the second directory issue.
  7. After a few cycles of uninstalling and reinstalling packages to verify the consistency of the problem and the reproduction steps, I created this issue. Clearly, it wasn't enough. There must be something else that put the vcpkg install into a state that allowed this problem to manifest reliably, but I haven't narrowed it down yet.
Cheney-W commented 2 years ago

Did you install cmake locally? If so, could you please remove it before trying to reproduce this issue?

Cheney-W commented 2 years ago

Thanks for posting this issue. If this issue has new information, please reopen it.

Jcw87 commented 2 years ago

This happened to me again today, just as consistently as before. I deleted my packages, and went to re-install some of them, and the issue started up again. I currently suspect a bad interaction with the TortoiseGit shell extension. I really don't want to delete my packages again to test this hypothesis right now, though. I've had too many frustrating software annoyances today, including a Visual Studio compiler bug. I'll re-open the issue if I find out something more substantial.