vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

GLIBC 2.18 dependency

Open delmyers opened this issue 10 years ago • 65 comments

This was copied from the reviews on the extension page. Not sure if it is a language service issue, or a debugger issue.

delmyers avatar Apr 19 '16 23:04 delmyers

Workaround described in https://github.com/Microsoft/vscode-cpptools/issues/19#issuecomment-266168029 still works, but now you have to edit the file /out/src/LanguageServer/client.js instead of C_Cpp.js

s-martin avatar Nov 14 '17 12:11 s-martin

@s-martin, there were actually only about 40 machines affected. However, the effect on these machines was so severe that it warranted an emergency patch. Thanks for the reminder about the change in file name. I updated the comment above with the correct file name.

bobbrow avatar Nov 14 '17 16:11 bobbrow

I'm sorry for your frustration, but you must not have noticed that I added this to the December 2017 milestone. Keep calm 👑 Support is coming! 😉

bobbrow avatar Nov 17 '17 17:11 bobbrow

@bobbrow Appreciate it! Thanks!

s-martin avatar Nov 18 '17 11:11 s-martin

We have an 0.14.4-insider release that works on CentOS7 (64-bit, not 32-bit): ~~[link removed, this is fixed in mainline builds as of 0.14.4]~~. VS Code itself doesn't expose a way for extensions to publish "insider" releases, so you just need to download the .vsix and run the "Install from VSIX" command. If you hit bugs, please file a new issue (or upvote an existing one) and mention you're on 0.14.4-insider, and we might be able to fix the bugs before releasing the non-insider build. The release also fixes additional bugs listed in our December milestone: https://github.com/Microsoft/vscode-cpptools/milestone/7 , except for the 32-bit issue which we're still working on.

sean-mcmanus avatar Dec 01 '17 00:12 sean-mcmanus

Confirm that the 0.14.4-insider is working nicely on Red Hat EL 7.4.

dtrudg avatar Dec 01 '17 14:12 dtrudg

Works fine on Centos 7.3. Good job!

Visual Studio Code still needs libraries: libXss.so.1 that is available in libXScrnSaver

If you get, code: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory try, $ yum install libXScrnSaver

$ ldd Microsoft.VSCode.CPP.Extension.linux linux-vdso.so.1 => (0x00007ffe155fa000) libm.so.6 => /lib64/libm.so.6 (0x00007f459e4dd000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f459e2c1000) libc.so.6 => /lib64/libc.so.6 (0x00007f459deff000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f459dcfb000) librt.so.1 => /lib64/librt.so.1 (0x00007f459daf3000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f459d8dc000) /lib64/ld-linux-x86-64.so.2 (0x00007f459e7fa000) $ cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core)

Ebiroll avatar Dec 01 '17 14:12 Ebiroll

@Ebiroll What do you mean by "Code still needs libraries"? Is this something our extension should fix? I didn't see that error on my CentOS7 and I didn't run the "yum install libXScrnSaver".

sean-mcmanus avatar Dec 01 '17 19:12 sean-mcmanus

Thanks. I'll check it out!

s-martin avatar Dec 01 '17 20:12 s-martin

@sean-mcmanus Sorry, to be more specific there exist a not so obvious dependency from Visual Studio Code to libXss.so.1 that is available in libXScrnSaver. This should probably not be a problem if you install from the rpm. The extension seems to work fine under redhat/centos.

Ebiroll avatar Dec 02 '17 10:12 Ebiroll

CentOS 7.4:

I had first to deinstall the 0.14.3 extension and then after a restart install the 0.14.4.-insider, but now it works seamless.

s-martin avatar Dec 04 '17 08:12 s-martin

I want to say thank you to finally fixing this, even if RHEL/CentOS was not your targeted audience.

s-martin avatar Dec 04 '17 08:12 s-martin

I tried installing using

code --install-extension cpptools-linux.vsix

It reported installation was successful. Then when I opened Code, it auto-downloaded an older version, installed that one, and promptly displayed "The language server crashed 5 times..."

GabeAl avatar Dec 04 '17 20:12 GabeAl

As others have mentioned, the 0.14.3 version needs to be uninstalled or VS Code will continue to use the old one instead.

@GabeAl I'm not observing that behavior on my CentOS machine? What OS are you using? For me, the 0.14.4-insider stays installed...did you have the 0.14.3 version installed previously?

@s-martin Thanks to everyone who complained. We try to use user feedback to help prioritize our work.

sean-mcmanus avatar Dec 04 '17 20:12 sean-mcmanus

works perfectly now.

On Mon, Dec 4, 2017 at 12:56 PM, Sean McManus [email protected] wrote:

Ah, yeah -- as others have mentioned, the 0.14.3 version needs to be uninstalled or VS Code will continue to use the old one instead.

@GabeAl https://github.com/gabeal I'm not observing that behavior on my CentOS machine? What OS are you using? For me, the 0.14.4-insider stays installed...did you have the 0.14.3 version installed previously?

@s-martin https://github.com/s-martin Thanks to everyone who complained. We try to use user feedback to help prioritize our work.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Microsoft/vscode-cpptools/issues/19#issuecomment-349102461, or mute the thread https://github.com/notifications/unsubscribe-auth/AKW214IDM9-RX6jBs3ZT6wei01u3bPmPks5s9FxlgaJpZM4ILN70 .

carlhua avatar Dec 04 '17 22:12 carlhua

thank you so much!!!!

On Mon, Dec 4, 2017 at 2:51 PM, Carl Hua [email protected] wrote:

works perfectly now.

On Mon, Dec 4, 2017 at 12:56 PM, Sean McManus [email protected] wrote:

Ah, yeah -- as others have mentioned, the 0.14.3 version needs to be uninstalled or VS Code will continue to use the old one instead.

@GabeAl https://github.com/gabeal I'm not observing that behavior on my CentOS machine? What OS are you using? For me, the 0.14.4-insider stays installed...did you have the 0.14.3 version installed previously?

@s-martin https://github.com/s-martin Thanks to everyone who complained. We try to use user feedback to help prioritize our work.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Microsoft/vscode-cpptools/issues/19#issuecomment-349102461, or mute the thread https://github.com/notifications/unsubscribe-auth/AKW214IDM9-RX6jBs3ZT6wei01u3bPmPks5s9FxlgaJpZM4ILN70 .

carlhua avatar Dec 04 '17 22:12 carlhua

Thanks for pointing that out -- no, I had a version earlier than 0.14.3 installed when I tried the 0.14.4 preview. I tried uninstalling and re-installing. I'm on CentOS 7.4.

image

It seems this is the correct version but still crashes.

Thinking back, I had used one of the earlier workarounds before which could be causing trouble now. I had forgotten about this because even though the workaround worked at the time, the plugin kept auto-updating and I ignored it since then, thinking all of the workaround had been un-done.

Is there a way to completely purge VS-code and re-install anew? I can try yum remove, but I think there might be some lingering config files/directories in the system along with the workaround's hacked execution scripts.

GabeAl avatar Dec 05 '17 00:12 GabeAl

Removing and re-installing code with yum, and clearing ~/.vscode did the trick. I saw cpptools roar triumphantly to life. :hamburger:

Now I'm off to excitedly explore how to use it. Currently it chokes when it sees the #include for immintrin.h (the x86 assembly intrinsics), which seems to be keeping other declarations from showing up (no tooltips for malloc, etc until I comment it out). I have a feeling this is a different issue (something about includePaths), but thought I'd post just for completeness!

Thanks again!

GabeAl avatar Dec 05 '17 00:12 GabeAl

Thanks for addressing this issue.

ampatel21 avatar Dec 06 '17 15:12 ampatel21

I can confirm, it works great on CentOS 7.4, glibc 2.17. In fact, it's running faster than when I was using the workaround.

Thanks for fixing this! It makes my job easier...

ericsdakcs avatar Dec 07 '17 15:12 ericsdakcs