question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

2.4.0 not compiling

See original GitHub issue

Hi,

Version 2.4.0 does not compile on windows.

Here’s the full stack trace. I was working on 2.3.6.

My windows is in french, sorry about that.

I think it has something to do with the fixe : BIGINT fields are now bound by default correctly

Thanks!

odbc@2.4.0 install C:\RMGitLab\Micro-Services\AuthenticationService\node_modules\odbc node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! install response status 404 Not Found on https://github.com/markdirish/node-odbc/releases/download/v2.4.0/odbc-v2.4.0-win32-x64-napi-v6.tar.gz node-pre-gyp WARN Pre-built binaries not installable for odbc@2.4.0 and node@14.17.3 (node-v83 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/markdirish/node-odbc/releases/download/v2.4.0/odbc-v2.4.0-win32-x64-napi-v6.tar.gz Les projets sont générés individuellement dans cette solution. Pour activer la génération en parallèle, ajoutez le commutateur “/m”. odbc.cpp odbc_connection.cpp odbc_statement.cpp odbc_cursor.cpp dynodbc.cpp win_delay_load_hook.cc c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc.cpp(630): error C2039: ‘IsBigInt’ : n’est pas membre de ‘Napi::Value’ [C:\RMGitLab\Micro-Services\AuthenticationService\node_modules \odbc\build\odbc.vcxproj] c:\node_modules\node-addon-api\napi.h(190): note: voir la déclaration de ‘Napi::Value’ c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc.cpp(634): error C2039: ‘BigInt’ : n’est pas membre de ‘Napi’ [C:\RMGitLab\Micro-Services\AuthenticationService\node_modules\odbc\bui ld\odbc.vcxproj] c:\node_modules\node-addon-api\napi-inl.h(15): note: voir la déclaration de ‘Napi’ c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc.cpp(634): error C2065: ‘BigInt’ : identificateur non déclaré [C:\RMGitLab\Micro-Services\AuthenticationService\node_modules\odbc\bui ld\odbc.vcxproj] c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc.cpp(634): error C2672: ‘Napi::Value::As’ : fonction correspondante surchargée introuvable [C:\RMGitLab\Micro-Services\Authentication Service\node_modules\odbc\build\odbc.vcxproj] c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc.cpp(634): error C2974: ‘Napi::Value::As’ : argument modèle non valide pour ‘T’, type attendu [C:\RMGitLab\Micro-Services\Authenticat ionService\node_modules\odbc\build\odbc.vcxproj] c:\node_modules\node-addon-api\napi.h(265): note: voir la déclaration de ‘Napi::Value::As’ c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc_connection.cpp(1141): error C2039: ‘BigInt’ : n’est pas membre de ‘Napi’ [C:\RMGitLab\Micro-Services\AuthenticationService\node_modu les\odbc\build\odbc.vcxproj] c:\node_modules\node-addon-api\napi-inl.h(15): note: voir la déclaration de ‘Napi’ c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc_connection.cpp(1141): error C3083: ‘BigInt’ : le symbole situé à gauche de ‘::’ doit être un type [C:\RMGitLab\Micro-Services\Authen ticationService\node_modules\odbc\build\odbc.vcxproj] c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc_connection.cpp(1141): error C2039: ‘New’ : n’est pas membre de ‘Napi’ [C:\RMGitLab\Micro-Services\AuthenticationService\node_modules \odbc\build\odbc.vcxproj] c:\node_modules\node-addon-api\napi-inl.h(15): note: voir la déclaration de ‘Napi’ c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc_connection.cpp(1141): error C2664: ‘Napi::ReferenceNapi::Object Napi::ReferenceNapi::Object::New(const T &,uint32_t)’ : impossib le de convertir l’argument 1 de ‘Napi::Env’ en ‘const T &’ [C:\RMGitLab\Micro-Services\AuthenticationService\node_modules\odbc\build\odbc.vcxproj] with [ T=Napi::Object ] c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc_connection.cpp(1141): note: Raison : impossible de convertir de ‘Napi::Env’ en ‘const T’ with [ T=Napi::Object ] c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc_connection.cpp(1141): note: Aucun opérateur de conversion définie par l’utilisateur disponible qui puisse effectuer cette conversi on, ou l’opérateur ne peut pas être appelé c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc_connection.cpp(1148): error C2039: ‘BigInt’ : n’est pas membre de ‘Napi’ [C:\RMGitLab\Micro-Services\AuthenticationService\node_modu les\odbc\build\odbc.vcxproj] c:\node_modules\node-addon-api\napi-inl.h(15): note: voir la déclaration de ‘Napi’ c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc_connection.cpp(1148): error C3083: ‘BigInt’ : le symbole situé à gauche de ‘::’ doit être un type [C:\RMGitLab\Micro-Services\Authen ticationService\node_modules\odbc\build\odbc.vcxproj] c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc_connection.cpp(1148): error C2039: ‘New’ : n’est pas membre de ‘Napi’ [C:\RMGitLab\Micro-Services\AuthenticationService\node_modules \odbc\build\odbc.vcxproj] c:\node_modules\node-addon-api\napi-inl.h(15): note: voir la déclaration de ‘Napi’ c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc_connection.cpp(1148): error C2664: ‘Napi::ReferenceNapi::Object Napi::ReferenceNapi::Object::New(const T &,uint32_t)’ : impossib le de convertir l’argument 1 de ‘Napi::Env’ en ‘const T &’ [C:\RMGitLab\Micro-Services\AuthenticationService\node_modules\odbc\build\odbc.vcxproj] with [ T=Napi::Object ] c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc_connection.cpp(1148): note: Raison : impossible de convertir de ‘Napi::Env’ en ‘const T’ with [ T=Napi::Object ] c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc_connection.cpp(1148): note: Aucun opérateur de conversion définie par l’utilisateur disponible qui puisse effectuer cette conversi on, ou l’opérateur ne peut pas être appelé c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc_connection.cpp(1768): warning C4477: ‘sprintf’ : la chaîne de format ‘%s’ nécessite un argument de type ‘char *’, mais l’argument va riadique 2 est de type ‘SQLTCHAR *’ [C:\RMGitLab\Micro-Services\AuthenticationService\node_modules\odbc\build\odbc.vcxproj] c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc_connection.cpp(1768): note: utilisez ‘%ls’ dans la chaîne de format c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc_connection.cpp(1768): note: utilisez ‘%lls’ dans la chaîne de format c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc_connection.cpp(1768): note: utilisez ‘%Ls’ dans la chaîne de format c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc_connection.cpp(1768): note: utilisez ‘%ws’ dans la chaîne de format c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc_connection.cpp(3508): error C2039: ‘BigInt’ : n’est pas membre de ‘Napi’ [C:\RMGitLab\Micro-Services\AuthenticationService\node_modu les\odbc\build\odbc.vcxproj] c:\node_modules\node-addon-api\napi-inl.h(15): note: voir la déclaration de ‘Napi’ c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc_connection.cpp(3508): error C3083: ‘BigInt’ : le symbole situé à gauche de ‘::’ doit être un type [C:\RMGitLab\Micro-Services\Authen ticationService\node_modules\odbc\build\odbc.vcxproj] c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc_connection.cpp(3508): error C2039: ‘New’ : n’est pas membre de ‘Napi’ [C:\RMGitLab\Micro-Services\AuthenticationService\node_modules \odbc\build\odbc.vcxproj] c:\node_modules\node-addon-api\napi-inl.h(15): note: voir la déclaration de ‘Napi’ c:\rmgitlab\micro-services\authenticationservice\node_modules\odbc\src\odbc_connection.cpp(3508): error C3861: ‘New’ : identificateur introuvable [C:\RMGitLab\Micro-Services\AuthenticationService\node_modules \odbc\build\odbc.vcxproj] gyp ERR! build error gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\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:194:23) gyp ERR! stack at ChildProcess.emit (events.js:375:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) gyp ERR! System Windows_NT 10.0.19042 gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “build” “–fallback-to-build” “–module=C:\RMGitLab\Micro-Services\AuthenticationService\node_modules\odbc\lib\bindings\napi-v6\odbc.node” “–module_name=odbc” “–module_path=C:\RMGitLab\Micro-Services\AuthenticationService\node_modules\odbc\lib\bindings\napi-v6” “–napi_version=8” “–node_abi_napi=napi” “–napi_build_version=6” “–node_napi_label=napi-v6” gyp ERR! cwd C:\RMGitLab\Micro-Services\AuthenticationService\node_modules\odbc gyp ERR! node -v v14.17.3 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute ‘C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\RMGitLab\Micro-Services\AuthenticationService\node_modules\odbc\lib\bindings\napi-v6\odbc.node --module_name=odbc --module_path=C:\RMGitLab\Micro-Services\AuthenticationService\node_modules\odbc\lib\bindings\napi-v6 --napi_version=8 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6’ (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\RMGitLab\Micro-Services\AuthenticationService\node_modules@mapbox\node-pre-gyp\lib\util\compile.js:89:23) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:375:28) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1055:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) node-pre-gyp ERR! System Windows_NT 10.0.19042 node-pre-gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\RMGitLab\Micro-Services\AuthenticationService\node_modules\@mapbox\node-pre-gyp\bin\node-pre-gyp” “install” “–fallback-to-build” node-pre-gyp ERR! cwd C:\RMGitLab\Micro-Services\AuthenticationService\node_modules\odbc node-pre-gyp ERR! node -v v14.17.3 node-pre-gyp ERR! node-pre-gyp -v v1.0.5 node-pre-gyp ERR! not ok Failed to execute ‘C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\RMGitLab\Micro-Services\AuthenticationService\node_modules\odbc\lib\bindings\napi-v6\odbc.node --module_name=odbc --module_path=C:\RMGitLab\Micro-Services\AuthenticationService\node_modules\odbc\lib\bindings\napi-v6 --napi_version=8 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6’ (1) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! odbc@2.4.0 install: node-pre-gyp install --fallback-to-build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the odbc@2.4.0 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\VincentF\AppData\Roaming\npm-cache_logs\2021-07-12T11_43_24_267Z-debug.log

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
RMVincentFcommented, Jul 12, 2021

