linux x64 fails to compile
See original GitHub issuefoo@foo.com > npm install ibm_db
> ibm_db@2.2.1 install /foo/node_modules/ibm_db
> node installer/driverInstall.js
Downloading DB2 ODBC CLI Driver from https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz...
100.00% | 18703240 bytes downloaded out of 18703240 bytes.
****************************************
You are downloading a package which includes the Node.js module for IBM DB2/Informix. The module is licensed under the Apache License 2.0. The package also includes IBM ODBC and CLI Driver from IBM, which is automatically downloaded as the node module is installed on your system/device. The license agreement to the IBM ODBC and CLI Driver is available in undefined Check for additional dependencies, which may come with their own license agreement(s). Your use of the components of the package and dependencies constitutes your acceptance of their respective license agreements. If you do not accept the terms of any license agreement(s), then delete the relevant component(s) from your device.
****************************************
Downloading and extraction of DB2 ODBC CLI Driver completed successfully ...
make: Entering directory `/brandon/fs-loyalty-platform/node_modules/ibm_db/build'
CXX(target) Release/obj.target/odbc_bindings/src/odbc.o
make: Leaving directory `/brandon/fs-loyalty-platform/node_modules/ibm_db/build'
{ Error: Command failed: node-gyp configure build --IS_DOWNLOADED=true --IBM_DB_HOME="$IBM_DB_HOME"
In file included from ../src/odbc.h:23,
from ../src/odbc.cpp:25:
../../nan/nan.h:43:3: error: #error This version of node/NAN/v8 requires a C++11 compiler
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/memory:83,
from /home/brandon/.node-gyp/8.9.1/include/node/v8.h:21,
from ../src/odbc.cpp:19:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In member function ‘virtual void* std::_Sp_counted_deleter<_Ptr, _Deleter, _Alloc, _Lp>::_M_get_deleter(const std::type_info&)’:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:146: error: cannot use typeid with -fno-rtti
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In member function ‘virtual void* std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_M_get_deleter(const std::type_info&)’:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:204: error: cannot use typeid with -fno-rtti
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In constructor ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag, _Alloc, _Args&& ...)’:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:861: error: cannot use typeid with -fno-rtti
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In function ‘_Del* std::get_deleter(const std::__shared_ptr<_Tp2, _Lp>&)’:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:1005: error: cannot use typeid with -fno-rtti
In file included from ../src/odbc.cpp:19:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: At global scope:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:333: error: expected unqualified-id before ‘using’
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: In constructor ‘v8::MaybeLocal<T>::MaybeLocal()’:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:350: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::IsEmpty() const’:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:357: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) const’:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:365: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: In constructor ‘v8::Eternal<T>::Eternal()’:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:394: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: In constructor ‘v8::Eternal<T>::Eternal(v8::Isolate*, v8::Local<S>)’:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:396: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: In member function ‘bool v8::Eternal<T>::IsEmpty() const’:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:401: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: In member function ‘bool v8::WeakCallbackInfo<T>::IsFirstPass() const’:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:441: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: In constructor ‘v8::Global<T>::Global()’:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:775: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: In constructor ‘v8::Global<T>::Global(v8::Global<T>&&)’:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:800: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: In member function ‘v8::Global<T>& v8::Global<T>::operator=(v8::Global<S>&&)’:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:812: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: At global scope:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:838: error: expected unqualified-id before ‘using’
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:1187: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:1193: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: In constructor ‘v8::RegisterState::RegisterState()’:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:1733: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: At global scope:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:3198: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: In member function ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:3839: error: ‘nullptr’ was not declared in this scope
/home/brandon/.node-gyp/8.9.1/include/node/v8.h: At global scope:
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:4108: error: function definition does not declare parameters
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:4164: error: expected unqualified-id before ‘&’ token
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:4164: error: expected ‘)’ before ‘&’ token
/home/brandon/.node-gyp/8.9.1/include/node/v8.h:4164: error: expected ‘;’ before ‘&’ token
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/ostream_insert.h:36,
from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/string:46,
from ../../nan/nan.h:61,
from ../src/odbc.h:23,
from ../src/odbc.cpp:25:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/cxxabi-forced.h:29: error: expected ‘;’ before end of line
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/cxxabi-forced.h:29: error: expected ‘}’ before end of line
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/cxxabi-forced.h:29: error: expected unqualified-id before end of line
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/cxxabi-forced.h:29: error: expected ‘}’ before end of line
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/cxxabi-forced.h:29: error: expected declaration before end of line
make: *** [Release/obj.target/odbc_bindings/src/odbc.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/brandon/node-v8.9.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 2.6.32-696.13.2.el6.x86_64
gyp ERR! command "/brandon/node-v8.9.1-linux-x64/bin/node" "/brandon/node-v8.9.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" "--IS_DOWNLOADED=true" "--IBM_DB_HOME=/brandon/fs-loyalty-platform/node_modules/ibm_db/installer/clidriver"
gyp ERR! cwd /brandon/fs-loyalty-platform/node_modules/ibm_db
gyp ERR! node -v v8.9.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
at ChildProcess.exithandler (child_process.js:275:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
killed: false,
code: 1,
signal: null,
cmd: 'node-gyp configure build --IS_DOWNLOADED=true --IBM_DB_HOME="$IBM_DB_HOME"' }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ibm_db@2.2.1 install: `node installer/driverInstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ibm_db@2.2.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Issue Analytics
- State:
- Created 6 years ago
- Comments:21 (10 by maintainers)
Top Results From Across the Web
[abseil:x64-linux] Build fails (cxx17) #21625 - microsoft/vcpkg
Host Environment OS: Windows 10 Compiler: MSVC v143 WSL OS: Ubuntu 20.04 Compiler: g++ 11.1.0 To Reproduce A git repository with the code ......
Read more >Linux compilation does not work, results in error: No such file ...
Visual Studio 2019, 16.1.3 - fails to compile, results in error: 1>g++ : error : /mnt/c/Prototyping/libunwind/C/Prototyping/libunwind/src/dwarf/global.c: No ...
Read more >crt1.o no such file c++ compilation error on linux x64
I'm making my first steps on the linux platform. I've installed Centos x64. I'm attempting to build a small program with a couple...
Read more >Error compiling 64-bit on 32-bit machine with -m64
As a side note, I think you ought to try compiling on the server you say that compiles 64 bit code as neither...
Read more >Upgraded to VS 2022 (17.2.5) now my linux build fails ...
I created a Linux Solution in Visual Studio 2019. I've been using it for some time, and works well. Recently I upgraded to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Your compiler is too old. Switch to g++ >= 4.8.5 and it should work. That’s not specific to this module, by the way.
@brandonros We can not recompile libdb2.so.1. We install it by downloading it from here. It is compiled, packaged and uploaded by IBM Build team here: https://www-01.ibm.com/support/docview.wss?uid=swg21385217 You can download
IBM Data Server Driver for ODBC and CLI (CLI Driver)
from above link, untar and verify db2level command is working for you or not after adding clidriver\bin and clidriver\lib directory to PATH and LD_LIBRARY_PATH env variables. If using this driver, db2level works for you, you canexport IBM_DB_HOME=<clidriver_path>
and thennpm install ibm_db
. If IBM_DB_HOME is set, ibm_db do not download clidriver but use the existing one. If neitherIBM Data Server Driver for ODBC and CLI (CLI Driver)
norIBM Data Server Driver Package (DS Driver)
works in your system after download, ibm_db would not work. You may contact IBM Support if these downloaded drivers do not work in your system. Thanks.