ycm-core / YouCompleteMe

A code-completion engine for Vim

Home Page:http://ycm-core.github.io/YouCompleteMe/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ycm compile failed, please help me.

ranxuefeng2022 opened this issue · comments

ranxuefeng@ubuntu:~/.vim/plugged/YouCompleteMe$ python3 install.py --all
Generating ycmd build configuration...-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- 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
-- Detecting C compile features
-- Detecting C compile features - done
-- 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
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Python3: /usr/bin/python3 (found suitable version "3.8.10", minimum required is "3.6") found components: Interpreter Development
CMake Error at /usr/share/cmake-3.16/Modules/ExternalProject.cmake:1706 (file):
file problem creating directory:
/home/ranxuefeng/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/absl
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/ExternalProject.cmake:3188 (_ep_set_directories)
CMakeLists.txt:13 (ExternalProject_Add)

CMake Error at /usr/share/cmake-3.16/Modules/ExternalProject.cmake:1708 (message):
dir '/home/ranxuefeng/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/absl'
does not exist after file(MAKE_DIRECTORY)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/ExternalProject.cmake:3188 (_ep_set_directories)
CMakeLists.txt:13 (ExternalProject_Add)

-- Configuring incomplete, errors occurred!
See also "/tmp/ycm_build_emi1882h/_deps/absl-subbuild/CMakeFiles/CMakeOutput.log".

CMake Error at /usr/share/cmake-3.16/Modules/FetchContent.cmake:903 (message):
CMake step for absl failed: 1
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FetchContent.cmake:1006 (__FetchContent_directPopulate)
/usr/share/cmake-3.16/Modules/FetchContent.cmake:1047 (FetchContent_Populate)
CMakeLists.txt:251 (FetchContent_MakeAvailable)

-- Configuring incomplete, errors occurred!
See also "/tmp/ycm_build_emi1882h/CMakeFiles/CMakeOutput.log".

FAILED

ERROR: the build failed.

NOTE: it is highly unlikely that this is a bug but rather that this is a problem with the configuration of your system or a missing dependency. Please carefully read CONTRIBUTING.md and if you're sure that it is a bug, please raise an issue on the issue tracker, including the entire output of this script (with --verbose) and the invocation line used to run it.

The installation failed; please see above for the actual error. In order to get more information, please re-run the command, adding the --verbose flag. If you think this is a bug and you raise an issue, you MUST include the full verbose output.

For example, run:/usr/bin/python3 /home/ranxuefeng/.vim/plugged/YouCompleteMe/third_party/ycmd/build.py --all --verbose

Seems like cmake was not able to create /home/ranxuefeng/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/absl.
I have never seen that before.
Are you able to manually create that directory?

Seems like cmake was not able to create /home/ranxuefeng/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/absl. I have never seen that before. Are you able to manually create that directory?
---yes,I can make that dir by using 'sudo mkdir -p /home/ranxuefeng/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/absl'

Don’t use sudo.