Skip to content

Git failed due to "error LNK2001: unresolved external symbol win32_skip_dos_drive_prefix" when build on MSVC #2100

Closed
@QuellaZhang

Description

@QuellaZhang

Setup:

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
    64-bit
    $ git --version --build-options
    git version 2.9.2.windows.1
    sizeof-long: 4
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
    Windows Server 2016 64-bit + VS2017.2
    $ cmd.exe /c ver
    Microsoft Windows [Version 10.0.14393]

Description:
Git failed when build by msvc on Windows, the first time we got the error was on 1db5a65, and the last clean build was on 182d923. Could you please help look at this?

Repro steps:

  1. git.exe clone -b vs/master https://github.com/git-for-windows/git D:\Git\src && cd D:\Git\src
  2. git.exe checkout 1db5a65
  3. devenv /upgrade git.sln
  4. nuget.exe restore git.sln
  5. msbuild /m /p:Configuration=Release;Platform=x64 /p:WindowsTargetPlatformVersion=10.0.17134.0 /t:Rebuild git.sln

Error info:
libgit.lib(msvc.obj) : error LNK2001: unresolved external symbol win32_skip_dos_drive_prefix
.\git-sh-i18n--envsubst.exe : fatal error LNK1120: 1 unresolved

Build log:
log_x64_build.log

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions