Neon: [Windows] Build doesn't work

Created on 31 Jan 2017  Â·  10Comments  Â·  Source: neon-bindings/neon

I saw that very recently there were a number of commits to enable building on windows, so I decided to try it out on my Windows 10 workstation, in combination with Node v4.5.0. When I try to build, I get an error (see the log below).

I have installed:

  • neon-cli globally with npm install -g neon-cli
  • the Windows build tools as outlined by Option 1 for Windows.

I'm also using this in the Cargo.toml of the native sub-project:

[dependencies]
# neon = "0.1"   # I would normally use this, but there's no release supporting building on Windows yet
neon = { git = "https://github.com/neon-bindings/neon.git", rev = "82632b7" }

The project itself was written using a version of neon before the Windows build patches landed, I don't know if that matters or not.

I then run npm run-script install, which in turn just calls neon build. I then get the error log below as output.
I'm not sure why linking fails, but I'd appreciate any help I can get on the issue.

If additional information is useful, please let me know and I'll add it.

Error log:
````
c:\Users\Joey\WebstormProjects\quip-npm>npm run-script install

[email protected] install c:\Users\Joey\WebstormProjects\quip-npm
neon build

neon info running cargo
neon info cargo build --release
Compiling quip-npm v0.1.0 (file:///C:/Users/Joey/WebstormProjects/quip-npm/native)
warning: unused #[macro_use] import, #[warn(unused_imports)] on by default
--> src\lib.rs:2:1
|
2 | #[macro_use] extern crate quip;
| ^^^^^^^^^^^^

error: linking with link.exe failed: exit code: 1120
|
= note: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\link.exe" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" "/NOLOGO" "/NXCOMPAT" "/LIBPATH:C:\Users\Joey\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib" "c:\Users\Joey\WebstormProjects\quip-npm\native\target\release\deps\quip_npm.0.o" "/OUT:c:\Users\Joey\WebstormProjects\quip-npm\native\target\release\deps\quip_npm.dll" "/DEF:C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\lib.def" "c:\Users\Joey\WebstormProjects\quip-npm\native\target\release\deps\quip_npm.metadata.o" "/OPT:REF,ICF" "/DEBUG" "/LIBPATH:c:\Users\Joey\WebstormProjects\quip-npm\native\target\release\deps" "/LIBPATH:c:\Users\Joey\WebstormProjects\quip-npm\native\target\release\build\neon-sys-0c4d9d07944f785b\out" "/LIBPATH:C:\Users\Joey\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libneon-2db12e64f3b7706c.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libquip.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libglob-f91e9b8df46fa872.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\liburl-202de0b9a409192e.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libchrono-dbcecae0e318dd38.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libnum-b7f0e5db9a71fae3.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libnum_iter-a8834a56ca9d2c4f.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libtime-6f82524d625f4f4f.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libnum_integer-526375f6a6e0fe32.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libidna-3470bd64de4f9910.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libunicode_bidi-ede9d4430659f041.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libneon_sys-272c99df4d1587db.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libcslice-a567d25dc1f440a1.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\librustc_serialize-bd7ffb5a7ba50190.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libqupa-8c91cd7065ba50f2.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libregex-c31d780cfb4a57d6.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libutf8_ranges-7f32e08feac4eb62.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libregex_syntax-232d5ffe9d454cf0.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libthread_local-bf3b6c6d0da008bc.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libaho_corasick-cbfc226443a03f24.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\liblazy_static-9437d900739939e6.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libmemchr-886202f1e6e45b87.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libthread_id-01fa5da64a0abfdd.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libserde_json-4e02afc9565f2c9d.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libdtoa-733f1fd056ac61b7.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libitoa-0687fdc3e3b3d1cd.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libnum_traits-9e0712891cb84422.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libregex-dda931532bb7f1f2.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libutf8_ranges-ac45e277014bbc8a.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libregex_syntax-12d9d8a01c3721ae.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libaho_corasick-650f2c49bb060751.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libmemchr-b06a40b595d0bf3e.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\liblibc-e8bd7a8d60e9ed01.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libthread_local-19c1a01fc95c9d3c.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libunreachable-f2df520df003302b.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libthread_id-b435187b8da15af4.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libkernel32-3d2d136aa6056677.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libwinapi-0c6be1d302051fac.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libvoid-3b27c16b349b6be3.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libserde_xml-45f06a5c836947b3.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\liblog-f65e33970a0e6355.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libserde-75a8aa05e03aa532.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libmatches-3bb6e7f56ca2dd49.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libunicode_normalization-86787806df218c28.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libxmltree-a47980dd14635f79.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libxml-6c87a489ab5b2f8c.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libbitflags-03d2f8fc1bd339bd.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libstd-56c4253e6ac58c24.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libpanic_unwind-e199f03d8643a20a.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libunwind-3f8955ba87c61415.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\liblibc-df3646a1b332e609.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\librand-7555122c29c34b68.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libcollections-d1a9fc4bbc290f23.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\liballoc-4d59579939adf71a.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\liballoc_system-5c3e199d4a3e12eb.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libstd_unicode-7ff3b5786b329208.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libcore-9b17799c7ca60219.rlib" "C:\Users\Joey\AppData\Local\Temp\rustc.Qgvs59ULZOkx\libcompiler_builtins-c92942f2c930f53c.rlib" "kernel32.lib" "advapi32.lib" "ws2_32.lib" "userenv.lib" "shell32.lib" "msvcrt.lib" "/DLL" "/IMPLIB:c:\Users\Joey\WebstormProjects\quip-npm\native\target\release\deps\quip_npm.dll.lib"
= note: Creating library c:\Users\Joey\WebstormProjects\quip-npm\native\target\release\deps\quip_npm.dll.lib and object c:\Users\Joey\WebstormProjects\quip-npm\native\target\release\deps\quip_npm.dll.exp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
quip_npm.0.o : error LNK2019: unresolved external symbol node_module_register referenced in function _ZN8quip_npm18__LOAD_NEON_MODULE18__load_neon_module17h10b216f58a3c2fcaE
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl v8::HandleScope::HandleScope(class v8::Isolate )" (__imp_??0HandleScope@v8@@QEAA@PEAVIsolate@1@@Z) referenced in function "void __cdecl Nan::ThrowError(char const *)" (?ThrowError@Nan@@YAXPEBD@Z)
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl v8::HandleScope::~HandleScope(void)" (__imp_??1HandleScope@v8@@QEAA@XZ) referenced in function "void __cdecl Nan::ThrowError(char const *)" (?ThrowError@Nan@@YAXPEBD@Z)
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: static class v8::internal::Object * * __cdecl v8::HandleScope::CreateHandle(class v8::internal::Isolate *,class v8::internal::Object *)" (__imp_?CreateHandle@HandleScope@v8@@KAPEAPEAVObject@internal@2@PEAVIsolate@42@PEAV342@@Z) referenced in function NeonSys_Class_AddMethod
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl v8::EscapableHandleScope::EscapableHandleScope(class v8::Isolate *)" (__imp_??0EscapableHandleScope@v8@@QEAA@PEAVIsolate@1@@Z) referenced in function NeonSys_Convert_ToObject
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) private: class v8::internal::Object * * __cdecl v8::EscapableHandleScope::Escape(class v8::internal::Object * *)" (__imp_?Escape@EscapableHandleScope@v8@@AEAAPEAPEAVObject@internal@2@PEAPEAV342@@Z) referenced in function NeonSys_Convert_ToObject
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl v8::Value::IsTrue(void)const " (__imp_?IsTrue@Value@v8@@QEBA_NXZ) referenced in function NeonSys_Tag_Of
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl v8::Value::IsFalse(void)const " (__imp_?IsFalse@Value@v8@@QEBA_NXZ) referenced in function NeonSys_Tag_Of
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl v8::Value::IsFunction(void)const " (__imp_?IsFunction@Value@v8@@QEBA_NXZ) referenced in function NeonSys_Tag_IsFunction
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl v8::Value::IsArray(void)const " (__imp_?IsArray@Value@v8@@QEBA_NXZ) referenced in function NeonSys_Tag_IsArray
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl v8::Value::IsObject(void)const " (__imp_?IsObject@Value@v8@@QEBA_NXZ) referenced in function NeonSys_Tag_IsObject
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl v8::Value::IsBoolean(void)const " (__imp_?IsBoolean@Value@v8@@QEBA_NXZ) referenced in function NeonSys_Tag_IsBoolean
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl v8::Value::IsNumber(void)const " (__imp_?IsNumber@Value@v8@@QEBA_NXZ) referenced in function NeonSys_Tag_IsNumber
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl v8::Value::IsInt32(void)const " (__imp_?IsInt32@Value@v8@@QEBA_NXZ) referenced in function NeonSys_Primitive_IsInt32
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl v8::Value::IsUint32(void)const " (__imp_?IsUint32@Value@v8@@QEBA_NXZ) referenced in function NeonSys_Primitive_IsUint32
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl v8::Value::IsNativeError(void)const " (__imp_?IsNativeError@Value@v8@@QEBA_NXZ) referenced in function NeonSys_Tag_IsError
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class v8::MaybeLocal __cdecl v8::Value::ToString(class v8::Local)const " (__imp_?ToString@Value@v8@@QEBA?AV?$MaybeLocal@VString@v8@@@2@V?$Local@VContext@v8@@@2@@Z) referenced in function NeonSys_Convert_ToString
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class v8::MaybeLocal __cdecl v8::Value::ToObject(class v8::Local)const " (__imp_?ToObject@Value@v8@@QEBA?AV?$MaybeLocal@VObject@v8@@@2@V?$Local@VContext@v8@@@2@@Z) referenced in function NeonSys_Convert_ToObject
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl v8::Boolean::Value(void)const " (__imp_?Value@Boolean@v8@@QEBA_NXZ) referenced in function NeonSys_Primitive_BooleanValue
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __cdecl v8::String::Utf8Length(void)const " (__imp_?Utf8Length@String@v8@@QEBAHXZ) referenced in function NeonSys_String_Utf8Length
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class v8::MaybeLocal __cdecl v8::String::NewFromUtf8(class v8::Isolate *,char const *,enum v8::NewStringType,int)" (__imp_?NewFromUtf8@String@v8@@SA?AV?$MaybeLocal@VString@v8@@@2@PEAVIsolate@2@PEBDW4NewStringType@2@H@Z) referenced in function "class v8::MaybeLocal __cdecl Nan::New(char const *)" (??$New@VString@v8@@PEBD@Nan@@YA?AV?$MaybeLocal@VString@v8@@@v8@@PEBD@Z)
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class v8::MaybeLocal __cdecl v8::String::NewFromOneByte(class v8::Isolate *,unsigned char const *,enum v8::NewStringType,int)" (__imp_?NewFromOneByte@String@v8@@SA?AV?$MaybeLocal@VString@v8@@@2@PEAVIsolate@2@PEBEW4NewStringType@2@H@Z) referenced in function NeonSys_Class_ThrowCallError
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: double __cdecl v8::Number::Value(void)const " (__imp_?Value@Number@v8@@QEBANXZ) referenced in function NeonSys_Primitive_NumberValue
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class v8::Local __cdecl v8::Number::New(class v8::Isolate *,double)" (__imp_?New@Number@v8@@SA?AV?$Local@VNumber@v8@@@2@PEAVIsolate@2@N@Z) referenced in function NeonSys_Primitive_Number
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class v8::Local __cdecl v8::Integer::New(class v8::Isolate *,int)" (__imp_?New@Integer@v8@@SA?AV?$Local@VInteger@v8@@@2@PEAVIsolate@2@H@Z) referenced in function NeonSys_Primitive_Integer
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __int64 __cdecl v8::Integer::Value(void)const " (__imp_?Value@Integer@v8@@QEBA_JXZ) referenced in function NeonSys_Primitive_IntegerValue
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class v8::Maybe __cdecl v8::Object::Set(class v8::Local,class v8::Local,class v8::Local)" (__imp_?Set@Object@v8@@QEAA?AV?$Maybe@_N@2@V?$Local@VContext@v8@@@2@V?$Local@VValue@v8@@@2@1@Z) referenced in function NeonSys_Object_Set
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class v8::Maybe __cdecl v8::Object::Set(class v8::Local,unsigned int,class v8::Local)" (__imp_?Set@Object@v8@@QEAA?AV?$Maybe@_N@2@V?$Local@VContext@v8@@@2@IV?$Local@VValue@v8@@@2@@Z) referenced in function NeonSys_Object_Set_Index
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class v8::MaybeLocal __cdecl v8::Object::Get(class v8::Local,class v8::Local)" (__imp_?Get@Object@v8@@QEAA?AV?$MaybeLocal@VValue@v8@@@2@V?$Local@VContext@v8@@@2@V?$Local@VValue@v8@@@2@@Z) referenced in function NeonSys_Object_Get
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class v8::MaybeLocal __cdecl v8::Object::Get(class v8::Local,unsigned int)" (__imp_?Get@Object@v8@@QEAA?AV?$MaybeLocal@VValue@v8@@@2@V?$Local@VContext@v8@@@2@I@Z) referenced in function NeonSys_Object_Get_Index
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class v8::MaybeLocal __cdecl v8::Object::GetOwnPropertyNames(class v8::Local)" (__imp_?GetOwnPropertyNames@Object@v8@@QEAA?AV?$MaybeLocal@VArray@v8@@@2@V?$Local@VContext@v8@@@2@@Z) referenced in function NeonSys_Object_GetOwnPropertyNames
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl v8::Object::SetAlignedPointerInInternalField(int,void *)" (__imp_?SetAlignedPointerInInternalField@Object@v8@@QEAAXHPEAX@Z) referenced in function "public: virtual void __cdecl neon::BaseClassMetadata::construct(class v8::FunctionCallbackInfo const &)" (?construct@BaseClassMetadata@neon@@UEAAXAEBV?$FunctionCallbackInfo@VValue@v8@@@v8@@@Z)
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class v8::Isolate * __cdecl v8::Object::GetIsolate(void)" (__imp_?GetIsolate@Object@v8@@QEAAPEAVIsolate@2@XZ) referenced in function NeonSys_Object_GetIsolate
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class v8::Local __cdecl v8::Object::New(class v8::Isolate *)" (__imp_?New@Object@v8@@SA?AV?$Local@VObject@v8@@@2@PEAVIsolate@2@@Z) referenced in function "class v8::Local __cdecl Nan::New(void)" (??$New@VObject@v8@@@Nan@@YA?AV?$Local@VObject@v8@@@v8@@XZ)
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) private: void * __cdecl v8::Object::SlowGetAlignedPointerFromInternalField(int)" (__imp_?SlowGetAlignedPointerFromInternalField@Object@v8@@AEAAPEAXH@Z) referenced in function NeonSys_Class_GetInstanceInternals
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned int __cdecl v8::Array::Length(void)const " (__imp_?Length@Array@v8@@QEBAIXZ) referenced in function NeonSys_Array_Length
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class v8::Local __cdecl v8::Array::New(class v8::Isolate *,int)" (__imp_?New@Array@v8@@SA?AV?$Local@VArray@v8@@@2@PEAVIsolate@2@H@Z) referenced in function NeonSys_Array_New
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class v8::MaybeLocal __cdecl v8::Function::New(class v8::Local,void (__cdecl
)(class v8::FunctionCallbackInfo const &),class v8::Local,int)" (__imp_?New@Function@v8@@SA?AV?$MaybeLocal@VFunction@v8@@@2@V?$Local@VContext@v8@@@2@P6AXAEBV?$FunctionCallbackInfo@VValue@v8@@@2@@ZV?$Local@VValue@v8@@@2@H@Z) referenced in function NeonSys_Fun_New
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class v8::MaybeLocal __cdecl v8::Function::NewInstance(class v8::Local,int,class v8::Local * const)const " (__imp_?NewInstance@Function@v8@@QEBA?AV?$MaybeLocal@VObject@v8@@@2@V?$Local@VContext@v8@@@2@HQEAV?$Local@VValue@v8@@@2@@Z) referenced in function NeonSys_Fun_Construct
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class v8::MaybeLocal __cdecl v8::Function::Call(class v8::Local,class v8::Local,int,class v8::Local * const)" (__imp_?Call@Function@v8@@QEAA?AV?$MaybeLocal@VValue@v8@@@2@V?$Local@VContext@v8@@@2@V?$Local@VValue@v8@@@2@HQEAV52@@Z) referenced in function NeonSys_Fun_Call
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class v8::Local __cdecl v8::External::New(class v8::Isolate ,void *)" (__imp_?New@External@v8@@SA?AV?$Local@VExternal@v8@@@2@PEAVIsolate@2@PEAX@Z) referenced in function NeonSys_Class_CreateBase
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void * __cdecl v8::External::Value(void)const " (__imp_?Value@External@v8@@QEBAPEAXXZ) referenced in function NeonSys_Class_ConstructBaseCallback
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl v8::Template::Set(class v8::Local,class v8::Local,enum v8::PropertyAttribute)" (__imp_?Set@Template@v8@@QEAAXV?$Local@VName@v8@@@2@V?$Local@VData@v8@@@2@W4PropertyAttribute@2@@Z) referenced in function NeonSys_Class_AddMethod
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class v8::Local __cdecl v8::FunctionTemplate::New(class v8::Isolate *,void (__cdecl
)(class v8::FunctionCallbackInfo const &),class v8::Local,class v8::Local,int)" (__imp_?New@FunctionTemplate@v8@@SA?AV?$Local@VFunctionTemplate@v8@@@2@PEAVIsolate@2@P6AXAEBV?$FunctionCallbackInfo@VValue@v8@@@2@@ZV?$Local@VValue@v8@@@2@V?$Local@VSignature@v8@@@2@H@Z) referenced in function NeonSys_Class_CreateBase
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class v8::Local __cdecl v8::FunctionTemplate::GetFunction(void)" (__imp_?GetFunction@FunctionTemplate@v8@@QEAA?AV?$Local@VFunction@v8@@@2@XZ) referenced in function NeonSys_Class_Constructor
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class v8::Local __cdecl v8::FunctionTemplate::InstanceTemplate(void)" (__imp_?InstanceTemplate@FunctionTemplate@v8@@QEAA?AV?$Local@VObjectTemplate@v8@@@2@XZ) referenced in function NeonSys_Class_CreateBase
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class v8::Local __cdecl v8::FunctionTemplate::PrototypeTemplate(void)" (__imp_?PrototypeTemplate@FunctionTemplate@v8@@QEAA?AV?$Local@VObjectTemplate@v8@@@2@XZ) referenced in function NeonSys_Class_AddMethod
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl v8::FunctionTemplate::SetClassName(class v8::Local)" (__imp_?SetClassName@FunctionTemplate@v8@@QEAAXV?$Local@VString@v8@@@2@@Z) referenced in function NeonSys_Class_SetName
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl v8::FunctionTemplate::HasInstance(class v8::Local)" (__imp_?HasInstance@FunctionTemplate@v8@@QEAA_NV?$Local@VValue@v8@@@2@@Z) referenced in function NeonSys_Class_Check
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl v8::ObjectTemplate::SetInternalFieldCount(int)" (__imp_?SetInternalFieldCount@ObjectTemplate@v8@@QEAAXH@Z) referenced in function NeonSys_Class_CreateBase
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class v8::Local __cdecl v8::Exception::RangeError(class v8::Local)" (__imp_?RangeError@Exception@v8@@SA?AV?$Local@VValue@v8@@@2@V?$Local@VString@v8@@@2@@Z) referenced in function "void __cdecl Nan::ThrowRangeError(char const )" (?ThrowRangeError@Nan@@YAXPEBD@Z)
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class v8::Local __cdecl v8::Exception::ReferenceError(class v8::Local)" (__imp_?ReferenceError@Exception@v8@@SA?AV?$Local@VValue@v8@@@2@V?$Local@VString@v8@@@2@@Z) referenced in function "void __cdecl Nan::ThrowReferenceError(char const *)" (?ThrowReferenceError@Nan@@YAXPEBD@Z)
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class v8::Local __cdecl v8::Exception::SyntaxError(class v8::Local)" (__imp_?SyntaxError@Exception@v8@@SA?AV?$Local@VValue@v8@@@2@V?$Local@VString@v8@@@2@@Z) referenced in function "void __cdecl Nan::ThrowSyntaxError(char const *)" (?ThrowSyntaxError@Nan@@YAXPEBD@Z)
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class v8::Local __cdecl v8::Exception::TypeError(class v8::Local)" (__imp_?TypeError@Exception@v8@@SA?AV?$Local@VValue@v8@@@2@V?$Local@VString@v8@@@2@@Z) referenced in function "void __cdecl Nan::ThrowTypeError(char const *)" (?ThrowTypeError@Nan@@YAXPEBD@Z)
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class v8::Local __cdecl v8::Exception::Error(class v8::Local)" (__imp_?Error@Exception@v8@@SA?AV?$Local@VValue@v8@@@2@V?$Local@VString@v8@@@2@@Z) referenced in function "void __cdecl Nan::ThrowError(char const *)" (?ThrowError@Nan@@YAXPEBD@Z)
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class v8::Isolate * __cdecl v8::Isolate::GetCurrent(void)" (__imp_?GetCurrent@Isolate@v8@@SAPEAV12@XZ) referenced in function "class v8::Local __cdecl Nan::New(void)" (??$New@VObject@v8@@@Nan@@YA?AV?$Local@VObject@v8@@@v8@@XZ)
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class v8::Local __cdecl v8::Isolate::GetCurrentContext(void)" (__imp_?GetCurrentContext@Isolate@v8@@QEAA?AV?$Local@VContext@v8@@@2@XZ) referenced in function NeonSys_Convert_ToObject
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class v8::Local __cdecl v8::Isolate::ThrowException(class v8::Local)" (__imp_?ThrowException@Isolate@v8@@QEAA?AV?$Local@VValue@v8@@@2@V32@@Z) referenced in function "void __cdecl Nan::ThrowError(char const *)" (?ThrowError@Nan@@YAXPEBD@Z)
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) private: static class v8::internal::Object * * __cdecl v8::V8::GlobalizeReference(class v8::internal::Isolate *,class v8::internal::Object * *)" (__imp_?GlobalizeReference@V8@v8@@CAPEAPEAVObject@internal@2@PEAVIsolate@42@PEAPEAV342@@Z) referenced in function "public: __cdecl neon::BaseClassInstanceMetadata::BaseClassInstanceMetadata(class v8::Isolate *,class v8::Local,void *,void (__cdecl
)(void ))" (??0BaseClassInstanceMetadata@neon@@QEAA@PEAVIsolate@v8@@V?$Local@VObject@v8@@@3@PEAXP6AX2@Z@Z)
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) private: static void __cdecl v8::V8::DisposeGlobal(class v8::internal::Object * *)" (__imp_?DisposeGlobal@V8@v8@@CAXPEAPEAVObject@internal@2@@Z) referenced in function "public: __cdecl neon::BaseClassInstanceMetadata::BaseClassInstanceMetadata(class v8::Isolate *,class v8::Local,void *,void (__cdecl
)(void ))" (??0BaseClassInstanceMetadata@neon@@QEAA@PEAVIsolate@v8@@V?$Local@VObject@v8@@@3@PEAXP6AX2@Z@Z)
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) private: static void __cdecl v8::V8::MakeWeak(class v8::internal::Object * *,void *,void (__cdecl
)(class v8::WeakCallbackInfo const &),enum v8::WeakCallbackType)" (__imp_?MakeWeak@V8@v8@@CAXPEAPEAVObject@internal@2@PEAXP6AXAEBV?$WeakCallbackInfo@X@2@@ZW4WeakCallbackType@2@@Z) referenced in function "public: __cdecl neon::BaseClassInstanceMetadata::BaseClassInstanceMetadata(class v8::Isolate ,class v8::Local,void *,void (__cdecl)(void ))" (??0BaseClassInstanceMetadata@neon@@QEAA@PEAVIsolate@v8@@V?$Local@VObject@v8@@@3@PEAXP6AX2@Z@Z)
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) private: static void __cdecl v8::V8::FromJustIsNothing(void)" (__imp_?FromJustIsNothing@V8@v8@@CAXXZ)
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) private: static void __cdecl v8::V8::ToLocalEmpty(void)" (__imp_?ToLocalEmpty@V8@v8@@CAXXZ) referenced in function "void __cdecl Nan::ThrowError(char const *)" (?ThrowError@Nan@@YAXPEBD@Z)
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) __int64 __cdecl node::DecodeWrite(class v8::Isolate *,char *,unsigned __int64,class v8::Local,enum node::encoding)" (__imp_?DecodeWrite@node@@YA_JPEAVIsolate@v8@@PEAD_KV?$Local@VValue@v8@@@3@W4encoding@1@@Z) referenced in function NeonSys_String_Data
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl node::AtExit(void (__cdecl
)(void *),void *)" (__imp_?AtExit@node@@YAXP6AXPEAX@Z0@Z) referenced in function NeonSys_Class_SetClassMap
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl node::Buffer::HasInstance(class v8::Local)" (__imp_?HasInstance@Buffer@node@@YA_NV?$Local@VValue@v8@@@v8@@@Z) referenced in function NeonSys_Tag_IsBuffer
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) char * __cdecl node::Buffer::Data(class v8::Local)" (__imp_?Data@Buffer@node@@YAPEADV?$Local@VObject@v8@@@v8@@@Z) referenced in function NeonSys_Buffer_Data
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) unsigned __int64 __cdecl node::Buffer::Length(class v8::Local)" (__imp_?Length@Buffer@node@@YA_KV?$Local@VObject@v8@@@v8@@@Z) referenced in function NeonSys_Buffer_Data
libneon_sys-272c99df4d1587db.rlib(neon.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) class v8::MaybeLocal __cdecl node::Buffer::New(class v8::Isolate *,unsigned __int64)" (__imp_?New@Buffer@node@@YA?AV?$MaybeLocal@VObject@v8@@@v8@@PEAVIsolate@4@_K@Z) referenced in function NeonSys_Buffer_New
c:\Users\Joey\WebstormProjects\quip-npm\native\target\release\deps\quip_npm.dll : fatal error LNK1120: 69 unresolved externals

