ycm-core / YouCompleteMe

A code-completion engine for Vim
http://ycm-core.github.io/YouCompleteMe/
GNU General Public License v3.0
25.48k stars 2.81k forks source link

YCM build fails with "File format not recognized" #3098

Closed sdfgsdfgd closed 6 years ago

sdfgsdfgd commented 6 years ago

Fresh install of YCM with my plugin manager. Then, after running python install.py --clang-completer

I get this: ... [100%] Linking CXX shared library /path/to/.vim/plugins/YouCompleteMe/third_party/ycmd/ycm_core.so /tmp/ycm_build_we36khk2/lib/libclang.so.6.0: file not recognized: File format not recognized c++: error: linker command failed with exit code 1 (use -v to see invocation) Error 1 in . (ycm/CMakeFiles/ycm_core.dir/build.make:696 '/path/to/.vim/plugins/YouCompleteMe/third_party/ycmd/ycm_core.so') Error 2 in . (CMakeFiles/Makefile2:141 'ycm/CMakeFiles/ycm_core.dir/all') Error 2 in . (CMakeFiles/Makefile2:141 'ycm/CMakeFiles/ycm_core.dir/rule') Error 2 in /mp/ycm_build_we36khk2 (Makefile:131 'ycm_core')

This is on OBSD6.3 .

bstaletic commented 6 years ago

It looks like the libclang that was downloaded doesn't fit your OS. If your package manager provides a package containing liblang install that and use python install.py --clang-completer --system-libclang.

puremourning commented 6 years ago

Please complete the issue template. See CONTRIBUTING.md.