I try to install odbc inside a new app/directory and I’m still having the same issue. I also clean my npm cache with npm cache clean --force by it did not fix the issue

0reactions
markdirishcommented, Jun 30, 2022

There are prebuilt Windows binaries now, and @worksofliam notes that the M1 compilation is working well now. Closing!

Read more comments on GitHub >

github_iconTop Results From Across the Web

2.4.0 does not compile · Issue #1382 - GitHub
My app stopped compiling after updating teams-js to 2.4.0: Error: node_modules/@microsoft/teams-js/dist/MicrosoftTeams.d.ts:6:90 - error ...
Read more >
Android Studio Compile Error: Could not find runtime-2.4.0.aar
first you could try File -> Sync Project With Gradle Files just to make sure it has been properly imported. Second it's better...
Read more >
Did someone manage to compile latest Tome 2.4.0 and could ...
15 votes, 24 comments. Seriously, compiling it is probably harder than the game itself, permadeath and all. I can already feel life fleeing ......
Read more >
Error when compiling GWT 2.4 - Google Groups
The requestfactory-apt.jar from GWT_TOOLS is not compatible with the releases/2.4 branch. Try setting "-proc:none" in your JAVA_OPTS to bypass the annotation ...
Read more >
[waves2Foam] Compilation Error with OF-2.4.0 on Ubuntu 18.04
I'm trying to compile waves2Foam on ubuntu 18.04 and with OF-2.4.0. I'm getting an error when the compiler trys to make waveFoam.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found