Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building for 'node' target v0.11.15 fails #398

Closed
leonidasKap opened this issue Jan 26, 2015 · 11 comments
Closed

Building for 'node' target v0.11.15 fails #398

leonidasKap opened this issue Jan 26, 2015 · 11 comments

Comments

@leonidasKap
Copy link

I have a dependency on node-sqlite3 v3.0.4 in my package.json.
Node version : v0.11.15
Npm version : v2.1.6
I am on windows.

When I do npm install I get compile errors. The errors are similar to
#328 (comment)
#382

$APPDIR>npm install
npm WARN package.json dataprov-sqlite@0.0.1 No repository field.
npm WARN package.json dataprov-sqlite@0.0.1 No README data
/

sqlite3@3.0.4 install $APPDIR\node_modules\sqlite3
node-pre-gyp install --fallback-to-build

$APPDIR\node_modules\sqlite3>node "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin..
..\node_modules\node-gyp\bin\node-gyp.js" rebuild --name=sqlite3 --configuration=Release --module_name=node_sqlite3 --version=3.0.
4 --major=3 --patch=4 --runtime=node --node_abi=node-v0.11.15 --platform=win32 --target_platform=win32 --arch=ia32 --target_arch=i
a32 --module_main=./lib/sqlite3 --host=https://mapbox-node-binary.s3.amazonaws.com/ --module_path=C:\ACTeamGITlab\ux\dataprov-sqli
te\node_modules\sqlite3\lib\binding\node-v0.11.15-win32-ia32 --module=$APPDIR\node_modules\sqlite3\lib
binding\node-v0.11.15-win32-ia32\node_sqlite3.node --remote_path=./sqlite3/v3.0.4/ --package_name=node-v0.11.15-win32-ia32.tar.gz
--staged_tarball=build\stage\sqlite3\v3.0.4\node-v0.11.15-win32-ia32.tar.gz --hosted_path=https://mapbox-node-binary.s3.amazonaws.
com/sqlite3/v3.0.4/ --hosted_tarball=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0.4/node-v0.11.15-win32-ia32.tar.gz
child_process: customFds option is deprecated, use stdio instead.
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
unpack_sqlite_dep
sqlite3.c
sqlite3.vcxproj -> $APPDIR\node_modules\sqlite3\build\Release\sqlite3.lib
database.cc
node_sqlite3.cc
statement.cc
..\src\statement.cc(105): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\dataprov-
sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(23): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(24): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(25): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(26): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(28): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\statement.cc(278): warning C4244: 'argument' : conversion from 'int64_t' to 'int', possible loss of data [C:\ACTeamGITlab
ux\dataprov-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(30): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(32): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(33): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(34): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(35): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(36): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(37): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(38): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(39): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(40): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(41): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(42): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(43): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(44): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(45): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(46): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(47): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(48): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(49): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(50): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(51): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(52): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(53): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(54): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(55): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(56): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(57): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(58): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\datapro
v-sqlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\database.cc(134): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\dataprov-s
qlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\database.cc(135): error C2661: 'v8::Object::Set' : no overloaded function takes 3 arguments [C:\ACTeamGITlab\ux\dataprov-s
qlite\node_modules\sqlite3\build\node_sqlite3.vcxproj]
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 (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:2
3)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "
--name=sqlite3" "--configuration=Release" "--module_name=node_sqlite3" "--version=3.0.4" "--major=3" "--patch=4" "--runtime=node"
"--node_abi=node-v0.11.15" "--platform=win32" "--target_platform=win32" "--arch=ia32" "--target_arch=ia32" "--module_main=./lib/sq
lite3" "--host=https://mapbox-node-binary.s3.amazonaws.com/" "--module_path=C:\ACTeamGITlab\ux\dataprov-sqlite\node_modules\s
qlite3\lib\binding\node-v0.11.15-win32-ia32" "--module=C:\ACTeamGITlab\ux\dataprov-sqlite\node_modules\sqlite3\lib\bindi
ng\node-v0.11.15-win32-ia32\node_sqlite3.node" "--remote_path=./sqlite3/v3.0.4/" "--package_name=node-v0.11.15-win32-ia32.tar.gz
" "--staged_tarball=build\stage\sqlite3\v3.0.4\node-v0.11.15-win32-ia32.tar.gz" "--hosted_path=https://mapbox-node-binary.s3.a
mazonaws.com/sqlite3/v3.0.4/" "--hosted_tarball=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0.4/node-v0.11.15-win32-ia3
2.tar.gz"
gyp ERR! cwd $APPDIR\node_modules\sqlite3
gyp ERR! node -v v0.11.15
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd rebuild --name=sqlite3 --configuration=Release --module_name=node_s
qlite3 --version=3.0.4 --major=3 --patch=4 --runtime=node --node_abi=node-v0.11.15 --platform=win32 --target_platform=win32 --arch
=ia32 --target_arch=ia32 --module_main=./lib/sqlite3 --host=https://mapbox-node-binary.s3.amazonaws.com/ --module_path=C:\ACTeamGI
Tlab\ux\dataprov-sqlite\node_modules\sqlite3\lib\binding\node-v0.11.15-win32-ia32 --module=$APPDIR\node
_modules\sqlite3\lib\binding\node-v0.11.15-win32-ia32\node_sqlite3.node --remote_path=./sqlite3/v3.0.4/ --package_name=node-v0.11.
15-win32-ia32.tar.gz --staged_tarball=build\stage\sqlite3\v3.0.4\node-v0.11.15-win32-ia32.tar.gz --hosted_path=https://mapbox-node
-binary.s3.amazonaws.com/sqlite3/v3.0.4/ --hosted_tarball=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0.4/node-v0.11.15
-win32-ia32.tar.gz' (1)
node-pre-gyp ERR! stack at ChildProcess. ($APPDIR\node_modules\sqlite3\node_modules\node
-pre-gyp\lib\util\compile.js:76:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:110:17)
node-pre-gyp ERR! stack at maybeClose (child_process.js:1008:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1080:5)
node-pre-gyp ERR! System Windows_NT 6.1.7601
node-pre-gyp ERR! command "node" "C:\ACTeamGITlab\ux\dataprov-sqlite\node_modules\sqlite3\node_modules\node-pre-gyp\bin\n
ode-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd $APPDIR\node_modules\sqlite3
node-pre-gyp ERR! node -v v0.11.15
node-pre-gyp ERR! node-pre-gyp -v v0.6.1
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp.cmd rebuild --name=sqlite3 --configuration=Release --module_name=node_sqlite3 --version=3.0.4 --major=
3 --patch=4 --runtime=node --node_abi=node-v0.11.15 --platform=win32 --target_platform=win32 --arch=ia32 --target_arch=ia32 --modu
le_main=./lib/sqlite3 --host=https://mapbox-node-binary.s3.amazonaws.com/ --module_path=$APPDIR\node_mo
dules\sqlite3\lib\binding\node-v0.11.15-win32-ia32 --module=$APPDIR\node_modules\sqlite3\lib\binding\no
de-v0.11.15-win32-ia32\node_sqlite3.node --remote_path=./sqlite3/v3.0.4/ --package_name=node-v0.11.15-win32-ia32.tar.gz --staged_t
arball=build\stage\sqlite3\v3.0.4\node-v0.11.15-win32-ia32.tar.gz --hosted_path=https://mapbox-node-binary.s3.amazonaws.com/sqlite
3/v3.0.4/ --hosted_tarball=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0.4/node-v0.11.15-win32-ia32.tar.gz' (1)
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js"
"install"
npm ERR! node v0.11.15
npm ERR! npm v2.1.6
npm ERR! code ELIFECYCLE

npm ERR! sqlite3@3.0.4 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3@3.0.4 install script.
npm ERR! This is most likely a problem with the sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! npm owner ls sqlite3
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! $APPDIR\npm-debug.log

@Mithgol
Copy link
Contributor

Mithgol commented Jan 26, 2015

Seems very similar to the problem that was fixed by Set vs. ForceSet changes from #369.

Unfortunately, those changes have not been published in any new version of npm sqlite3 package yet.

@rfink
Copy link

rfink commented Jan 27, 2015

+1

@martinib77
Copy link

My solution to the same problem was to compile directly from git version:
npm install https://github.com/mapbox/node-sqlite3/tarball/master --build-from-source --runtime=node-webkit --target_arch=ia32 --target=0.11.6

@akluthe
Copy link

akluthe commented Feb 3, 2015

@martinib77

This fixed the problem I was having with this error as well.

Is the issue here that NPM is just behind the repo in patches?

@Mithgol
Copy link
Contributor

Mithgol commented Feb 6, 2015

Yes, definitely.

@rfink
Copy link

rfink commented Feb 7, 2015

Looks like it's broken on 0.12.0 as well

@Mithgol
Copy link
Contributor

Mithgol commented Feb 7, 2015

That's because Node.js 0.12 is a direct descendant of 0.11.

@rfink
Copy link

rfink commented Feb 7, 2015

Right, I just wanted to make it known.

@halfdan
Copy link

halfdan commented Feb 9, 2015

Also seems to fail on io.js (with pretty much the same error). Is there any update on when this can be fixed?

@skull-squadron
Copy link

npm install https://github.com/mapbox/node-sqlite3/tarball/master --build-from-source builds fine (no attestation of functionality). Perhaps cut a new release soon?

@springmeyer
Copy link
Contributor

This is fixed in the v3.0.5 tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants