Youcompleteme: cregex

Created on 31 Aug 2019  ·  14Comments  ·  Source: ycm-core/YouCompleteMe

[100%] Linking CXX shared library /home/sam/.vim/bundle/YouCompleteMe/third_party/ycmd/ycm_core.so
[100%] Built target ycm_core
CMake Error: The source directory "/home/sam/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/cregex" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
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
and the invocation line used to run it.

Most helpful comment

Just had the same issue..
Just wanted to say thanks @bstaletic

What I did was, in youcompleteme directory, git submodule sync --recursive and git submodule update --init --recursive

All 14 comments

git submodule update --init --recursive

--recursive is important.

cannot download cregex,cregex directory is empty

You forgot --init.

sam@dell1400:~/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party$ git submodule update --init --recursive
正克隆到 '/home/sam/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/go/src/golang.org/x/tools'...
fatal: unable to access 'https://go.googlesource.com/tools/': Failed to connect to go.googlesource.com port 443: 连接超时
fatal: 无法克隆 'https://go.googlesource.com/tools' 到子模组路径 '/home/sam/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/go/src/golang.org/x/tools'
克隆 'third_party/go/src/golang.org/x/tools' 失败。按计划重试
正克隆到 '/home/sam/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/go/src/golang.org/x/tools'...
fatal: unable to access 'https://go.googlesource.com/tools/': Failed to connect to go.googlesource.com port 443: 连接超时
fatal: 无法克隆 'https://go.googlesource.com/tools' 到子模组路径 '/home/sam/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/go/src/golang.org/x/tools'
第二次尝试克隆 'third_party/go/src/golang.org/x/tools' 失败,退出
sam@dell1400:~/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party$

golang dowload fail and cregex module download fail,i download it by manual and recompile success.

[100%] Linking CXX shared library /home/sam/.vim/bundle/YouCompleteMe/third_party/ycmd/ycm_core.so
[100%] Built target ycm_core
-- The C compiler identification is Clang 6.0.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
-- Found PythonLibs: /usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/libpython3.6.so (found version "3.6.8")
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/regex_build_u5w8g2w5
Scanning dependencies of target _regex
[ 66%] Building C object CMakeFiles/_regex.dir/regex_3/_regex.c.o
[ 66%] Building C object CMakeFiles/_regex.dir/regex_3/_regex_unicode.c.o
[100%] Linking C shared library /home/sam/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.so
[100%] Built target _regex
sam@dell1400:~/.vim/bundle/YouCompleteMe$

this is issue clear,but some one submodule download fail,other submodule stop download,maybe this is git issue.

Update YCM. We're not targeting go.googlesource.com any more.

Probably the great firewall,.

i new clone this repo.
i try use Vundle plugin manger download it,but fail then i clone it by manual.

i search my local YouCompleteMe directory:
grep -i -n -r "googlesource" .

output this:
./third_party/ycmd/cpp/BoostParts/libs/filesystem/src/operations.cpp:28:// - https://android.googlesource.com/platform/bionic/+/a34817457feee026e8702a1d2dffe9e92b51d7d1/docs/32-bit-abi.md#32_bit-abi-bugs
./third_party/ycmd/cpp/BoostParts/boost/core/demangle.hpp:34:// (https://android.googlesource.com/platform/ndk/+/master/sources/cxx-stl/gabi++/), which does not implement
./.git/modules/third_party/ycmd/config:24: url = https://go.googlesource.com/tools

  • Do this
  • git submodule sync
  • git submodule update --init --recursive

i in china,great firewall filter googlesource link
i comment .gitmodules about go configuration and remove cregex directory.
git submodule update --init --recursive and recompile success.
it work!

after i run the following command

git submodule sync
git submodule update --init --recursive

it show me the error information

error: Server does not allow request for unadvertised object cc538bb6d0fcf0a6411537a5522d13cc9b86789d
Fetched in submodule path 'third_party/cregex', but it did not contain cc538bb6d0fcf0a6411537a5522d13cc9b86789d. Direct fetching of that commit failed.

it looks like that the git repository

https://github.com/ycm-core/regex.git

has not a commit id cc538bb6d0fcf0a6411537a5522d13cc9b86789d

Need to run git submodule sync —recursive

Just had the same issue..
Just wanted to say thanks @bstaletic

What I did was, in youcompleteme directory, git submodule sync --recursive and git submodule update --init --recursive

  • Do this
  • git submodule sync
  • git submodule update --init --recursive

is right

  • Do this
  • git submodule sync
  • git submodule update --init --recursive

is right
Thanks @jiapengwen - * FINALLY * someone aced it and in a nice, minimalist fashion ;-)
Cheers

Was this page helpful?
0 / 5 - 0 ratings