Chromium VSCode YCM setup failing due to old libstdc++ ?

92 views
Skip to first unread message

James Cook

unread,
Aug 17, 2017, 6:50:49 PM8/17/17
to chromium-dev
Can someone help with a Goobuntu libstdc++ problem so I can use YCM with Chromium?

I'm trying to set up you-complete-me for VSCode for chromium using the instructions at:

However, when I start it I get this error:
Ycm startup failed. Please check your ycmd or python path. Detail: Unexpected error while loading the YCM core library.

Adding the VSCode setting "ycmd.debug": true reveals this error in the output panel:

[ycm stderr] 2017-08-17 15:41:14,734 - ERROR - /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/local/google/home/jamescook/.ycmd/ycmd/../libclang.so.4)
Traceback (most recent call last):
  File "/usr/local/google/home/jamescook/.ycmd/ycmd/server_utils.py", line 96, in CompatibleWithCurrentCore
    ycm_core = ImportCore()
  File "/usr/local/google/home/jamescook/.ycmd/ycmd/server_utils.py", line 88, in ImportCore
    import ycm_core as ycm_core
ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/local/google/home/jamescook/.ycmd/ycmd/../libclang.so.4)

Indeed I don't have that GLIBCXX:
strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
...
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_DEBUG_MESSAGE_LENGTH

I'm on Goobuntu Trusty:
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"

Unfortunately this about as far as I can get on my limited knowledge of linux configuration. Any suggestions?

James

Nico Weber

unread,
Aug 17, 2017, 9:37:19 PM8/17/17
to James Cook, Chromium-dev, Jeremy Roman
The ycm config script was buggy, jbroman has a fix for this that I think landed earlier today, so syncing might be enough. If it's still in the cq, you can grab it off his gerrit issues.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAKLzqjFzAeb5uq5oSqU6fV%2Baw599riH4%3D3bKOpCCWLzYyPmTFw%40mail.gmail.com.

Jeremy Roman

unread,
Aug 17, 2017, 11:10:14 PM8/17/17
to Nico Weber, James Cook, Chromium-dev
This looks to me like an issue with dynamic linking of the YouCompleteMe core itself (which is built against the system libstdc++, IIRC); the issue I resolved was with the compile flags passed to libclang to analyze a particular Chromium source file (which builds with our bundled libc++).

James Cook

unread,
Aug 18, 2017, 1:43:23 PM8/18/17
to Jeremy Roman, Nico Weber, Chromium-dev
Any idea if there's either a way to install a newer libstdc++ on my box, or force YCM to compile itself against a different version?

Reply all
Reply to author
Forward
0 new messages