error: aborting due to previous error

error: Could not compile quip-npm.

To learn more, run the command again with --verbose.
neon ERR! cargo build failed

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run-script" "install"
npm ERR! node v4.5.0
npm ERR! npm v2.15.9
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: neon build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'neon build'.
npm ERR! This is most likely a problem with the quip-npm package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! neon build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs quip-npm
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls quip-npm
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! c:\Users\Joey\WebstormProjectsquip-npm\npm-debug.log
````

All 10 comments

Looking at the logs, it seems like LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library is indicative of what goes wrong.
From what I gather from this MSDN page, it seems like LIBCMT refers to a multithreaded version of the C's stdlib (whatever that means).

@JoeyAcc If you have a second, would you mind trying to create a fresh project and building that, to see if you get the same error? The Windows changes did make some changes to generated projects, so that _could_ be the culprit.

I just tried that, and that fails too. Here's the log:

````
joey@DESKTOP-P4V3PIP MINGW64 ~/WebstormProjects
$ neon new newfancyneonproject
This utility will walk you through creating the newfancyneonproject Neon project.
It only covers the most common items, and tries to guess sensible defaults.

Press ^C at any time to quit.
? version (0.1.0)
? version 0.1.0
? description
? description
? node entry point (lib\index.js)
? node entry point lib\index.js
? git repository
? git repository
? author (Joey Ezechiels)
? author Joey Ezechiels
? email ([email protected])
? email [email protected]
? license (MIT)
? license MIT

