Created
June 9, 2017 22:03
-
-
Save mateodelnorte/821335aeb1d4e6a4dfdb594f0386dc97 to your computer and use it in GitHub Desktop.
failed n-api build on Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ node-gyp rebuild --msvs_version=2013 | |
gyp info it worked if it ends with ok | |
gyp info using node-gyp@3.5.0 | |
gyp info using node@6.9.1 | win32 | x64 | |
gyp info spawn C:\Python27\python.EXE | |
gyp info spawn args [ 'C:\\Program Files (x86)\\Nodist\\v-x64\\6.9.1\\node_modules\\node-gyp\\gyp\\gyp_main.py', | |
gyp info spawn args 'binding.gyp', | |
gyp info spawn args '-f', | |
gyp info spawn args 'msvs', | |
gyp info spawn args '-G', | |
gyp info spawn args 'msvs_version=2013', | |
gyp info spawn args '-I', | |
gyp info spawn args 'C:\\development\\ged\\sophis-c-client\\build\\config.gypi', | |
gyp info spawn args '-I', | |
gyp info spawn args 'C:\\Program Files (x86)\\Nodist\\v-x64\\6.9.1\\node_modules\\node-gyp\\addon.gypi', | |
gyp info spawn args '-I', | |
gyp info spawn args 'C:\\Users\\Waltem7\\.node-gyp\\6.9.1\\include\\node\\common.gypi', | |
gyp info spawn args '-Dlibrary=shared_library', | |
gyp info spawn args '-Dvisibility=default', | |
gyp info spawn args '-Dnode_root_dir=C:\\Users\\Waltem7\\.node-gyp\\6.9.1', | |
gyp info spawn args '-Dnode_gyp_dir=C:\\Program Files (x86)\\Nodist\\v-x64\\6.9.1\\node_modules\\node-gyp', | |
gyp info spawn args '-Dnode_lib_file=node.lib', | |
gyp info spawn args '-Dmodule_root_dir=C:\\development\\ged\\sophis-c-client', | |
gyp info spawn args '--depth=.', | |
gyp info spawn args '--no-parallel', | |
gyp info spawn args '--generator-output', | |
gyp info spawn args 'C:\\development\\ged\\sophis-c-client\\build', | |
gyp info spawn args '-Goutput_dir=.' ] | |
gyp info spawn msbuild | |
gyp info spawn args [ 'build/binding.sln', | |
gyp info spawn args '/clp:Verbosity=minimal', | |
gyp info spawn args '/nologo', | |
gyp info spawn args '/p:Configuration=Release;Platform=x64' ] | |
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. | |
node-api.vcxproj -> C:\development\ged\sophis-c-client\build\Release\\node-api.lib | |
sophis_c_client.cc | |
C:\development\ged\sophis-c-client\node_modules\node-addon-api\napi.h(436): error C2146: syntax error : missing ';' before identifier 'napi_typedar ray_type' (..\src\sophis_c_client.cc) [C:\development\ged\sophis-c-client\build\sophis-c-client-native.vcxproj] | |
C:\development\ged\sophis-c-client\node_modules\node-addon-api\napi.h(436): error C4430: missing type specifier - int assumed. Note: C++ does not s upport default-int (..\src\sophis_c_client.cc) [C:\development\ged\sophis-c-client\build\sophis-c-client-native.vcxproj] | |
C:\development\ged\sophis-c-client\node_modules\node-addon-api\napi.h(436): error C2238: unexpected token(s) preceding ';' (..\src\sophis_c_client. cc) [C:\development\ged\sophis-c-client\build\sophis-c-client-native.vcxproj] | |
C:\development\ged\sophis-c-client\node_modules\node-addon-api\napi.h(446): error C2143: syntax error : missing ';' before '<end Parse>' (..\src\so phis_c_client.cc) [C:\development\ged\sophis-c-client\build\sophis-c-client-native.vcxproj] | |
C:\development\ged\sophis-c-client\node_modules\node-addon-api\napi.h(446): error C2988: unrecognizable template declaration/definition (..\src\sop his_c_client.cc) [C:\development\ged\sophis-c-client\build\sophis-c-client-native.vcxproj] | |
C:\development\ged\sophis-c-client\node_modules\node-addon-api\napi.h(446): error C2059: syntax error : '<end Parse>' (..\src\sophis_c_client.cc) [ C:\development\ged\sophis-c-client\build\sophis-c-client-native.vcxproj] | |
C:\development\ged\sophis-c-client\node_modules\node-addon-api\napi.h(448): error C2143: syntax error : missing ';' before '}' (..\src\sophis_c_cli ent.cc) [C:\development\ged\sophis-c-client\build\sophis-c-client-native.vcxproj] | |
C:\development\ged\sophis-c-client\node_modules\node-addon-api\napi.h(448): error C2238: unexpected token(s) preceding ';' (..\src\sophis_c_client. cc) [C:\development\ged\sophis-c-client\build\sophis-c-client-native.vcxproj] | |
c:\development\ged\sophis-c-client\node_modules\node-addon-api\napi-inl.h(162): error C2280: 'Napi::ObjectReference::ObjectReference(const Napi::Ob jectReference &)' : attempting to reference a deleted function (..\src\sophis_c_client.cc) [C:\development\ged\sophis-c-client\build\sophis-c-clien t-native.vcxproj] | |
C:\development\ged\sophis-c-client\node_modules\node-addon-api\napi.h(639) : see declaration of 'Napi::ObjectReference::ObjectReference' | |
c:\development\ged\sophis-c-client\node_modules\node-addon-api\napi-inl.h(162): error C2280: 'Napi::Reference<Napi::Object>::Reference(const Napi:: Reference<Napi::Object> &)' : attempting to reference a deleted function (..\src\sophis_c_client.cc) [C:\development\ged\sophis-c-client\build\soph is-c-client-native.vcxproj] | |
C:\development\ged\sophis-c-client\node_modules\node-addon-api\napi.h(595) : see declaration of 'Napi::Reference<Napi::Object>::Reference | |
' | |
c:\development\ged\sophis-c-client\node_modules\node-addon-api\napi-inl.h(2636): error C2668: 'Napi::FunctionReference::MakeCallback' : ambiguous c all to overloaded function (..\src\sophis_c_client.cc) [C:\development\ged\sophis-c-client\build\sophis-c-client-native.vcxproj] | |
C:\development\ged\sophis-c-client\node_modules\node-addon-api\napi.h(685): could be 'Napi::Value Napi::FunctionReference::MakeCallback(n | |
api_value,const std::vector<napi_value,std::allocator<_Ty>> &) const' | |
with | |
[ | |
_Ty=napi_value | |
] | |
C:\development\ged\sophis-c-client\node_modules\node-addon-api\napi.h(684): or 'Napi::Value Napi::FunctionReference::MakeCallback(n | |
api_value,const std::initializer_list<napi_value> &) const' | |
while trying to match the argument list '(Napi::Object, initializer-list)' | |
c:\development\ged\sophis-c-client\node_modules\node-addon-api\napi-inl.h(2640): error C2668: 'Napi::FunctionReference::MakeCallback' : ambiguous c all to overloaded function (..\src\sophis_c_client.cc) [C:\development\ged\sophis-c-client\build\sophis-c-client-native.vcxproj] | |
C:\development\ged\sophis-c-client\node_modules\node-addon-api\napi.h(685): could be 'Napi::Value Napi::FunctionReference::MakeCallback(n | |
api_value,const std::vector<napi_value,std::allocator<_Ty>> &) const' | |
with | |
[ | |
_Ty=napi_value | |
] | |
C:\development\ged\sophis-c-client\node_modules\node-addon-api\napi.h(684): or 'Napi::Value Napi::FunctionReference::MakeCallback(n | |
api_value,const std::initializer_list<napi_value> &) const' | |
while trying to match the argument list '(Napi::Object, initializer-list)' | |
win_delay_load_hook.cc | |
gyp ERR! build error | |
gyp ERR! stack Error: `msbuild` failed with exit code: 1 | |
gyp ERR! stack at ChildProcess.onExit (C:\Program Files (x86)\Nodist\v-x64\6.9.1\node_modules\node-gyp\lib\build.js:276:23) | |
gyp ERR! stack at emitTwo (events.js:106:13) | |
gyp ERR! stack at ChildProcess.emit (events.js:191:7) | |
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) | |
gyp ERR! System Windows_NT 6.1.7601 | |
gyp ERR! command "C:\\Program Files (x86)\\Nodist\\v-x64\\6.9.1\\node.exe" "C:\\Program Files (x86)\\Nodist\\v-x64\\6.9.1\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--msvs_version=2013" | |
gyp ERR! cwd C:\development\ged\sophis-c-client | |
gyp ERR! node -v v6.9.1 | |
gyp ERR! node-gyp -v v3.5.0 | |
gyp ERR! not ok |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
//cc: @jasongin @digitalinfinity