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

version `GLIBCXX_3.4.21' not found - sqlite3 4.0.8 #1164

Closed
sangaman opened this issue May 14, 2019 · 7 comments
Closed

version `GLIBCXX_3.4.21' not found - sqlite3 4.0.8 #1164

sangaman opened this issue May 14, 2019 · 7 comments

Comments

@sangaman
Copy link

When building in Travis CI with Node.js 12 and sqlite3 4.0.8, tests fail with:

Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/travis/build/ExchangeUnion/xud/node_modules/sqlite3/lib/binding/node-v72-linux-x64/node_sqlite3.node)

This issue does not arise with the same configuration running Node.js 10.

@realies
Copy link

realies commented May 15, 2019

Similar issue because of the GLIBCXX_3.4.21 dependency. Sqlite3 segfaults on CentOS 7.

# ldd node_sqlite3.node 
./node_sqlite3.node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ./node_sqlite3.node)
	linux-vdso.so.1 =>  (0x00007ffdcbb4d000)
	libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fb10e346000)
	libm.so.6 => /lib64/libm.so.6 (0x00007fb10e044000)
	libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fb10de2e000)
	libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fb10dc12000)
	libc.so.6 => /lib64/libc.so.6 (0x00007fb10d845000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fb10ea23000)

@kewde
Copy link
Collaborator

kewde commented May 19, 2019

Thank you for reporting the issue.

Travis-CI for Node 12 has been using xenial which ships with a much higher version of libc++.
We could look into downgrading back to precise (or even lower trusty) instead.

A potential workaround is upgrading your distro in your projects .travis.yaml.

@kewde
Copy link
Collaborator

kewde commented May 19, 2019

I don't recall there being a specific reason for the upgrade to Xenial.
This additional distro upgrade got in when I splitted a pull request from another user, I had removed the upgrade from the electron builds but not for the normal builds.

@realies
Copy link

realies commented May 19, 2019

An upgraded CentOS EL7 comes with up to GLIBCXX_3.4.19

# strings /lib64/libstdc++.so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19

@kewde
Copy link
Collaborator

kewde commented Jun 8, 2019

Building v4.0.9

@kewde
Copy link
Collaborator

kewde commented Jun 13, 2019

Please test out v4.0.9 it should have resolved this issue.
Thanks you.

@kewde kewde closed this as completed Jun 13, 2019
@sangaman
Copy link
Author

Confirmed that 4.0.9 works without this issue, thanks!

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

3 participants