microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.42k stars 29.34k forks source link

Update rpm dependencies file for newer CXXABI requirement #115784

Closed tazerdev closed 3 years ago

tazerdev commented 3 years ago

VS Code Version: 1.53.0 OS: RHEL7.9

Error: The terminal process failed to launch: A native exception occurred during launch (/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/share/code/resources/app/node_modules.asar.unpacked/node-pty/build/Release/pty.node)).

$ strings /lib64/libstdc++.so.6 | grep CXXABI
CXXABI_1.3
CXXABI_1.3.1
CXXABI_1.3.2
CXXABI_1.3.3
CXXABI_1.3.4
CXXABI_1.3.5
CXXABI_1.3.6
CXXABI_1.3.7
CXXABI_TM_1
keegandent commented 3 years ago

IMHO, the correct solution to this problem is to provide a version of vscode that runs on centos 7 native. This can easily be done using the softwarecollections project (www.softwarecollections.org).

I was able to build the vscode open source using DevToolset-10 C++ compiler toolchain. This allows it to run native on centos-7 This is the docker file I used, and is on docker hub at kurtgo/vscode-centos7.

Devtoolset-10 is allows the entire thing to be built with compatible with centos7, using the latest gcc compiler.

I would suggest Devtoolset-7 considering the Ubuntu 18.04 CI they are treating as the primary linux target is GCC 7.4, but yes I absolutely agree that having an additional build route to maintain compatibility for Enterprise Linux 7 is not a big ask.

kvnlmr commented 3 years ago

We have a n easy workaround on our side with:

Instead of installing it with yum package manager, we install it through snapcraft.io

First, install Snap on CentOS:

sudo yum install epel-release -y
sudo yum install snapd -y
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap

And then, install Visual Studio Code through Snap:

sudo snap install code --classic

mati-o commented 3 years ago

/verified

I am more than happy to confirm that 1.60.0-insider version works on CentOS 7! Many thanks!

iostrym commented 3 years ago

thanks. just to be sure, now we must also wait that stable version of vscode will get the correction. right ?

tazerdev commented 3 years ago

Apologies that I missed the update. I won't be able to verify until Monday, but it's sufficient for me that others have been able to do so. I'll chime in once I am able to confirm.

tazerdev commented 3 years ago

/verified

Thanks for fixing this issue.

sskamesh commented 3 years ago

/verified

working now with 1.60