Closed priyavivek1 closed 8 years ago
@albanm : Would you be able to look on to this on priority if possible
Hello,
I just released some fixes for windows build, it now works fine on appveyor.
But I am not sure this is the same errors you are having. Actually I don't even see the error in your huge stack :/
Could you try with latest version ?
Hello
cc @gagern
Seems it failing at install of libxmljs-mt Please check following logs
rojects\node_1\node_modules\libxml-xsd\node_modules\libxmljs-mt\build\xmljs.vcxproj]
Creating library c:\projects\node_1\node_modules\libxml-xsd\node_modules\libxmljs-mt\build\Release\xmljs.lib and o
bject c:\projects\node_1\node_modules\libxml-xsd\node_modules\libxmljs-mt\build\Release\xmljs.exp
catalog.obj : error LNK2001: unresolved external symbol snprintf [c:\projects\node_1\node_modules\libxml-xsd\node_modul
es\libxmljs-mt\build\xmljs.vcxproj]
c:\projects\node_1\node_modules\libxml-xsd\node_modules\libxmljs-mt\build\Release\xmljs.node : fatal error LNK1120: 1 u
nresolved externals [c:\projects\node_1\node_modules\libxml-xsd\node_modules\libxmljs-mt\build\xmljs.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe
failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:2
67:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuil
d"
gyp ERR! cwd c:\projects\node_1\node_modules\libxml-xsd\node_modules\libxmljs-mt
gyp ERR! node -v v0.10.39
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm ERR! libxmljs-mt@0.16.0 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the libxmljs-mt@0.16.0 install script.
npm ERR! This is most likely a problem with the libxmljs-mt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls libxmljs-mt
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "c:\Program Files\nodejs\node.exe" "c:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "
install" "--registry=http://registry.npmjs.org/" "libxml-xsd"
npm ERR! cwd c:\projects\node_1
npm ERR! node -v v0.10.39
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
Please enclose code posts on GitHub in ````` lines before and after, to mark them as code for easier reading.
unresolved external symbol snprintf
sounds somewhat familiar… I'd say this is caused by https://github.com/gagern/libxmljs/commit/6967c09cd2f55c7d0d91c19595c4a07158d43acc meeting an outdated version of Visual Studio. According to this post the code as I wrote it depends on Visual Studio 2015. Can you upgrade to that? If not, then I guess I should try to include an #ifdef
somewhere, similar to what I suggested in https://github.com/gagern/libxmljs/commit/946a7bedc603b46126f182f8ffe6cb20795d58e5 for upstream inclusion requested in https://github.com/polotek/libxmljs/pull/361.
I just published libxmljs-mt 0.16.1 which builds using Visual Studio 2013 as well. @priyavivek1, can you please check whether this builds on your system, too? If so, we can bump the dependency of depending packages.
Working fine now..
Install for this module fails. Followinf are the configurations and stack trace:
python version: 2.7.9 Node: 0.10.39 npm: 1..28 node-gyp: 2.0.2 OS: windows 7 -64bit
Following is the stack trace. npm WARN package.json bluebird@3.0.5 Normalized value of bugs field is an empty object. Deleted. npm WARN package.json cluster@0.7.7 cluster is also the name of a node core modu
le.
C:\projects\node_1\node_modules\libxml-xsd\node_modules\libxmljs-mt>node "C:\Pro gram Files\nodejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp \bin\node-gyp.js" rebuild Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. libxmljs.cc xml_attribute.cc xml_document.cc xml_element.cc ..\src\libxmljs.cc(63): warning C4244: 'argument' : conversion from 'ssize_t' t o 'int', possible loss of data [C:\projects\node_1\node_modules\libxml-xsd\node _modules\libxmljs-mt\build\xmljs.vcxproj] ..\src\libxmljs.cc(118): warning C4244: 'argument' : conversion from 'ssize_t' to 'int', possible loss of data [C:\projects\node_1\node_modules\libxml-xsd\nod e_modules\libxmljs-mt\build\xmljs.vcxproj] ..\src\xmldocument.cc(255): warning C4267: 'argument' : conversion from 'size t' to 'int', possible loss of data [C:\projects\node_1\node_modules\libxml-xsd\ node_modules\libxmljs-mt\build\xmljs.vcxproj] ..\src\xmldocument.cc(327): warning C4267: 'argument' : conversion from 'size t' to 'int', possible loss of data [C:\projects\node_1\node_modules\libxml-xsd\ node_modules\libxmljs-mt\build\xmljs.vcxproj] ..\src\xmldocument.cc(385): warning C4267: 'argument' : conversion from 'size t' to 'int', possible loss of data [C:\projects\node_1\node_modules\libxml-xsd\ node_modules\libxmljs-mt\build\xmljs.vcxproj] c:\projects\node_1\node_modules\libxml-xsd\node_modules\libxmljs-mt\node_module s\nan\nan_new.h(208): warning C4800: 'int' : forcing value to bool 'true' or 'f alse' (performance warning) (..\src\libxmljs.cc) [C:\projects\node_1\node_modul es\libxml-xsd\node_modules\libxmljs-mt\build\xmljs.vcxproj] ..\src\libxmljs.cc(178) : see reference to function template instanti ation 'v8::Localv8::Boolean Nan::Newv8::Boolean,int(A0)' being compiled with [ A0=int ] c:\projects\node_1\node_modules\libxml-xsd\node_modules\libxmljs-mt\node_module s\nan\nan_new.h(214): warning C4267: 'argument' : conversion from 'size_t' to ' int', possible loss of data (..\src\xml_document.cc) [C:\projects\node_1\node_m odules\libxml-xsd\node_modules\libxmljs-mt\build\xmljs.vcxproj] ..\src\xml_document.cc(112) : see reference to function template inst antiation 'Nan::MaybeLocalv8::String Nan::New<v8::String,const char*,size_t