Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure script produces fatal error C1034: cstdio: no include path set #895

Closed
huywang opened this issue Jan 11, 2015 · 3 comments
Closed

Comments

@huywang
Copy link

huywang commented Jan 11, 2015

When I modified .cc file ,ninja works well, this .cc file will be compiled. But when I modified a .h file, ninja show no work to do.

BTW, when I build ninja with the src, some error happened:
F:\source\ninja\ninja>python ./configure.py --bootstrap
bootstrapping ninja...
warning: A compatible version of re2c (>= 0.11.3) was not found; changes to src/
_.in.cc will not affect your build.
build.cc
f:\source\ninja\ninja\src\build.h(18) : fatal error C1034: cstdio: no include pa
th set
when running: cl /nologo /Zi /W4 /WX /wd4530 /wd4100 /wd4706 /wd4512 /wd4800 /w
d4702 /wd4819 /wd4355 /wd4091 /GR- /wd4267 /DNOMINMAX /D_CRT_SECURE_NO_WARNINGS
/D_VARIADIC_MAX=10 /DNINJA_PYTHON="python.exe" /Ox /DNDEBUG /GL -c src\build.cc
/Fobuild\build.obj
Traceback (most recent call last):
File "./configure.py", line 461, in
objs += cxx(name)
File "./configure.py", line 262, in cxx
return n.build(built(name + objext), 'cxx', src(name + '.cc'), *_kwargs)
File "./configure.py", line 148, in build
self._run_command(self._expand(cmd, local_vars))
File "./configure.py", line 169, in _run_command
subprocess.check_call(cmdline, shell=True)
File "E:\depot_tools\python276_bin\lib\subprocess.py", line 540, in check_call

raise CalledProcessError(retcode, cmd)

subprocess.CalledProcessError: Command 'cl /nologo /Zi /W4 /WX /wd4530 /wd4100 /
wd4706 /wd4512 /wd4800 /wd4702 /wd4819 /wd4355 /wd4091 /GR- /wd4267 /DNOMINMAX /
D_CRT_SECURE_NO_WARNINGS /D_VARIADIC_MAX=10 /DNINJA_PYTHON="python.exe" /Ox /DND
EBUG /GL -c src\build.cc /Fobuild\build.obj' returned non-zero exit status 2

How do I solve this. My enviroment is Win7 64bit, vs2013 community

@sgraham
Copy link
Contributor

sgraham commented Jan 11, 2015

Did you run vcvarsall before building? It looks like it can't find standard
headers.
On Jan 11, 2015 1:19 AM, "huywang" notifications@github.com wrote:

When I modified .cc file ,ninja works well, this .cc file will be
compiled. But when I modified a .h file, ninja show no work to do.

BTW, when I build ninja with the src, some error happened:
F:\source\ninja\ninja>python ./configure.py --bootstrap
bootstrapping ninja...
warning: A compatible version of re2c (>= 0.11.3) was not found; changes
to src/

_.in.cc will not affect your build. build.cc
f:\source\ninja\ninja\src\build.h(18) : fatal error C1034: cstdio: no
include pa th set when running: cl /nologo /Zi /W4 /WX /wd4530 /wd4100
/wd4706 /wd4512 /wd4800 /w d4702 /wd4819 /wd4355 /wd4091 /GR- /wd4267
/DNOMINMAX /D_CRT_SECURE_NO_WARNINGS /D_VARIADIC_MAX=10
/DNINJA_PYTHON="python.exe" /Ox /DNDEBUG /GL -c src\build.cc
/Fobuild\build.obj Traceback (most recent call last): File
"./configure.py", line 461, in objs += cxx(name) File "./configure.py",
line 262, in cxx return n.build(built(name + objext), 'cxx', src(name +
'.cc'), *_kwargs)
File "./configure.py", line 148, in build
self._run_command(self._expand(cmd, local_vars))
File "./configure.py", line 169, in _run_command
subprocess.check_call(cmdline, shell=True)
File "E:\depot_tools\python276_bin\lib\subprocess.py", line 540, in
check_call

raise CalledProcessError(retcode, cmd)

subprocess.CalledProcessError: Command 'cl /nologo /Zi /W4 /WX /wd4530
/wd4100 /
wd4706 /wd4512 /wd4800 /wd4702 /wd4819 /wd4355 /wd4091 /GR- /wd4267
/DNOMINMAX /
D_CRT_SECURE_NO_WARNINGS /D_VARIADIC_MAX=10 /DNINJA_PYTHON="python.exe"
/Ox /DND
EBUG /GL -c src\build.cc /Fobuild\build.obj' returned non-zero exit status
2

How do I solve this. My enviroment is Win7 64bit, vs2013 community


Reply to this email directly or view it on GitHub
#895.

@evmar
Copy link
Collaborator

evmar commented Jan 11, 2015

It looks like you reported two issues in this bug. Let's make this one about the configure failure. Can you open another about the problem you encountered with rebuilding?

@evmar evmar changed the title modify .h file and run ninja, ninja show no work to do configure script produces fatal error C1034: cstdio: no include path set Jan 11, 2015
@huywang
Copy link
Author

huywang commented Jan 12, 2015

Run vcvarsall will solve this ,thanks!

@huywang huywang closed this as completed Jan 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants