Skip to content

Update rpm dependencies file for newer CXXABI requirement #115784

Description

@tazerdev

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

Activity

  1. vscodebot commented on Feb 4, 2021

    @vscodebot
  2. dcourtois commented on Feb 5, 2021

    @dcourtois

    Same issue here. Unfortunately CentOS 7 is still wildly use in some areas, and the links pointed to by John Murray (@gjsjohnmurray) explains the cause, but unfortunately doesn't provide any workaround.
    Is there any workaround known at this point ? This is a pretty important issue, right now VSCode is just not usable: git doesn't work nor the terminal and most of the extensions like C/C++, CMake Tools, etc. It's reverted to a simple text editor)

  3. tazerdev commented on Feb 5, 2021

    @tazerdev
    Author

    From the changelog:

    With these changes, the following are the distros known to work for the x64 desktop app:

    Ubuntu 16.04 and newer
    Fedora 24 and newer
    Debian 9 and newer
    CentOS 8 and newer
    

    Note: Our remote development components continue to use GLIBCXX 3.4.19, so there is no change in supported platforms.

    So I guess my next question would be why, if it's no longer a supported platform, is CentOS7 being given an RPM that's meant for CentOS8?

  4. gjsjohnmurray commented on Feb 5, 2021

    @gjsjohnmurray
    Contributor

    Is there any workaround known at this point ?

    Damien Courtois (@dcourtois) previous versions can be downloaded by going to https://code.visualstudio.com/updates and choosing the version from the sidebar, then using the download link on its release notes.

    I assume you are using CentOS 7 as your desktop, right? And can't use any of the workarounds offered in the 1.53 release notes?

    A workaround for the other distros would be to install gcc-5 or higher toolchain to avoid the GLIBCXX error with native modules, but there is no guarantee that all components of the runtime will work fine. There is also the option of using our remote development suite to work with the older distros.

  5. RudiFueller commented on Feb 5, 2021

    @RudiFueller

    If you are affected by this issue, let me tell you what I did:

    • Download a recent gcc-tarball from a GNU mirror + compile
    • Take the content of x86_64-pc-linux-gnu/libstdc++-v3/src/.libs and copy to a dir of your choice (eg. ~/lib64/libstdc++-v3)
    • Write a start wrapper for vscode, put your extended LD_LIBRARY_PATH in the wrapper
    • Open vscode with the wrapper -> done.
  6. Tyriar commented on Feb 5, 2021

    @Tyriar
    Contributor

    Sorry but we needed to move forward to support the new version of Electron. Here are your options:

    • Upgrade your OS
    • If you're remoting into the machine you can use the remote development extensions or codespaces because this only affects Electron (desktop), not node (remote server)
    • Try install the compatible binaries as suggested above Update rpm dependencies file for newer CXXABI requirement #115784 (comment), YMMV with this approach
    • Use an older version of VS Code - not only will you miss out on new updates but also security updates so this isn't recommended
  7. added
    *question
    on Feb 5, 2021
  8. tazerdev commented on Feb 5, 2021

    @tazerdev
    Author

    Daniel Imms (@Tyriar)

    Understood but the 1.53 RPM shouldn't install on a RHEL7/CentOS7 based system in the first place because RHEL7 has a standardized GLIBC that will be maintained throughout its lifecycle. The rpmspec should include a requires statement based on GLIBC version and the rpms should be provided in an EL compatible repository (i.e., RHEL7 and RHEL8 rpms are maintained in separate locations.)

    As it stands VS Code is breaking the packaging standards of the platform and causing problems for users. If you can direct me to the appropriate area I'll gladly open a bug request there.

  9. Tyriar commented on Feb 5, 2021

    @Tyriar
    Contributor
  10. 114 remaining items

  11. added this to the August 2021 milestone on Jul 25, 2021
  12. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Aug 6, 2021
  13. added
    author-verification-requested
    on Aug 9, 2021
  14. vscode-triage-bot commented on Aug 9, 2021

    @vscode-triage-bot

    This bug has been fixed in the latest release of VS Code Insiders!

    tazerdev (@tazerdev), you can help us out by commenting /verified if things are now working as expected.

    If things still don't seem right, please ensure you're on version 1ee61f3 of Insiders (today's or later - you can use Help: About in the command palette to check), and leave a comment letting us know what isn't working as expected.

    Happy Coding!

  15. mati-o commented on Aug 10, 2021

    @mati-o

    /verified

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

  16. added
    verified
    and removed
    author-verification-requested
    on Aug 10, 2021
  17. iostrym commented on Aug 20, 2021

    @iostrym

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

  18. tazerdev commented on Aug 20, 2021

    @tazerdev
    Author

    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.

  19. tazerdev commented on Aug 23, 2021

    @tazerdev
    Author

    /verified

    Thanks for fixing this issue.

  20. sskamesh commented on Sep 13, 2021

    @sskamesh

    /verified

    working now with 1.60

  21. locked and limited conversation to collaborators on Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bughelp wantedinsiders-releasedlinuxverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions