Azure/node-sqlserver

Will not build

EricDunaway opened this issue · 10 comments

When I try to build I get the following errors:

gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe fail
ed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\GrimR3\AppData\Roaming\npm\n
ode_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:
12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\Users\GrimR3\AppData\Roaming\npm\node_modules
\node-gyp\bin\node-gyp.js" "build"
gyp ERR! cwd E:\tasklist\node_modules\msnodesql
gyp ERR! node -v v0.10.18
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok

http://pastebin.com/zyqqwERg

Can you provide what version of node.js (including architecture) and which build environment/compiler (VS 2010 vs. VS 2012) you're using and the command you're using to build? Can you included the full output? I believe the above is just the last few lines?

[Edit: Never mind about the version of node and node-gyp. Those are included in the error message. :) Can you try node.js 0.8.x? Thanks.]

Thanks.

I have the same issue, here is the full output:

image


PS C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Programm> npm install node-sqlserver
npm WARN package.json Piuss-OWebInterface@0.1.0 No repository field.
npm WARN package.json Piuss-OWebInterface@0.1.0 No README data
npm http GET https://registry.npmjs.org/node-sqlserver
npm http 304 https://registry.npmjs.org/node-sqlserver
npm WARN deprecated node-sqlserver@0.1.0: This package has been superseded by msnodesql.
npm WARN engine node-sqlserver@0.1.0: wanted: {"node":"0.6"} (current: {"node":"v0.10.15","npm":"1.3.5"})

> node-sqlserver@0.1.0 install C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Programm\node_modules\node-sqlserver
> node-gyp rebuild


C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Programm\node_modules\node-sqlserver>node "C:\Program Files\nodejs\node_mo
dules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu ermöglichen, müssen Si
e den Schalter "/m" hinzufügen.
  stdafx.cpp
  Connection.cpp
  Utility.cpp
  OdbcException.cpp
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: C++ exception handler used,
 but unwind semantics are not enabled. Specify /EHsc [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Programm\node_modul
es\node-sqlserver\build\sqlserver.vcxproj]
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: C++ exception handler used,
 but unwind semantics are not enabled. Specify /EHsc [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Programm\node_modul
es\node-sqlserver\build\sqlserver.vcxproj]
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: C++ exception handler used,
 but unwind semantics are not enabled. Specify /EHsc [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Programm\node_modul
es\node-sqlserver\build\sqlserver.vcxproj]
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: C++ exception handler used,
 but unwind semantics are not enabled. Specify /EHsc [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Programm\node_modul
es\node-sqlserver\build\sqlserver.vcxproj]
c:\users\patrick.muff\dropbox\arbeit\test ipa\programm\node_modules\node-sqlserver\src\Operation.h(36): error C2664: 'u
v_queue_work' : cannot convert parameter 4 from 'void (__cdecl *)(uv_work_t *)' to 'uv_after_work_cb' [C:\Users\patrick
.muff\Dropbox\Arbeit\Test IPA\Programm\node_modules\node-sqlserver\build\sqlserver.vcxproj]
          None of the functions with this name in scope match the target type
c:\users\patrick.muff\dropbox\arbeit\test ipa\programm\node_modules\node-sqlserver\src\Column.h(40): warning C4267: 'ar
gument' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Progr
amm\node_modules\node-sqlserver\build\sqlserver.vcxproj]
c:\users\patrick.muff\dropbox\arbeit\test ipa\programm\node_modules\node-sqlserver\src\Column.h(64): warning C4267: 'in
itializing' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\P
rogramm\node_modules\node-sqlserver\build\sqlserver.vcxproj]
..\src\Utility.cpp(55): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\
patrick.muff\Dropbox\Arbeit\Test IPA\Programm\node_modules\node-sqlserver\build\sqlserver.vcxproj]
c:\users\patrick.muff\dropbox\arbeit\test ipa\programm\node_modules\node-sqlserver\src\ResultSet.h(51): warning C4267:
'return' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Prog
ramm\node_modules\node-sqlserver\build\sqlserver.vcxproj]
  ResultSet.cpp
C:\Users\patrick.muff\.node-gyp\0.10.15\deps\v8\include\v8.h(179): warning C4506: no definition for inline function 'v8
::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Programm\node_mod
ules\node-sqlserver\build\sqlserver.vcxproj]
          with
          [
              T=v8::Object
          ]
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xstring(817): warning C4506: no definition for inline fu
nction 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Program
m\node_modules\node-sqlserver\build\sqlserver.vcxproj]
          with
          [
              T=v8::Object
          ]
