I installed the plugin with Vundle, but when I follow the Mac OS X super-quick installation instructions, I eventually get an error at the step make ycm_core.
$ make ycm_core
[ 1%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/converter/arg_to_python_base.cpp.o
In file included from /Library/Frameworks/Python.framework/Headers/Python.h:57,
from /Users/roryokane/.vim/bundle/YouCompleteMe/cpp/BoostParts/boost/python/detail/wrap_python.hpp:142,
from /Users/roryokane/.vim/bundle/YouCompleteMe/cpp/BoostParts/boost/python/detail/prefix.hpp:13,
from /Users/roryokane/.vim/bundle/YouCompleteMe/cpp/BoostParts/boost/python/handle.hpp:8,
from /Users/roryokane/.vim/bundle/YouCompleteMe/cpp/BoostParts/boost/python/converter/arg_to_python_base.hpp:7,
from /Users/roryokane/.vim/bundle/YouCompleteMe/cpp/BoostParts/libs/python/src/converter/arg_to_python_base.cpp:6:
/Library/Frameworks/Python.framework/Headers/pyport.h:734:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
make[3]: *** [BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/converter/arg_to_python_base.cpp.o] Error 1
make[2]: *** [BoostParts/CMakeFiles/BoostParts.dir/all] Error 2
make[1]: *** [ycm/CMakeFiles/ycm_core.dir/rule] Error 2
make: *** [ycm_core] Error 2
I’m on Mac OS X 10.6. I’m using the latest MacVim, Version 7.3 (53). Here’s the top of the output of :version in MacVim:
:version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Aug 15 2010 22:03:01)
MacOS X (unix) version
Compiled by Bjorn Winckler <bjorn.winckler@gmail.com>
Huge version with MacVim GUI. Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse […]
My gcc version is “i686-apple-darwin10-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)”.
Here is the full trace of my installation (with blank lines added between commands). I installed cmake earlier with brew install cmake. In the middle, when the cp failed, that’s because I hadn’t installed the Vim bundle properly; when it worked the second time I ran it, I had run :BundleInstall in MacVim.
Last login: Wed Feb 6 20:10:03 on ttys000
$ cd ~
$ mkdir ycm_temp
$ cd ycm_temp
$ curl -O http://llvm.org/releases/3.2/clang+llvm-3.2-x86_64-apple-darwin11.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 67.8M 100 67.8M 0 0 14.1M 0 0:00:04 0:00:04 --:--:-- 15.5M
$ tar -zxvf clang+llvm-3.2-x86_64-apple-darwin11.tar.gz
x clang+llvm-3.2-x86_64-apple-darwin11/
x clang+llvm-3.2-x86_64-apple-darwin11/bin/
[snipping huge list of files]
x clang+llvm-3.2-x86_64-apple-darwin11/share/man/man1/
x clang+llvm-3.2-x86_64-apple-darwin11/share/man/man1/clang.1
$ cp clang+llvm-3.2-x86_64-apple-darwin11/lib/libclang.dylib ~/.vim/bundle/YouCompleteMe/python
cp: /Users/roryokane/.vim/bundle/YouCompleteMe/python: No such file or directory
$ lsclang+llvm-3.2-x86_64-apple-darwin11
clang+llvm-3.2-x86_64-apple-darwin11.tar.gz
$ cp clang+llvm-3.2-x86_64-apple-darwin11/lib/libclang.dylib ~/.vim/bundle/YouCompleteMe/python
$ cd ~
$ mkdir ycm_build
$ cd ycm_build
$ cmake -G "Unix Makefiles" -DPATH_TO_LLVM_ROOT=~/ycm_temp/clang+llvm-3.2-x86_64-apple-darwin11 . ~/.vim/bundle/YouCompleteMe/cpp
-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is GNU 4.2.1
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
Your C++ compiler does NOT support C++11, compiling in C++03 mode.
-- Found PythonLibs: /usr/lib/libpython2.6.dylib (found suitable version "2.5.1", minimum required is "2.5")
Using libclang to provide semantic completion for C/C++/ObjC
Using external libclang: /Users/roryokane/ycm_temp/clang+llvm-3.2-x86_64-apple-darwin11/lib/libclang.dylib
-- Found PythonInterp: /usr/local/bin/python (found version "2.7.3")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/roryokane/ycm_build
$ make ycm_core
Scanning dependencies of target BoostParts
[ 0%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/date_time/src/gregorian/date_generators.cpp.o
[ 1%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/date_time/src/gregorian/greg_month.cpp.o
[ 2%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/date_time/src/gregorian/greg_weekday.cpp.o
[ 2%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/date_time/src/gregorian/gregorian_types.cpp.o
[ 3%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/date_time/src/posix_time/posix_time_types.cpp.o
[ 4%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/exception/src/clone_current_exception_non_intrusive.cpp.o
[ 5%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/codecvt_error_category.cpp.o
[ 5%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/operations.cpp.o
[ 6%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/path.cpp.o
[ 7%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/path_traits.cpp.o
[ 8%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/portability.cpp.o
[ 8%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/unique_path.cpp.o
[ 10%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/utf8_codecvt_facet.cpp.o
[ 11%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/windows_file_codecvt.cpp.o
[ 12%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/converter/arg_to_python_base.cpp.o
In file included from /Library/Frameworks/Python.framework/Headers/Python.h:57,
from /Users/roryokane/.vim/bundle/YouCompleteMe/cpp/BoostParts/boost/python/detail/wrap_python.hpp:142,
from /Users/roryokane/.vim/bundle/YouCompleteMe/cpp/BoostParts/boost/python/detail/prefix.hpp:13,
from /Users/roryokane/.vim/bundle/YouCompleteMe/cpp/BoostParts/boost/python/handle.hpp:8,
from /Users/roryokane/.vim/bundle/YouCompleteMe/cpp/BoostParts/boost/python/converter/arg_to_python_base.hpp:7,
from /Users/roryokane/.vim/bundle/YouCompleteMe/cpp/BoostParts/libs/python/src/converter/arg_to_python_base.cpp:6:
/Library/Frameworks/Python.framework/Headers/pyport.h:734:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
make[3]: *** [BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/converter/arg_to_python_base.cpp.o] Error 1
make[2]: *** [BoostParts/CMakeFiles/BoostParts.dir/all] Error 2
make[1]: *** [ycm/CMakeFiles/ycm_core.dir/rule] Error 2
make: *** [ycm_core] Error 2
$ make ycm_core
[ 1%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/converter/arg_to_python_base.cpp.o
In file included from /Library/Frameworks/Python.framework/Headers/Python.h:57,
from /Users/roryokane/.vim/bundle/YouCompleteMe/cpp/BoostParts/boost/python/detail/wrap_python.hpp:142,
from /Users/roryokane/.vim/bundle/YouCompleteMe/cpp/BoostParts/boost/python/detail/prefix.hpp:13,
from /Users/roryokane/.vim/bundle/YouCompleteMe/cpp/BoostParts/boost/python/handle.hpp:8,
from /Users/roryokane/.vim/bundle/YouCompleteMe/cpp/BoostParts/boost/python/converter/arg_to_python_base.hpp:7,
from /Users/roryokane/.vim/bundle/YouCompleteMe/cpp/BoostParts/libs/python/src/converter/arg_to_python_base.cpp:6:
/Library/Frameworks/Python.framework/Headers/pyport.h:734:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
make[3]: *** [BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/converter/arg_to_python_base.cpp.o] Error 1
make[2]: *** [BoostParts/CMakeFiles/BoostParts.dir/all] Error 2
make[1]: *** [ycm/CMakeFiles/ycm_core.dir/rule] Error 2
make: *** [ycm_core] Error 2
If I change the settings from compiling with semantic support for C-family languages to compiling without the support, I still get the error:
$ cmake -G "Unix Makefiles" . ~/.vim/bundle/YouCompleteMe/cpp
Your C++ compiler does NOT support C++11, compiling in C++03 mode.
Using libclang to provide semantic completion for C/C++/ObjC
Using external libclang: /Users/roryokane/ycm_temp/clang+llvm-3.2-x86_64-apple-darwin11/lib/libclang.dylib
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/roryokane/ycm_build
$ make ycm_core
[ 1%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/converter/arg_to_python_base.cpp.o
In file included from /Library/Frameworks/Python.framework/Headers/Python.h:57,
from /Users/roryokane/.vim/bundle/YouCompleteMe/cpp/BoostParts/boost/python/detail/wrap_python.hpp:142,
from /Users/roryokane/.vim/bundle/YouCompleteMe/cpp/BoostParts/boost/python/detail/prefix.hpp:13,
from /Users/roryokane/.vim/bundle/YouCompleteMe/cpp/BoostParts/boost/python/handle.hpp:8,
from /Users/roryokane/.vim/bundle/YouCompleteMe/cpp/BoostParts/boost/python/converter/arg_to_python_base.hpp:7,
from /Users/roryokane/.vim/bundle/YouCompleteMe/cpp/BoostParts/libs/python/src/converter/arg_to_python_base.cpp:6:
/Library/Frameworks/Python.framework/Headers/pyport.h:734:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
make[3]: *** [BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/converter/arg_to_python_base.cpp.o] Error 1
make[2]: *** [BoostParts/CMakeFiles/BoostParts.dir/all] Error 2
make[1]: *** [ycm/CMakeFiles/ycm_core.dir/rule] Error 2
make: *** [ycm_core] Error 2
I installed the plugin with Vundle, but when I follow the Mac OS X super-quick installation instructions, I eventually get an error at the step
make ycm_core.I’m on Mac OS X 10.6. I’m using the latest MacVim, Version 7.3 (53). Here’s the top of the output of
:versionin MacVim:My
gccversion is “i686-apple-darwin10-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)”.Here is the full trace of my installation (with blank lines added between commands). I installed cmake earlier with
brew install cmake. In the middle, when thecpfailed, that’s because I hadn’t installed the Vim bundle properly; when it worked the second time I ran it, I had run:BundleInstallin MacVim.If I change the settings from compiling with semantic support for C-family languages to compiling without the support, I still get the error: