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

build fails on win7 32bit using mingw-w64 g++ 4.8.0 #587

Closed
jonforums opened this issue May 25, 2013 · 0 comments
Closed

build fails on win7 32bit using mingw-w64 g++ 4.8.0 #587

jonforums opened this issue May 25, 2013 · 0 comments

Comments

@jonforums
Copy link
Contributor

C:\Users\Jon\Documents\CDev\ninja-git>ninja --version
1.3.0.git

C:\Users\Jon\Documents\CDev\ninja-git>g++ --version
g++ (rev2, Built by MinGW-builds project) 4.8.0

C:\Users\Jon\Documents\CDev\ninja-git>python configure.py --platform=mingw
warning: A compatible version of re2c (>= 0.11.3) was not found; changes to src/*.in.cc will not affect your build.
wrote build.ninja.

C:\Users\Jon\Documents\CDev\ninja-git>ninja
[3/26] CXX build\build_log.o
src\build_log.cc: In member function 'void BuildLog::WriteEntry(FILE*, const BuildLog::LogEntry&)':
src\build_log.cc:347:51: warning: 'I' flag used with '%x' gnu_printf format [-Wformat=]
           entry.output.c_str(), entry.command_hash);
                                                   ^
src\build_log.cc:347:51: warning: format '%x' expects argument of type 'unsigned int', but argument 7 has type 'uint64_t {aka long long unsigned int}' [-Wformat=]
[25/26] AR build\libninja.a
        1 file(s) moved.
[25/26] CXX build\ninja.o
FAILED: g++ -MMD -MT build\ninja.o -MF build\ninja.o.d -g -Wall -Wextra -Wno-deprecated -Wno-unused-parameter -fno-rtti -fno-exceptions -pipe -Wno-missing-field-initializers -DNINJA_PYTHON="python.exe" -O3 -DNDEBUG -D_WIN32_WINNT=0x0601 -c src\ninja.cc -o build\ninja.o
src\ninja.cc: In member function 'int {anonymous}::NinjaMain::ToolMSVC(int, char**)':
src\ninja.cc:370:35: error: 'MSVCHelperMain' was not declared in this scope
   return MSVCHelperMain(argc, argv);
                                   ^
src\ninja.cc:371:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
ninja: build stopped: subcommand failed.
@evmar evmar closed this as completed in fe2dd5b May 25, 2013
evmar added a commit that referenced this issue May 25, 2013
Fix mingw based builds. Fixes #587
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

1 participant