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

bootstrap-vcpkg.bat fails if vcpkg was cloned inside WSL on Windows April 2018 Update #3641

Closed
kromain opened this issue Jun 1, 2018 · 2 comments

Comments

@kromain
Copy link
Contributor

kromain commented Jun 1, 2018

When cloning the vcpkg repo using WSL's git client, the created directory structure is now treated as case-sensitive even outside WSL starting with the Windows April 2018 update (see https://blogs.msdn.microsoft.com/commandline/2018/02/28/per-directory-case-sensitivity-and-wsl/)

This results in bootstrap-vcpkg.bat failing quickly due to mismatch cases between 'release' and 'Release' folders:

c:\dev\vcpkg>bootstrap-vcpkg.bat

Building vcpkg.exe ...

  pch.cpp
CL : fatal error C1083: Cannot open compiler intermediate file: 'c:\dev\vcpkg\toolsrc\vcpkglib\release\vcpkglib.pch':
No such file or directory [C:\dev\vcpkg\toolsrc\vcpkglib\vcpkglib.vcxproj]
C:\dev\vcpkg\scripts\bootstrap.ps1 : Building vcpkg.exe failed. Please ensure you have installed Visual Studio with
the Desktop C++ workload and the Windows SDK for Desktop C++.
At line:1 char:4
+ & {& 'c:\dev\vcpkg\scripts\bootstrap.ps1'}
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,bootstrap.ps1


c:\dev\vcpkg>

The build script looks for 'release' but the folder on disk is 'Release', thus the no-such-file error with case-sensitive names.

@alexkaratarakis
Copy link
Contributor

Fixed, thanks for reporting!

@aalpert-bluescape
Copy link

b81090e changed it back and so I'm hitting this issue. I'll checkout an older version to get around it for now, but you might need to reopen this issue.

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

3 participants