mercurial build error on windows

Angel Ezquerra angel.ezquerra at gmail.com
Wed Apr 17 11:09:58 CDT 2013


Hi,

I got a Windows 2008 server that runs an automated build of mercurial
and tortoisehg nightly. Today I saw that the thg build of the head of
the default branch (using the mercurial default branch head) failed as
follows:

hg-build\winbuild>hg summary -R build/hg
parent: 19040:12acbea17625 tip
 dispatch: print 'abort:' when a pre-command hook fails (BC)
branch: default
commit: 1 unknown (clean)
update: 29 new changesets, 11 branch heads (merge)

C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\Bin\amd64\cl.exe /c /nolog
o /Ox /MD /W3 /GS- /DNDEBUG -Ic:\python27-x64\include -Ic:\python27-x64\PC /Tcme
rcurial/parsers.c /Fobuild\temp.win-amd64-2.7\Release\mercurial/parsers.obj
parsers.c
mercurial/parsers.c(594) : warning C4244: '+=' : conversion from 'Py_ssize_t' to
 'long', possible loss of data
mercurial/parsers.c(635) : warning C4090: 'function' : different 'const' qualifi
ers
mercurial/parsers.c(777) : warning C4244: 'function' : conversion from 'Py_ssize
_t' to 'long', possible loss of data
mercurial/parsers.c(917) : warning C4244: '=' : conversion from 'Py_ssize_t' to
'int', possible loss of data
mercurial/parsers.c(1212) : warning C4244: 'initializing' : conversion from 'bit
mask' to 'long', possible loss of data
mercurial/parsers.c(1244) : error C2143: syntax error : missing ';' before 'type
'
mercurial/parsers.c(1246) : error C2065: 'sp' : undeclared identifier
mercurial/parsers.c(1250) : error C2065: 'sp' : undeclared identifier
mercurial/parsers.c(1253) : error C2065: 'sp' : undeclared identifier
mercurial/parsers.c(1253) : error C2065: 'sp' : undeclared identifier
mercurial/parsers.c(1687) : warning C4244: 'return' : conversion from 'Py_ssize_
t' to 'long', possible loss of data
error: command 'cl.exe' failed with exit status 2
Traceback (most recent call last):
  File "setup.py", line 927, in <module>
    build_hg(forcehg, hgbranch, hgtag, arch)
  File "setup.py", line 321, in build_hg
    run_python(r'setup.py build_ext -i', 'build/hg', env=get_sdkenv(arch))
  File "setup.py", line 188, in run_python
    run(cmd, cwd, hide, env)
  File "setup.py", line 179, in run
    subprocess.check_call(cmd, shell=True, cwd=cwd, env=env)
  File "c:\python27-x64\lib\subprocess.py", line 511, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'c:\python27-x64\python.exe setup.py buil
d_ext -i' returned non-zero exit status 1


It seems that some of the recent patches to the C parser made by Bryan
fail to compile on windows? I checked the code briefly but I did not
see anything obviously wrong.

Cheers,

Angel


More information about the Mercurial-devel mailing list