Package: ycmd
Version: 0+20150804+git6f4dbb4-1
Severity: normal
--- Please enter the report below this line. ---
Since some recent update (not completely sure which, but clang to 3.6,
probably) the C++ checker started to show spurious errors. When I create a
trivial test.cpp containing:
#include <stddef.h>
int main()
{
return 0;
}
and open it with vim with vim-youcompleteme enabled, I get error
1 test.cpp:1 col 10 error: 'stddef.h' file not found
The error does _not_ happen when I try to simply compile the file with
clang++, so it has to be something in the way ycmd sets up the compilation.
:YcmDebugInfo gives me:
Printing YouCompleteMe debug information...
-- Server has Clang support compiled in: True
-- Clang version: Debian clang version 3.6.2-1 (tags/RELEASE_362/final) (based
on LLVM 3.6.2)
-- Flags for /tmp/test.cpp loaded from /usr/lib/ycmd/ycm_extra_conf.py:
-- ['-Wall', '-Werror', '-Wno-long-long', '-Wno-variadic-macros', '-
fexceptions', '-std=c++11', '-x', 'c++', '-isystem',
'/usr/lib/ycmd/ycmd/../clang_includes']
-- Server running at: http://127.0.0.1:36412
-- Server process ID: 23851
-- Server logfiles:
-- /tmp/ycm_temp/server_36412_stdout.log
-- /tmp/ycm_temp/server_36412_stderr.log
If I manually use the listed flags with clang++, it still compiles the test
file fine.
I have removed all other versions of gcc then 5.2.1 and all other versions of
llvm and clang then 3.6.2 except libclang-3.5 remains installed because
doxygen still depends on it. But ycmd appears to correctly use libclang-3.6.
--- System information. ---
Architecture: amd64
Kernel: Linux 4.1.0-2-amd64
Debian Release: stretch/sid
990 testing http.debian.net
500 wily ppa.launchpad.net
500 unstable http.debian.net
500 trusty ppa.launchpad.net
500 testing-proposed-updates http.debian.net
500 stable-updates ftp.cz.debian.org
500 stable security.debian.org
500 stable ftp.cz.debian.org
1 experimental http.debian.net
--- Package information. ---
Package's Depends field is empty.
Package's Recommends field is empty.
Package's Suggests field is empty.
Hm, reportbug-ng did not generate this, so I tried manually:
||/ Name Version Architecture Description
+++-===============================-================-============-
==============================================================================
ii libboost-filesystem1.58.0:amd64 1.58.0+dfsg-3+b1 amd64 filesystem
operations (portable paths, iteration over directories, etc) in C++
ii libboost-python1.58.0 1.58.0+dfsg-3+b1 amd64 Boost.Python
Library
ii libboost-regex1.58.0:amd64 1.58.0+dfsg-3+b1 amd64 regular
expression library for C++
ii libboost-system1.58.0:amd64 1.58.0+dfsg-3+b1 amd64 Operating
system (e.g. diagnostics support) library
ii libc6:amd64 2.19-22 amd64 GNU C
Library: Shared libraries
ii libc6:i386 2.19-22 i386 GNU C
Library: Shared libraries
ii libclang1-3.6:amd64 1:3.6.2-1 amd64 C interface
to the clang library
ii libgcc1:amd64 1:5.2.1-17 amd64 GCC support
library
ii libgcc1:i386 1:5.2.1-17 i386 GCC support
library
ii libpython2.7:amd64 2.7.10-4 amd64 Shared
Python runtime library (version 2.7)
ii libstdc++6:amd64 5.2.1-17 amd64 GNU Standard
C++ Library v3
ii libstdc++6:i386 5.2.1-17 i386 GNU Standard
C++ Library v3
ii python 2.7.9-1 amd64 interactive
high-level object-oriented language (default version)
ii python-bottle 0.12.7-1 all fast and
simple WSGI-framework for Python
ii python-jedi 0.9.0-1 all
autocompletion tool for Python
ii python-requests 2.7.0-3 all elegant and
simple HTTP library for Python2, built for human beings
ii python-waitress 0.8.9-2 all production-
quality pure-Python WSGI server
ii python2.7 2.7.10-4 amd64 Interactive
high-level object-oriented language (version 2.7)
--
- Jan Hudec <[email protected]>