-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
6.4.0 is linking against GLIBCXX_3.4.18 (libstdc++6 >=4.8) #8172
Comments
You can, by ensuring that the host and the target are the same system. What you are doing is building against a newer version of libstdc++, then trying to run it against an older version. I'll close the issue, this is not a node.js bug. |
So is it true that Node.js>=4 doesn't support Ubuntu 12.04 which doesn't have g++ 4.8? What I mean is that technically I can build Node.js 4.x (or even <6.4.0) on Ubuntu 12.04 with g++-4.8 installed from ppa, and then use the binary on a stock Ubuntu with g++-4.6, because Node.js was linked with |
Correct. |
@bnoordhuis Sorry for bothering. Where can I look at how current node6's Linux binaries are built? I'm interested in the environment you're using, as well as the compiler flags. It seems that those binaries are not statically built, but they work perfectly on the clean Ubuntu 12.04, while my binaries require new libgcc to be installed. |
There is no magic, we basically run EDIT: I mean |
In our company, we build separate Debian packages from Node.js sources, for every major branch (e.g. we have packages nodejs-0.10, nodejs-4, nodejs-6 and so on). We've been maintaining packages for Ubuntu LTSs 12.04 to 16.04.
Recently I've noticed that Node.js 6.4.0 was linked against
GLIBCXX_3.4.18
. It means that 6.4.0 requires libstdc++6 >=4.8 to present in the system's runtime, so it makes impossible to use the release on Ubuntu 12.04, which ships libstdc++ 4.6.I believe there wasn't such requirement for Node.js 6.3.1, and the release built from sources within the same environment was linked to
GLIBCXX_3.4.15
.Should these changes be considered as minor? Or is there a way to build the binary, that will be linked to an older version glibc?
/cc @indutny
The text was updated successfully, but these errors were encountered: