Skip to content

Build Git failed with error C2133: 'builtin_config_options': unknown size #1735

Closed
@KarenHuang2016

Description

@KarenHuang2016

Build Git latest revision cfd9a13 on master with 2017 failed with the following errors:

d:\git\src\builtin\config.c(70,46): error C2133: 'builtin_config_options': unknown size [D:\Git\src\git\git.vcxproj]

The root cause should the arry size is not specified in the following code:
static struct option builtin_config_options[];

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.15063]

Repro steps:
1.git clone https://github.com/git-for-windows/git.git D:\git\src
2.git checkout vs/master
3.devenv /upgrade git.sln
4.nuget.exe restore git.sln 5.msbuild /m /p:Configuration=Release;Platform=x86 /p:WindowsTargetPlatformVersion=10.0.15063.0 /t:Rebuild git.sln

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions