After I ran cmake -G "Unix Makefiles" -DUSE_SYSTEM_LIBCLANG=ON . ~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /home/zizheng/disk1/zizheng/gcc-4.9.2/bin/gcc
-- Check for working C compiler: /home/zizheng/disk1/zizheng/gcc-4.9.2/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /home/zizheng/disk1/zizheng/gcc-4.9.2/bin/g++
-- Check for working CXX compiler: /home/zizheng/disk1/zizheng/gcc-4.9.2/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
Your C++ compiler supports C++11, compiling in that mode.
-- Found PythonLibs: /usr/local/lib/libpython2.7.so (found suitable version "2.7.8", minimum required is "2.6")
Using libclang to provide semantic completion for C/C++/ObjC
Using external libclang: /usr/local/lib/libclang.so
-- Found PythonInterp: /usr/local/bin/python (found version "2.7.8")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /home/zizheng/ycm_build
And I succeeded with the command make ycm_support_libs.
But upon opening VIM, I get the following errors:
Error detected while processing function youcompleteme#Enable..<SNR>60_SetUpPython:
Traceback (most recent call last):
Error detected while processing function youcompleteme#Enable..<SNR>60_SetUpPython:
File "<string>", line 1, in ?
Error detected while processing function youcompleteme#Enable..<SNR>60_SetUpPython:
File "/home/zizheng/.vim/bundle/YouCompleteMe/autoload/../third_party/ycmd/ycmd/utils.py", line 240
Error detected while processing function youcompleteme#Enable..<SNR>60_SetUpPython:
kwargs[ 'stdin' ] = subprocess.PIPE if OnWindows() else None
Error detected while processing function youcompleteme#Enable..<SNR>60_SetUpPython:
^
Error detected while processing function youcompleteme#Enable..<SNR>60_SetUpPython:
SyntaxError: invalid syntax
In addition, I've noticed that even without built for semantic support for C-family languages, I will run into the same problem.
Hi, first things first, thanks for tech support :tada:
I'm trying to use YouCompleteMe in RHEL5 with Vundle.
I've compiled and installed Vim7.4, cmake 2.8, GCC 4.9.2, Clang3.5, and Python 2.7.
My vim --version is as followings:
After I ran
cmake -G "Unix Makefiles" -DUSE_SYSTEM_LIBCLANG=ON . ~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp
That's part of my .bashrc
And I succeeded with the command
make ycm_support_libs
.But upon opening VIM, I get the following errors:
In addition, I've noticed that even without built for semantic support for C-family languages, I will run into the same problem.
Thanks in advance.