Skip to content

Building libxml-xsd against Node 10 has fatal compile error #29

@corvinrok

Description

@corvinrok

In a current working project using libxml-xsd (version 0.5.2), I tried rebuilding after upgrading to Node 10.0.0

The compile of libxml-xsd fails with a fatal compile error, as seen below:

..\src\schema.cc(31): error C2661: 'v8::Function::NewInstance': no overloaded function takes 0 arguments [C:\git\my-project\node_modules\libxml-xsd\build\node-libxml-xsd.vcxproj]

You can see the detailed compile stream below:

C:\git\my-project>npm rebuild 

> libxml-xsd@0.5.2 install C:\git\my-project\node_modules\libxml-xsd
> node-gyp rebuild


C:\git\my-project\node_modules\libxml-xsd>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\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.
  schema.cc
  node_libxml_xsd.cc
  win_delay_load_hook.cc
..\src\node_libxml_xsd.cc(1): warning C4005: 'BUILDING_NODE_EXTENSION': macro redefinition [C:\git\my-project\node_modules\libxml-xsd\build\node-libxml-xsd.vcxproj]
  ..\src\node_libxml_xsd.cc(1): note: command-line arguments:  see previous definition of 'BUILDING_NODE_EXTENSION'
..\src\schema.cc(31): error C2661: 'v8::Function::NewInstance': no overloaded function takes 0 arguments [C:\git\my-project\node_modules\libxml-xsd\build\node-libxml-xsd.vcxproj]
..\src\node_libxml_xsd.cc(76): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\git\my-project\node_modules\libxml-xsd\build\node-libxml-xsd.vcxproj]
  C:\git\my-project\node_modules\nan\nan.h(1618): note: see declaration of 'Nan::Callback::Call'
..\src\node_libxml_xsd.cc(79): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\git\my-project\node_modules\libxml-xsd\build\node-libxml-xsd.vcxproj]
  C:\git\my-project\node_modules\nan\nan.h(1618): note: see declaration of 'Nan::Callback::Call'
..\src\node_libxml_xsd.cc(83): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\git\my-project\node_modules\libxml-xsd\build\node-libxml-xsd.vcxproj]
  C:\git\my-project\node_modules\nan\nan.h(1618): note: see declaration of 'Nan::Callback::Call'
..\src\node_libxml_xsd.cc(171): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\git\my-project\node_modules\libxml-xsd\build\node-libxml-xsd.vcxproj]
  C:\git\my-project\node_modules\nan\nan.h(1618): note: see declaration of 'Nan::Callback::Call'
..\src\node_libxml_xsd.cc(174): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\git\my-project\node_modules\libxml-xsd\build\node-libxml-xsd.vcxproj]
  C:\git\my-project\node_modules\nan\nan.h(1618): note: see declaration of 'Nan::Callback::Call'

gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.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:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:225:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\git\my-project\node_modules\libxml-xsd
gyp ERR! node -v v10.0.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! libxml-xsd@0.5.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the libxml-xsd@0.5.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\myuser\AppData\Roaming\npm-cache\_logs\2018-04-24T22_57_40_698Z-debug.log

It would be wonderful if I could use this package with my Node 10 application. Can this be fixed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions