Closed
Description
I created a worktree to hold the origin/vs/master to compile git for windows using VS2017. Unfortunately the compilation failed. Probably because the batch file to load the vcpkg dependencies failed to find git.exe
Arguably it's probably my choice of setup (Path Option: BashOnly), but then again, maybe it should 'just work', or have a better error message on how to 'fix' the PathOption choice.
Setup
- Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options
git version 2.23.0.windows.1.21.g947f504ebe8.dirty
cpu: x86_64
built from commit: 947f504ebe8fc780465d92bde25f3b576bf2f21f
sizeof-long: 4
sizeof-size_t: 8
- Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver
Microsoft Windows [Version 10.0.17763.775]
- What options did you set as part of the installation? Or did you choose the
defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt
Editor Option: Notepad++
Custom Editor Path:
Path Option: BashOnly
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled
Enable Builtin Interactive Add: Enabled
- Any other interesting things about your environment that might be related
to the issue you're seeing?
SDK install
Details
- Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other
Bash, and Win10 double-click
- What commands did you run to trigger this issue? If you can provide a
Minimal, Complete, and Verifiable example
this will help us understand the issue.
$ git worktree add ../VisualStudioGit vs/master
Preparing worktree (checking out 'vs/master')
Updating files: 100% (3742/3742), done.
HEAD is now at 6405c8db46a Generate Visual Studio solution
Windows explorer, navigate to git.sln and double click, starting VS2017. Ignore the upgrade screen.
Build solution
1>------ Build started: Project: libgit, Configuration: Debug x64 ------
1>Fetching vcpkg in C:\git-sdk-64\usr\src\VisualStudioGit\compat\vcbuild\vcpkg
1>'git.exe' is not recognized as an internal or external command,
1>operable program or batch file.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(123,5): error MSB3073: The command "call "..\compat\vcbuild\vcpkg_install.bat"
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(123,5): error MSB3073: :VCEnd" exited with code 1.
1>Done building project "libgit.vcxproj" -- FAILED.
2>------ Build started: Project: xdiff_lib, Configuration: Debug x64 ------
2>xutils.c
2>c:\git-sdk-64\usr\src\visualstudiogit\compat/mingw.h(178): fatal error C1083: Cannot open include file: 'openssl/ssl.h': No such file or directory
...
Note that git.exe is not found for this installation.
- What did you expect to occur after running these commands?
successful compilation, or at least the down load of the vcpkg and the old error ;-)
- What actually happened instead?
see above, git.exe not found.
- If the problem was occurring with a specific repository, can you provide the
URL to that repository to help us with testing?
This here repo...
Metadata
Metadata
Assignees
Labels
No labels