node-clr icon indicating copy to clipboard operation
node-clr copied to clipboard

Unable to build against node v8.9.1

Open Guevara-chan opened this issue 7 years ago • 3 comments

Looks like updating was a rather bad idea:

DllMain.cc node-clr.cc Marshal.cc CLRObject.cc C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4124): error C2664: 'std::pair<std::unique_ptr<const uint8_t [] ,std::default_delete<_Ty>>,std::size_t>::pair(std::pair<std::unique_ptr<_Ty,std::default_delete<_Ty>>,std::size_t> &&)' : cannot convert argument 1 from 'nullptr' to 'nullptr &&' [C:\Users\Guevara-chan\AppData\Roaming\npm\node_modules\clr
build\clr.vcxproj] with [ _Ty=const uint8_t [] ] (compiling source file ..\src\node-clr.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4124): note: nullptr can only be converted to pointer or hand le types (compiling source file ..\src\node-clr.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4124): error C2664: 'std::pair<std::unique_ptr<const uint8_t [] ,std::default_delete<_Ty>>,std::size_t>::pair(std::pair<std::unique_ptr<_Ty,std::default_delete<_Ty>>,std::size_t> &&)' : cannot convert argument 1 from 'nullptr' to 'nullptr &&' [C:\Users\Guevara-chan\AppData\Roaming\npm\node_modules\clr
build\clr.vcxproj] with [ _Ty=const uint8_t [] ] (compiling source file ..\src\CLRObject.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4124): note: nullptr can only be converted to pointer or hand le types (compiling source file ..\src\CLRObject.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4124): error C2664: 'std::pair<std::unique_ptr<const uint8_t [] ,std::default_delete<_Ty>>,std::size_t>::pair(std::pair<std::unique_ptr<_Ty,std::default_delete<_Ty>>,std::size_t> &&)' : cannot convert argument 1 from 'nullptr' to 'nullptr &&' [C:\Users\Guevara-chan\AppData\Roaming\npm\node_modules\clr
build\clr.vcxproj] with [ _Ty=const uint8_t [] ] (compiling source file ..\src\Marshal.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4124): note: nullptr can only be converted to pointer or hand le types (compiling source file ..\src\Marshal.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4124): error C2664: 'std::pair<std::unique_ptr<const uint8_t [] ,std::default_delete<_Ty>>,std::size_t>::pair(std::pair<std::unique_ptr<_Ty,std::default_delete<_Ty>>,std::size_t> &&)' : cannot convert argument 1 from 'nullptr' to 'nullptr &&' [C:\Users\Guevara-chan\AppData\Roaming\npm\node_modules\clr
build\clr.vcxproj] with [ _Ty=const uint8_t [] ] (compiling source file ..\src\DllMain.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4124): note: nullptr can only be converted to pointer or hand le types (compiling source file ..\src\DllMain.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4125): error C2664: 'std::pair<std::unique_ptr<const uint8_t [] ,std::default_delete<_Ty>>,std::size_t>::pair(std::pair<std::unique_ptr<_Ty,std::default_delete<_Ty>>,std::size_t> &&)' : cannot convert argument 1 from 'nullptr' to 'nullptr &&' [C:\Users\Guevara-chan\AppData\Roaming\npm\node_modules\clr
build\clr.vcxproj] with [ _Ty=const uint8_t [] ] (compiling source file ..\src\node-clr.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4125): note: nullptr can only be converted to pointer or hand le types (compiling source file ..\src\node-clr.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4125): error C2664: 'std::pair<std::unique_ptr<const uint8_t [] ,std::default_delete<_Ty>>,std::size_t>::pair(std::pair<std::unique_ptr<_Ty,std::default_delete<_Ty>>,std::size_t> &&)' : cannot convert argument 1 from 'nullptr' to 'nullptr &&' [C:\Users\Guevara-chan\AppData\Roaming\npm\node_modules\clr
build\clr.vcxproj] with [ _Ty=const uint8_t [] ] (compiling source file ..\src\CLRObject.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4125): note: nullptr can only be converted to pointer or hand le types (compiling source file ..\src\CLRObject.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4125): error C2664: 'std::pair<std::unique_ptr<const uint8_t [] ,std::default_delete<_Ty>>,std::size_t>::pair(std::pair<std::unique_ptr<_Ty,std::default_delete<_Ty>>,std::size_t> &&)' : cannot convert argument 1 from 'nullptr' to 'nullptr &&' [C:\Users\Guevara-chan\AppData\Roaming\npm\node_modules\clr
build\clr.vcxproj] with [ _Ty=const uint8_t [] ] (compiling source file ..\src\Marshal.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4125): note: nullptr can only be converted to pointer or hand le types (compiling source file ..\src\Marshal.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4125): error C2664: 'std::pair<std::unique_ptr<const uint8_t [] ,std::default_delete<_Ty>>,std::size_t>::pair(std::pair<std::unique_ptr<_Ty,std::default_delete<_Ty>>,std::size_t> &&)' : cannot convert argument 1 from 'nullptr' to 'nullptr &&' [C:\Users\Guevara-chan\AppData\Roaming\npm\node_modules\clr
build\clr.vcxproj] with [ _Ty=const uint8_t [] ] (compiling source file ..\src\DllMain.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4125): note: nullptr can only be converted to pointer or hand le types (compiling source file ..\src\DllMain.cc) CLRBinder.cc V8Function.cc V8Delegate.cc V8InvocationException.cc C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4124): error C2664: 'std::pair<std::unique_ptr<const uint8_t [] ,std::default_delete<_Ty>>,std::size_t>::pair(std::pair<std::unique_ptr<_Ty,std::default_delete<_Ty>>,std::size_t> &&)' : cannot convert argument 1 from 'nullptr' to 'nullptr &&' [C:\Users\Guevara-chan\AppData\Roaming\npm\node_modules\clr
build\clr.vcxproj] with [ _Ty=const uint8_t [] ] (compiling source file ..\src\CLRBinder.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4124): note: nullptr can only be converted to pointer or hand le types (compiling source file ..\src\CLRBinder.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4125): error C2664: 'std::pair<std::unique_ptr<const uint8_t [] ,std::default_delete<_Ty>>,std::size_t>::pair(std::pair<std::unique_ptr<_Ty,std::default_delete<_Ty>>,std::size_t> &&)' : cannot convert argument 1 from 'nullptr' to 'nullptr &&' [C:\Users\Guevara-chan\AppData\Roaming\npm\node_modules\clr
build\clr.vcxproj] with [ _Ty=const uint8_t [] ] (compiling source file ..\src\CLRBinder.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4125): note: nullptr can only be converted to pointer or hand le types (compiling source file ..\src\CLRBinder.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4124): error C2664: 'std::pair<std::unique_ptr<const uint8_t [] ,std::default_delete<_Ty>>,std::size_t>::pair(std::pair<std::unique_ptr<_Ty,std::default_delete<_Ty>>,std::size_t> &&)' : cannot convert argument 1 from 'nullptr' to 'nullptr &&' [C:\Users\Guevara-chan\AppData\Roaming\npm\node_modules\clr
build\clr.vcxproj] with [ _Ty=const uint8_t [] ] (compiling source file ..\src\V8Function.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4124): note: nullptr can only be converted to pointer or hand le types (compiling source file ..\src\V8Function.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4125): error C2664: 'std::pair<std::unique_ptr<const uint8_t [] ,std::default_delete<_Ty>>,std::size_t>::pair(std::pair<std::unique_ptr<_Ty,std::default_delete<_Ty>>,std::size_t> &&)' : cannot convert argument 1 from 'nullptr' to 'nullptr &&' [C:\Users\Guevara-chan\AppData\Roaming\npm\node_modules\clr
build\clr.vcxproj] with [ _Ty=const uint8_t [] ] (compiling source file ..\src\V8Function.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4125): note: nullptr can only be converted to pointer or hand le types (compiling source file ..\src\V8Function.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4124): error C2664: 'std::pair<std::unique_ptr<const uint8_t [] ,std::default_delete<_Ty>>,std::size_t>::pair(std::pair<std::unique_ptr<_Ty,std::default_delete<_Ty>>,std::size_t> &&)' : cannot convert argument 1 from 'nullptr' to 'nullptr &&' [C:\Users\Guevara-chan\AppData\Roaming\npm\node_modules\clr
build\clr.vcxproj] with [ _Ty=const uint8_t [] ] (compiling source file ..\src\V8InvocationException.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4124): note: nullptr can only be converted to pointer or hand le types (compiling source file ..\src\V8InvocationException.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4125): error C2664: 'std::pair<std::unique_ptr<const uint8_t [] ,std::default_delete<_Ty>>,std::size_t>::pair(std::pair<std::unique_ptr<_Ty,std::default_delete<_Ty>>,std::size_t> &&)' : cannot convert argument 1 from 'nullptr' to 'nullptr &&' [C:\Users\Guevara-chan\AppData\Roaming\npm\node_modules\clr
build\clr.vcxproj] with [ _Ty=const uint8_t [] ] (compiling source file ..\src\V8InvocationException.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4125): note: nullptr can only be converted to pointer or hand le types (compiling source file ..\src\V8InvocationException.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4124): error C2664: 'std::pair<std::unique_ptr<const uint8_t [] ,std::default_delete<_Ty>>,std::size_t>::pair(std::pair<std::unique_ptr<_Ty,std::default_delete<_Ty>>,std::size_t> &&)' : cannot convert argument 1 from 'nullptr' to 'nullptr &&' [C:\Users\Guevara-chan\AppData\Roaming\npm\node_modules\clr
build\clr.vcxproj] with [ _Ty=const uint8_t [] ] (compiling source file ..\src\V8Delegate.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4124): note: nullptr can only be converted to pointer or hand le types (compiling source file ..\src\V8Delegate.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4125): error C2664: 'std::pair<std::unique_ptr<const uint8_t [] ,std::default_delete<_Ty>>,std::size_t>::pair(std::pair<std::unique_ptr<_Ty,std::default_delete<_Ty>>,std::size_t> &&)' : cannot convert argument 1 from 'nullptr' to 'nullptr &&' [C:\Users\Guevara-chan\AppData\Roaming\npm\node_modules\clr
build\clr.vcxproj] with [ _Ty=const uint8_t [] ] (compiling source file ..\src\V8Delegate.cc) C:\Users\Guevara-chan.node-gyp\8.9.1\include\node\v8.h(4125): note: nullptr can only be converted to pointer or hand le types (compiling source file ..\src\V8Delegate.cc)

Guevara-chan avatar Dec 08 '17 10:12 Guevara-chan

Ahem...

Guevara-chan avatar Dec 12 '17 13:12 Guevara-chan

wait, I'm not now able to handle this issue, so please be patient.

AtsushiSuzuki avatar Dec 12 '17 13:12 AtsushiSuzuki

Seems that latest node runtime relies on Visual C++ 2017. Try "npm install clr --msvs_version=2017" with 2017 compiler (http://landinghub.visualstudio.com/visual-cpp-build-tools)

AtsushiSuzuki avatar Dec 12 '17 16:12 AtsushiSuzuki