This repository was archived by the owner on Jul 5, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 55
This repository was archived by the owner on Jul 5, 2023. It is now read-only.
MSVC 10.0 build failing for ast27/Python/ast.c #121
Copy link
Copy link
Closed
Description
The MSVC 10.0 compilation of ast27/Python/ast.c seems to have started failing couple of days ago with:
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Iast27/Include -IC:\projects\opengrok\opengrok-tools\target\env\include -IC:\Python34\include -IC:\Python34\include /Tcast27/Python/ast.c /Fobuild\temp.win32-3.4\Release\ast27/Python/ast.obj
ast.c
ast27/Python/ast.c(303) : error C2275: 'type_ignore_ty' : illegal use of this type as an expression
ast27/Include\Python-ast.h(36) : see declaration of 'type_ignore_ty'
ast27/Python/ast.c(303) : error C2146: syntax error : missing ';' before identifier 'ti'
ast27/Python/ast.c(303) : error C2065: 'ti' : undeclared identifier
ast27/Python/ast.c(303) : warning C4047: '=' : 'int' differs in levels of indirection from 'type_ignore_ty'
ast27/Python/ast.c(304) : error C2065: 'ti' : undeclared identifier
ast27/Python/ast.c(306) : error C2065: 'ti' : undeclared identifier
ast27/Python/ast.c(306) : warning C4047: '=' : 'void *' differs in levels of indirection from 'int'
error: command 'c:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\BIN\\cl.exe' failed with exit status 2
see https://ci.appveyor.com/api/buildjobs/80p1fa1y6lompwt8/log for full log.
I see a change has been made to the file via #116 some 2 days ago: https://github.com/python/typed_ast/blame/master/ast27/Python/ast.c#L300 and it looks like MSVC C compiler does not like variable declarations in the middle of a block. In this case it is the type_ignore_ty ti
definition.
There have been some related fixups in the past like #47 so this seems to be just another case.
Sorry about not providing a fix, this is happening in our AppVeyor build; normally I don't have access to Windows.
Metadata
Metadata
Assignees
Labels
No labels