Woo-hoo! Your Neon project has been created in: newfancyneonproject

The main Node entry point is at: newfancyneonproject\lib\index.js
The main Rust entry point is at: newfancyneonproject\native\src\lib.rs

To build your project, just run npm install from within the newfancyneonproject directory.
Then you can test it out with node -e 'require("./")'.

Happy hacking!

joey@DESKTOP-P4V3PIP MINGW64 ~/WebstormProjects
$ cd newfancyneonproject/

joey@DESKTOP-P4V3PIP MINGW64 ~/WebstormProjects/newfancyneonproject (master)
$ neon build
neon info running cargo
neon info cargo build --release --target=x86_64-pc-windows-msvc
warning: build.rs files in the same directory as your Cargo.toml will soon be treated as build scripts. Add build = false to your Cargo.toml to prevent this
Updating registry https://github.com/rust-lang/crates.io-index
Compiling cslice v0.1.1
Compiling gcc v0.3.42
Compiling neon-sys v0.1.11
error: failed to run custom build command for neon-sys v0.1.11
process didn't exit successfully: C:\Users\Joey\WebstormProjects\newfancyneonproject\native\target\release\build\neon-sys-ae9ff40801d54bac\build-script-build (exit code: 101)
--- stderr
thread 'main' panicked at 'failed to run "npm install" for neon-sys', C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\libcore\option.rs:715
stack backtrace:
0: 0x7ff78e64aab8 - std::panicking::default_hook::{{closure}}
at C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\libstd\panicking.rs:356
1: 0x7ff78e649fc4 - std::panicking::default_hook
at C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\libstd\panicking.rs:367
2: 0x7ff78e64d90d - std::panicking::rust_panic_with_hook
at C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\libstd\panicking.rs:555
3: 0x7ff78e64d7a8 - std::panicking::begin_panic
at C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\libstd\panicking.rs:517
4: 0x7ff78e64d6c4 - std::panicking::begin_panic_fmt
at C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\libstd\panicking.rs:501
5: 0x7ff78e64d659 - std::panicking::rust_begin_panic
at C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\libstd\panicking.rs:477
6: 0x7ff78e6506d7 - core::panicking::panic_fmt
at C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\libcore\panicking.rs:69
7: 0x7ff78e65076f - core::option::expect_failed
at C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\libcore\option.rs:715
8: 0x7ff78e611b16 - _FILE_LINE
9: 0x7ff78e64fe51 - panic_unwind::__rust_maybe_catch_panic
at C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\libpanic_unwind\lib.rs:98
10: 0x7ff78e64defa - std::rt::lang_start
at C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\libstd\rt.rs:51
11: 0x7ff78e654528 - __scrt_common_main_seh
at f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:253
12: 0x7ffb26c58363 - BaseThreadInitThunk

