node-webkit-sdk icon indicating copy to clipboard operation
node-webkit-sdk copied to clipboard

ninja: build stopped: subcommand failed - Windows 10

Open ScriptPup opened this issue 8 years ago • 2 comments

Hi there,

I'm trying to get the SDK version of node-webkit installed on my windows 10 system. I'm following the documentation here: http://docs.nwjs.io/en/v0.13.0-beta7/For%20Developers/Building%20NW.js/#build-flavors but I am running into a compilation error stating that a sub-command failed.

I am no where near versed enough with the chain of prereques and programs used to have a clue what the issue is. All of the previous steps I was able to work out, with some difficulty, but not this one. Hopefully someone on here has more of a clue than I do. :) The logs are below, thanks!

c:\Dev\nwjs\src>ninja -C out/Debug nwjs ninja: Entering directory out/Debug' [301/14610] CXX obj\v8\src\runtime\v8_base_3.runtime.obj FAILED: obj/v8/src/runtime/v8_base_3.runtime.obj ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\cl.exe" /nologo /showIncludes /FC @obj\v8\src\runtime\v8_base_3.runtime.obj.rsp /c ....\v8\src\runtime\runtime.cc /Foobj\v8\src\runtime\v8_base_3.runtime.obj /Fdobj\v8\tools\gyp\v8_base_3.cc.pdb c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(680): error C2220: warning treated as error - no 'object' file generated c:\dev\nwjs\src\v8\include\v8-profiler.h(30): note: see reference to class template instantiation 'std::vector<v8::CpuProfileDeoptFrame,std::allocator<_Ty>>' being compiled with [ _Ty=v8::CpuProfileDeoptFrame ] c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(680): warning C4251: 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>::_Mypair': class 'std::_Compressed_pair<std::_Wrap_alloc<std::allocator<_Ty>>,std::_Vector_val<std::_Simple_typesv8::CpuProfileDeoptFrame>,true>' needs to have dll-interface to be used by clients of class 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>' with [ _Ty=v8::CpuProfileDeoptFrame, _Alloc=std::allocatorv8::CpuProfileDeoptFrame ] and [ _Ty=v8::CpuProfileDeoptFrame ] and [ _Ty=v8::CpuProfileDeoptFrame, _Alloc=std::allocatorv8::CpuProfileDeoptFrame ] c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(672): note: see declaration of 'std::_Compressed_pair<std::_Wrap_alloc<std::allocator<_Ty>>,std::_Vector_val<std::_Simple_typesv8::CpuProfileDeoptFrame>,true>' with [ _Ty=v8::CpuProfileDeoptFrame ] c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(680): warning C4251: 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>::_Mypair': class 'std::_Compressed_pair<std::_Wrap_alloc<std::allocator<_Ty>>,std::_Vector_val<std::_Simple_typesv8::CpuProfileDeoptInfo>,true>' needs to have dll-interface to be used by clients of class 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>' with [ _Ty=v8::CpuProfileDeoptInfo, _Alloc=std::allocatorv8::CpuProfileDeoptInfo ] and [ _Ty=v8::CpuProfileDeoptInfo ] and [ _Ty=v8::CpuProfileDeoptInfo, _Alloc=std::allocatorv8::CpuProfileDeoptInfo ] c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(672): note: see declaration of 'std::_Compressed_pair<std::_Wrap_alloc<std::allocator<_Ty>>,std::_Vector_val<std::_Simple_typesv8::CpuProfileDeoptInfo>,true>' with [ _Ty=v8::CpuProfileDeoptInfo ] c:\dev\nwjs\src\v8\include\v8-profiler.h(44): note: see reference to class template instantiation 'std::vector<v8::CpuProfileDeoptInfo,std::allocator<_Ty>>' being compiled with [ _Ty=v8::CpuProfileDeoptInfo ] [302/14610] CXX obj\v8\src\ia32\v8_base_3.codegen-ia32.obj FAILED: obj/v8/src/ia32/v8_base_3.codegen-ia32.obj ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\cl.exe" /nologo /showIncludes /FC @obj\v8\src\ia32\v8_base_3.codegen-ia32.obj.rsp /c ....\v8\src\ia32\codegen-ia32.cc /Foobj\v8\src\ia32\v8_base_3.codegen-ia32.obj /Fdobj\v8\tools\gyp\v8_base_3.cc.pdb c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(680): error C2220: warning treated as error - no 'object' file generated c:\dev\nwjs\src\v8\include\v8-profiler.h(30): note: see reference to class template instantiation 'std::vector<v8::CpuProfileDeoptFrame,std::allocator<_Ty>>' being compiled with [ _Ty=v8::CpuProfileDeoptFrame ] c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(680): warning C4251: 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>::_Mypair': class 'std::_Compressed_pair<std::_Wrap_alloc<std::allocator<_Ty>>,std::_Vector_val<std::_Simple_typesv8::CpuProfileDeoptFrame>,true>' needs to have dll-interface to be used by clients of class 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>' with [ _Ty=v8::CpuProfileDeoptFrame, _Alloc=std::allocatorv8::CpuProfileDeoptFrame ] and [ _Ty=v8::CpuProfileDeoptFrame ] and [ _Ty=v8::CpuProfileDeoptFrame, _Alloc=std::allocatorv8::CpuProfileDeoptFrame ] c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(672): note: see declaration of 'std::_Compressed_pair<std::_Wrap_alloc<std::allocator<_Ty>>,std::_Vector_val<std::_Simple_typesv8::CpuProfileDeoptFrame>,true>' with [ _Ty=v8::CpuProfileDeoptFrame ] c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(680): warning C4251: 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>::_Mypair': class 'std::_Compressed_pair<std::_Wrap_alloc<std::allocator<_Ty>>,std::_Vector_val<std::_Simple_typesv8::CpuProfileDeoptInfo>,true>' needs to have dll-interface to be used by clients of class 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>' with [ _Ty=v8::CpuProfileDeoptInfo, _Alloc=std::allocatorv8::CpuProfileDeoptInfo ] and [ _Ty=v8::CpuProfileDeoptInfo ] and [ _Ty=v8::CpuProfileDeoptInfo, _Alloc=std::allocatorv8::CpuProfileDeoptInfo ] c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(672): note: see declaration of 'std::_Compressed_pair<std::_Wrap_alloc<std::allocator<_Ty>>,std::_Vector_val<std::_Simple_typesv8::CpuProfileDeoptInfo>,true>' with [ _Ty=v8::CpuProfileDeoptInfo ] c:\dev\nwjs\src\v8\include\v8-profiler.h(44): note: see reference to class template instantiation 'std::vector<v8::CpuProfileDeoptInfo,std::allocator<_Ty>>' being compiled with [ _Ty=v8::CpuProfileDeoptInfo ] [303/14610] CXX obj\v8\src\snapshot\v8_base_3.natives-common.obj FAILED: obj/v8/src/snapshot/v8_base_3.natives-common.obj ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\cl.exe" /nologo /showIncludes /FC @obj\v8\src\snapshot\v8_base_3.natives-common.obj.rsp /c ....\v8\src\snapshot\natives-common.cc /Foobj\v8\src\snapshot\v8_base_3.natives-common.obj /Fdobj\v8\tools\gyp\v8_base_3.cc.pdb c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(680): error C2220: warning treated as error - no 'object' file generated c:\dev\nwjs\src\v8\include\v8-profiler.h(30): note: see reference to class template instantiation 'std::vector<v8::CpuProfileDeoptFrame,std::allocator<_Ty>>' being compiled with [ _Ty=v8::CpuProfileDeoptFrame ] c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(680): warning C4251: 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>::_Mypair': class 'std::_Compressed_pair<std::_Wrap_alloc<std::allocator<_Ty>>,std::_Vector_val<std::_Simple_typesv8::CpuProfileDeoptFrame>,true>' needs to have dll-interface to be used by clients of class 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>' with [ _Ty=v8::CpuProfileDeoptFrame, _Alloc=std::allocatorv8::CpuProfileDeoptFrame ] and [ _Ty=v8::CpuProfileDeoptFrame ] and [ _Ty=v8::CpuProfileDeoptFrame, _Alloc=std::allocatorv8::CpuProfileDeoptFrame ] c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(672): note: see declaration of 'std::_Compressed_pair<std::_Wrap_alloc<std::allocator<_Ty>>,std::_Vector_val<std::_Simple_typesv8::CpuProfileDeoptFrame>,true>' with [ _Ty=v8::CpuProfileDeoptFrame ] c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(680): warning C4251: 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>::_Mypair': class 'std::_Compressed_pair<std::_Wrap_alloc<std::allocator<_Ty>>,std::_Vector_val<std::_Simple_typesv8::CpuProfileDeoptInfo>,true>' needs to have dll-interface to be used by clients of class 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>' with [ _Ty=v8::CpuProfileDeoptInfo, _Alloc=std::allocatorv8::CpuProfileDeoptInfo ] and [ _Ty=v8::CpuProfileDeoptInfo ] and [ _Ty=v8::CpuProfileDeoptInfo, _Alloc=std::allocatorv8::CpuProfileDeoptInfo ] c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(672): note: see declaration of 'std::_Compressed_pair<std::_Wrap_alloc<std::allocator<_Ty>>,std::_Vector_val<std::_Simple_typesv8::CpuProfileDeoptInfo>,true>' with [ _Ty=v8::CpuProfileDeoptInfo ] c:\dev\nwjs\src\v8\include\v8-profiler.h(44): note: see reference to class template instantiation 'std::vector<v8::CpuProfileDeoptInfo,std::allocator<_Ty>>' being compiled with [ _Ty=v8::CpuProfileDeoptInfo ] [304/14610] CXX obj\v8\src\snapshot\v8_base_3.snapshot-common.obj FAILED: obj/v8/src/snapshot/v8_base_3.snapshot-common.obj ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\cl.exe" /nologo /showIncludes /FC @obj\v8\src\snapshot\v8_base_3.snapshot-common.obj.rsp /c ....\v8\src\snapshot\snapshot-common.cc /Foobj\v8\src\snapshot\v8_base_3.snapshot-common.obj /Fdobj\v8\tools\gyp\v8_base_3.cc.pdb c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(680): error C2220: warning treated as error - no 'object' file generated c:\dev\nwjs\src\v8\include\v8-profiler.h(30): note: see reference to class template instantiation 'std::vector<v8::CpuProfileDeoptFrame,std::allocator<_Ty>>' being compiled with [ _Ty=v8::CpuProfileDeoptFrame ] c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(680): warning C4251: 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>::_Mypair': class 'std::_Compressed_pair<std::_Wrap_alloc<std::allocator<_Ty>>,std::_Vector_val<std::_Simple_typesv8::CpuProfileDeoptFrame>,true>' needs to have dll-interface to be used by clients of class 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>' with [ _Ty=v8::CpuProfileDeoptFrame, _Alloc=std::allocatorv8::CpuProfileDeoptFrame ] and [ _Ty=v8::CpuProfileDeoptFrame ] and [ _Ty=v8::CpuProfileDeoptFrame, _Alloc=std::allocatorv8::CpuProfileDeoptFrame ] c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(672): note: see declaration of 'std::_Compressed_pair<std::_Wrap_alloc<std::allocator<_Ty>>,std::_Vector_val<std::_Simple_typesv8::CpuProfileDeoptFrame>,true>' with [ _Ty=v8::CpuProfileDeoptFrame ] c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(680): warning C4251: 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>::_Mypair': class 'std::_Compressed_pair<std::_Wrap_alloc<std::allocator<_Ty>>,std::_Vector_val<std::_Simple_typesv8::CpuProfileDeoptInfo>,true>' needs to have dll-interface to be used by clients of class 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>' with [ _Ty=v8::CpuProfileDeoptInfo, _Alloc=std::allocatorv8::CpuProfileDeoptInfo ] and [ _Ty=v8::CpuProfileDeoptInfo ] and [ _Ty=v8::CpuProfileDeoptInfo, _Alloc=std::allocatorv8::CpuProfileDeoptInfo ] c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(672): note: see declaration of 'std::_Compressed_pair<std::_Wrap_alloc<std::allocator<_Ty>>,std::_Vector_val<std::_Simple_typesv8::CpuProfileDeoptInfo>,true>' with [ _Ty=v8::CpuProfileDeoptInfo ] c:\dev\nwjs\src\v8\include\v8-profiler.h(44): note: see reference to class template instantiation 'std::vector<v8::CpuProfileDeoptInfo,std::allocator<_Ty>>' being compiled with [ _Ty=v8::CpuProfileDeoptInfo ] [305/14610] CXX obj\v8\src\runtime\v8_base_3.runtime-internal.obj FAILED: obj/v8/src/runtime/v8_base_3.runtime-internal.obj ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\cl.exe" /nologo /showIncludes /FC @obj\v8\src\runtime\v8_base_3.runtime-internal.obj.rsp /c ....\v8\src\runtime\runtime-internal.cc /Foobj\v8\src\runtime\v8_base_3.runtime-internal.obj /Fdobj\v8\tools\gyp\v8_base_3.cc.pdb c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(680): error C2220: warning treated as error - no 'object' file generated c:\dev\nwjs\src\v8\include\v8-profiler.h(30): note: see reference to class template instantiation 'std::vector<v8::CpuProfileDeoptFrame,std::allocator<_Ty>>' being compiled with [ _Ty=v8::CpuProfileDeoptFrame ] c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(680): warning C4251: 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>::_Mypair': class 'std::_Compressed_pair<std::_Wrap_alloc<std::allocator<_Ty>>,std::_Vector_val<std::_Simple_typesv8::CpuProfileDeoptFrame>,true>' needs to have dll-interface to be used by clients of class 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>' with [ _Ty=v8::CpuProfileDeoptFrame, _Alloc=std::allocatorv8::CpuProfileDeoptFrame ] and [ _Ty=v8::CpuProfileDeoptFrame ] and [ _Ty=v8::CpuProfileDeoptFrame, _Alloc=std::allocatorv8::CpuProfileDeoptFrame ] c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(672): note: see declaration of 'std::_Compressed_pair<std::_Wrap_alloc<std::allocator<_Ty>>,std::_Vector_val<std::_Simple_typesv8::CpuProfileDeoptFrame>,true>' with [ _Ty=v8::CpuProfileDeoptFrame ] c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(680): warning C4251: 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>::_Mypair': class 'std::_Compressed_pair<std::_Wrap_alloc<std::allocator<_Ty>>,std::_Vector_val<std::_Simple_typesv8::CpuProfileDeoptInfo>,true>' needs to have dll-interface to be used by clients of class 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>' with [ _Ty=v8::CpuProfileDeoptInfo, _Alloc=std::allocatorv8::CpuProfileDeoptInfo ] and [ _Ty=v8::CpuProfileDeoptInfo ] and [ _Ty=v8::CpuProfileDeoptInfo, _Alloc=std::allocatorv8::CpuProfileDeoptInfo ] c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(672): note: see declaration of 'std::_Compressed_pair<std::_Wrap_alloc<std::allocator<_Ty>>,std::_Vector_val<std::_Simple_typesv8::CpuProfileDeoptInfo>,true>' with [ _Ty=v8::CpuProfileDeoptInfo ] c:\dev\nwjs\src\v8\include\v8-profiler.h(44): note: see reference to class template instantiation 'std::vector<v8::CpuProfileDeoptInfo,std::allocator<_Ty>>' being compiled with [ _Ty=v8::CpuProfileDeoptInfo ] [306/14610] CXX obj\v8\src\runtime\v8_base_3.runtime-compiler.obj FAILED: obj/v8/src/runtime/v8_base_3.runtime-compiler.obj ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\cl.exe" /nologo /showIncludes /FC @obj\v8\src\runtime\v8_base_3.runtime-compiler.obj.rsp /c ....\v8\src\runtime\runtime-compiler.cc /Foobj\v8\src\runtime\v8_base_3.runtime-compiler.obj /Fdobj\v8\tools\gyp\v8_base_3.cc.pdb c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(680): error C2220: warning treated as error - no 'object' file generated c:\dev\nwjs\src\v8\include\v8-profiler.h(30): note: see reference to class template instantiation 'std::vector<v8::CpuProfileDeoptFrame,std::allocator<_Ty>>' being compiled with [ _Ty=v8::CpuProfileDeoptFrame ] c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(680): warning C4251: 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>::_Mypair': class 'std::_Compressed_pair<std::_Wrap_alloc<std::allocator<_Ty>>,std::_Vector_val<std::_Simple_typesv8::CpuProfileDeoptFrame>,true>' needs to have dll-interface to be used by clients of class 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>' with [ _Ty=v8::CpuProfileDeoptFrame, _Alloc=std::allocatorv8::CpuProfileDeoptFrame ] and [ _Ty=v8::CpuProfileDeoptFrame ] and [ _Ty=v8::CpuProfileDeoptFrame, _Alloc=std::allocatorv8::CpuProfileDeoptFrame ] c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(672): note: see declaration of 'std::_Compressed_pair<std::_Wrap_alloc<std::allocator<_Ty>>,std::_Vector_val<std::_Simple_typesv8::CpuProfileDeoptFrame>,true>' with [ _Ty=v8::CpuProfileDeoptFrame ] c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(680): warning C4251: 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>::_Mypair': class 'std::_Compressed_pair<std::_Wrap_alloc<std::allocator<_Ty>>,std::_Vector_val<std::_Simple_typesv8::CpuProfileDeoptInfo>,true>' needs to have dll-interface to be used by clients of class 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>' with [ _Ty=v8::CpuProfileDeoptInfo, _Alloc=std::allocatorv8::CpuProfileDeoptInfo ] and [ _Ty=v8::CpuProfileDeoptInfo ] and [ _Ty=v8::CpuProfileDeoptInfo, _Alloc=std::allocatorv8::CpuProfileDeoptInfo ] c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(672): note: see declaration of 'std::_Compressed_pair<std::_Wrap_alloc<std::allocator<_Ty>>,std::_Vector_val<std::_Simple_typesv8::CpuProfileDeoptInfo>,true>' with [ _Ty=v8::CpuProfileDeoptInfo ] c:\dev\nwjs\src\v8\include\v8-profiler.h(44): note: see reference to class template instantiation 'std::vector<v8::CpuProfileDeoptInfo,std::allocator<_Ty>>' being compiled with [ _Ty=v8::CpuProfileDeoptInfo ] ninja: build stopped: subcommand failed.`

ScriptPup avatar Jan 30 '17 02:01 ScriptPup

After banging my head against the wall for long enough, I realized that I should be trying to use the release version not the debug... Oops... I have a different problem on that, I'll open a different issue for it though.

ScriptPup avatar Jan 30 '17 03:01 ScriptPup

After fixing the _ff_w64_guid_data issue, this one came back :(

ScriptPup avatar Jan 31 '17 01:01 ScriptPup