C:\Users\patrick.muff\.node-gyp\0.10.15\deps\v8\include\v8.h(179): warning C4506: no definition for inline function 'v8
::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Programm\node_mod
ules\node-sqlserver\build\sqlserver.vcxproj]
          with
          [
              T=v8::Object
          ]
  OdbcOperation.cpp
  OdbcConnection.cpp
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: C++ exception handler used,
 but unwind semantics are not enabled. Specify /EHsc [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Programm\node_modul
es\node-sqlserver\build\sqlserver.vcxproj]
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: C++ exception handler used,
 but unwind semantics are not enabled. Specify /EHsc [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Programm\node_modul
es\node-sqlserver\build\sqlserver.vcxproj]
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: C++ exception handler used,
 but unwind semantics are not enabled. Specify /EHsc [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Programm\node_modul
es\node-sqlserver\build\sqlserver.vcxproj]
c:\users\patrick.muff\dropbox\arbeit\test ipa\programm\node_modules\node-sqlserver\src\Column.h(40): warning C4267: 'ar
gument' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Progr
amm\node_modules\node-sqlserver\build\sqlserver.vcxproj]
c:\users\patrick.muff\dropbox\arbeit\test ipa\programm\node_modules\node-sqlserver\src\Column.h(64): warning C4267: 'in
itializing' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\P
rogramm\node_modules\node-sqlserver\build\sqlserver.vcxproj]
c:\users\patrick.muff\dropbox\arbeit\test ipa\programm\node_modules\node-sqlserver\src\ResultSet.h(51): warning C4267:
'return' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Prog
ramm\node_modules\node-sqlserver\build\sqlserver.vcxproj]
..\src\ResultSet.cpp(72): warning C4244: 'argument' : conversion from 'const SQLULEN' to 'int32_t', possible loss of da
ta [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Programm\node_modules\node-sqlserver\build\sqlserver.vcxproj]
..\src\ResultSet.cpp(72): warning C4244: 'argument' : conversion from 'const SQLULEN' to 'int32_t', possible loss of da
ta [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Programm\node_modules\node-sqlserver\build\sqlserver.vcxproj]
c:\users\patrick.muff\dropbox\arbeit\test ipa\programm\node_modules\node-sqlserver\src\Column.h(40): warning C4267: 'ar
gument' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Progr
amm\node_modules\node-sqlserver\build\sqlserver.vcxproj]
c:\users\patrick.muff\dropbox\arbeit\test ipa\programm\node_modules\node-sqlserver\src\Column.h(64): warning C4267: 'in
itializing' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\P
rogramm\node_modules\node-sqlserver\build\sqlserver.vcxproj]
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xmemory(201): warning C4506: no definition for inline fu
nction 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Program
m\node_modules\node-sqlserver\build\sqlserver.vcxproj]
          with
          [
              T=v8::Object
          ]
c:\users\patrick.muff\dropbox\arbeit\test ipa\programm\node_modules\node-sqlserver\src\Operation.h(36): error C2664: 'u
v_queue_work' : cannot convert parameter 4 from 'void (__cdecl *)(uv_work_t *)' to 'uv_after_work_cb' [C:\Users\patrick
.muff\Dropbox\Arbeit\Test IPA\Programm\node_modules\node-sqlserver\build\sqlserver.vcxproj]
          None of the functions with this name in scope match the target type
c:\users\patrick.muff\dropbox\arbeit\test ipa\programm\node_modules\node-sqlserver\src\ResultSet.h(51): warning C4267:
'return' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Prog
ramm\node_modules\node-sqlserver\build\sqlserver.vcxproj]
c:\users\patrick.muff\dropbox\arbeit\test ipa\programm\node_modules\node-sqlserver\src\Column.h(40): warning C4267: 'ar
gument' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Progr
amm\node_modules\node-sqlserver\build\sqlserver.vcxproj]
c:\users\patrick.muff\dropbox\arbeit\test ipa\programm\node_modules\node-sqlserver\src\Column.h(64): warning C4267: 'in
itializing' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\P
rogramm\node_modules\node-sqlserver\build\sqlserver.vcxproj]
c:\users\patrick.muff\dropbox\arbeit\test ipa\programm\node_modules\node-sqlserver\src\ResultSet.h(51): warning C4267:
'return' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Prog
ramm\node_modules\node-sqlserver\build\sqlserver.vcxproj]
..\src\OdbcConnection.cpp(82): warning C4267: 'argument' : conversion from 'size_t' to 'SQLSMALLINT', possible loss of
data [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Programm\node_modules\node-sqlserver\build\sqlserver.vcxproj]
..\src\OdbcConnection.cpp(118): warning C4267: 'argument' : conversion from 'size_t' to 'SQLINTEGER', possible loss of
data [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Programm\node_modules\node-sqlserver\build\sqlserver.vcxproj]
..\src\OdbcConnection.cpp(384): warning C4244: 'initializing' : conversion from 'SQLLEN' to 'int', possible loss of dat
a [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Programm\node_modules\node-sqlserver\build\sqlserver.vcxproj]
..\src\OdbcConnection.cpp(386): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data [C:\Users
\patrick.muff\Dropbox\Arbeit\Test IPA\Programm\node_modules\node-sqlserver\build\sqlserver.vcxproj]
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xmemory(201): warning C4506: no definition for inline fu
nction 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Program
m\node_modules\node-sqlserver\build\sqlserver.vcxproj]
          with
          [
              T=v8::Object
          ]
gyp ERR! build error
gyp ERR! stack Error: `c:\Windows\Microsoft.NET\Framework\v4.0.30319\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.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:789: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:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Programm\node_modules\node-sqlserver
gyp ERR! node -v v0.10.15
gyp ERR! node-gyp -v v0.10.6
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0
PS C:\Users\patrick.muff\Dropbox\Arbeit\Test IPA\Programm>

Try

npm install msnodesql

and see if that helps. Despite the repo name, we renamed the driver to msnodesql to better clarify that it was from Microsoft.

Same problem here.
node v0.10.15
VS 2010 Express and 2012 installed on Windows 8
64 bit

Same here,
Win 8 x64
Visual Studio 2012 Ultimate
NodeJS version : v0.10.21

Same here,
Win7 32bit
Visual Studio 2010 Express
NodeJS version : v0.10.8

have you definately installed the "SQL Server Native Client 11.0" (not bundled with VS) as instructed by the prerequisites?

http://www.microsoft.com/en-us/download/details.aspx?id=29065

is this dead? did anyone get around these issues?

I am also using win8 x64 with node v0.10.26

Just an FYI - I have been using the unofficial version (https://github.com/jorgeazevedo/node-sqlserver-unofficial) and I have had no problems with it.

It's just a pre-built version of the same repo.