neon ERR! cargo build failed

joey@DESKTOP-P4V3PIP MINGW64 ~/WebstormProjects/newfancyneonproject (master)
$

````

I then tried npm run-script install, which barf logs too:
````
joey@DESKTOP-P4V3PIP MINGW64 ~/WebstormProjects/newfancyneonproject (master)
$ npm run-script install
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run-script" "install"
npm ERR! node v4.5.0
npm ERR! npm v2.15.9
npm ERR! file C:\Users\Joey\WebstormProjects\newfancyneonproject\package.json
npm ERR! code EJSONPARSE

npm ERR! Failed to parse json
npm ERR! Unexpected token 'i' at 5:16
npm ERR! "main": "lib\index.js",
npm ERR! ^
npm ERR! File: C:\Users\Joey\WebstormProjects\newfancyneonproject\package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Joey\WebstormProjects\newfancyneonprojectnpm-debug.log

````

If I change lib\index.js to lib/index.js, I get:
````
joey@DESKTOP-P4V3PIP MINGW64 ~/WebstormProjects/newfancyneonproject (master)
$ npm run-script install

[email protected] install C:\Users\Joey\WebstormProjects\newfancyneonproject
neon build

neon info running cargo
neon info cargo build --release --target=x86_64-pc-windows-msvc
warning: build.rs files in the same directory as your Cargo.toml will soon be treated as build scripts. Add build = false to your Cargo.toml to prevent this
Compiling neon-sys v0.1.11
error: failed to run custom build command for neon-sys v0.1.11
process didn't exit successfully: C:\Users\Joey\WebstormProjects\newfancyneonproject\native\target\release\build\neon-sys-ae9ff40801d54bac\build-script-build (exit code: 101)
--- stderr
thread 'main' panicked at 'failed to run "npm install" for neon-sys', C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\libcore\option.rs:715
stack backtrace:
0: 0x7ff63236aab8 - std::panicking::default_hook::{{closure}}
at C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\libstd\panicking.rs:356
1: 0x7ff632369fc4 - std::panicking::default_hook
at C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\libstd\panicking.rs:367
2: 0x7ff63236d90d - std::panicking::rust_panic_with_hook
at C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\libstd\panicking.rs:555
3: 0x7ff63236d7a8 - std::panicking::begin_panic
at C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\libstd\panicking.rs:517
4: 0x7ff63236d6c4 - std::panicking::begin_panic_fmt
at C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\libstd\panicking.rs:501
5: 0x7ff63236d659 - std::panicking::rust_begin_panic
at C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\libstd\panicking.rs:477
6: 0x7ff6323706d7 - core::panicking::panic_fmt
at C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\libcore\panicking.rs:69
7: 0x7ff63237076f - core::option::expect_failed
at C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\libcore\option.rs:715
8: 0x7ff632331b16 - _FILE_LINE
9: 0x7ff63236fe51 - panic_unwind::__rust_maybe_catch_panic
at C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\libpanic_unwind\lib.rs:98
10: 0x7ff63236defa - std::rt::lang_start
at C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\libstd\rt.rs:51
11: 0x7ff632374528 - __scrt_common_main_seh
at f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:253
12: 0x7ffb26c58363 - BaseThreadInitThunk

neon ERR! cargo build failed

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run-script" "install"
npm ERR! node v4.5.0
npm ERR! npm v2.15.9
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: neon build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'neon build'.
npm ERR! This is most likely a problem with the newfancyneonproject package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! neon build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs newfancyneonproject
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls newfancyneonproject
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Joey\WebstormProjects\newfancyneonprojectnpm-debug.log

````

I did discover something else:
In <project>/native/Cargo.toml, there's these lines:
[dev-dependencies] neon-build = "0.1.11"

Now, I've changed these lines:
````
[dependencies]

neon = "0.1.11"

neon = { git = "https://github.com/neon-bindings/neon.git" }
````

However, I'm not sure how to change the build dependency to do the same as Cargo doesn't support paths inside of repos. It's perhaps the source of this issue as version mismatches usually don't end well.
But how to change it to something workable between now and the next neon release?

I see one potential solution but that would require changes to the structure of neon, specifically extracting neon-build and any other potential build dependencies to their own repos. But I'm far from sure it would even be worth it, I suppose a new interim release of neon makes more sense.

Ah, I see, yeah that is probably at least part of the problem. I'll do a 0.1.12 release very soon.

I'm actually making more progress debugging this on my Windows VM now. I'm not sure why it's working in CI but not here, but at least I'm able to reproduce! Thanks for helping track these issues down, I'm on the trail...

From looking at https://github.com/npm/npm/tree/latest/bin/node-gyp-bin and for example npm/npm#14568, it looks like node-gyp.cmd only came into existence in relatively recent versions of node. But all versions appear to just delegate to $(which npm)/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js, passing all the command-line arguments through unmodified. So it seems like calling that script is a reliable entry point that should work going back to node 4.

zomg I just got everything working on my local machine. Almost ready…

With neon-bindings/neon-cli#47 we should be good to go!

_FINALLY_

@JoeyAcc I published 0.1.12 today. If you have a chance, can you give it another try? All you'll need to do is install neon-cli 0.1.12 and try making a project from scratch.

If that works, you should be able to get your existing project working, too, but you'll want to look at the differences between your existing project config files and the config files of a new one.

Awesome! I needed to regenerate my project, but indeed it works now as I can successfully compile, and then load the index.js file into the node REPL.
Thanks a bunch! :)

Was this page helpful?
0 / 5 - 0 ratings