ycm-core / YouCompleteMe

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

Cannot Install - Errors with C++ Compilation #3934

Closed bgenchel closed 3 years ago

bgenchel commented 3 years ago

Issue Prelude

Please complete these steps and check these boxes (by putting an x inside the brackets) before filing your issue:

Thank you for adhering to this process! It ensures your issue is resolved quickly and that neither your nor our time is needlessly wasted.

Issue Details

Provide a clear description of the problem, including the following key questions:

I have been using YouCompleteMe for years, and recently noticed that autocomplete for Python wasn't working. I saw in the logs that there was an error along the lines of "Python version None is not Supported." I would post a full trace here, but unfortunately I am now past this point and unable to reconstruct the error without a ton of effort and backtracking.

I dug down for a while and found that the Jedi version in my YCM third_party directory didn't have the grammar file for Python3.9. I assumed this meant it hadn't been updated in a while, because the github repo for parso, which Jedi uses, does contain this file ("grammar39.txt").

So, in order to fix this issue, I tried uninstalling and reinstalling YCM with VimPlug, by removing it from my .vimrc, running :PlugClean, then adding it back and running :PlugInstall.

After doing this, I went to my YCM directory and tried to run the install process only to run into this error:

CMake Error at CMakeLists.txt:232 (message): Your C++ compiler does NOT fully support C++17. I attempted to install and use gcc-8, and then gcc-10, and while in both cases, I was able to make it past the above error, I am now getting the following error:

building '_watchdog_fsevents' extension creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/3 creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/3/temp.macosx-10.14-x86_64-3.9 creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/3/temp.macosx-10.14-x86_64-3.9/src gcc-10 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -DWATCHDOG_VERSION_STRING="2.0.1" -DWATCHDOG_VERSION_MAJOR=2 -DWATCHDOG_VERSION_MINOR=0 -DWATCHDOG_VERSION_BUILD=1 -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/watchdog_fsevents.c -o /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/3/temp.macosx-10.14-x86_64-3.9/src/watchdog_fsevents.o -std=c99 -pedantic -Wall -Wextra -fPIC -Wno-nullability-completeness -Wno-nullability-extension -Wno-newline-eof -Wno-error=unused-command-line-argument cc1: error: '-Wno-error=unused-command-line-argument': no option '-Wunused-command-line-argument'; did you mean '-Wunused-dummy-argument'? cc1: note: unrecognized command-line option '-Wno-newline-eof' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-nullability-extension' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-nullability-completeness' may have been intended to silence earlier diagnostics error: command '/usr/local/bin/gcc-10' failed with exit code 1 Failed to build watchdog module. I am totally stuck. I've been at this for hours, and really don't know what to do from here, or why the YCM instructions aren't straightforward in telling you what versions you need to get it to work.

I am on a Macbook running Mojave 10.14.6, using Vim8.2

Include steps to reproduce here.

Install YCM with VIMPlug Have Python3.9 as your python version Have gcc-8 or gcc-10 as your c compiler. Use Vim 8.2 Try to install YCM

Include description of a minimal test case, including any actual code required to reproduce the issue.

See above

If you made changes to vimrc_ycm_minimal, pase them here:

N/A

<contents of ycm_vimrc_minimal>

That it would work and I would be able to use YCM successfully.

Include description of the expected behaviour.

See above.

Ran into continual failures, the one described here being the place I was finally stuck.

Include description of the observed behaviour, including actual output, screenshots, etc.

Diagnostic data

Output of vim --version

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Dec 28 2020 12:46:52)
macOS version
Included patches: 1-2164
Compiled by Homebrew
Huge version with MacVim GUI.  Features included (+) or not (-):
+acl               +file_in_path      -mouse_sysmouse    -tag_old_static
+arabic            +find_in_path      +mouse_urxvt       -tag_any_white
+autocmd           +float             +mouse_xterm       +tcl
+autochdir         +folding           +multi_byte        +termguicolors
-autoservername    -footer            +multi_lang        +terminal
+balloon_eval      +fork()            -mzscheme          +terminfo
+balloon_eval_term +fullscreen        +netbeans_intg     +termresponse
+browse            +gettext           +num64             +textobjects
++builtin_terms    -hangul_input      +odbeditor         +textprop
+byte_offset       +iconv             +packages          +timers
+channel           +insert_expand     +path_extra        +title
+cindent           +ipv6              +perl              +toolbar
+clientserver      +job               +persistent_undo   +transparency
+clipboard         +jumplist          +popupwin          +user_commands
+cmdline_compl     +keymap            +postscript        +vartabs
+cmdline_hist      +lambda            +printer           +vertsplit
+cmdline_info      +langmap           +profile           +virtualedit
+comments          +libcall           -python            +visual
+conceal           +linebreak         +python3           +visualextra
+cryptv            +lispindent        +quickfix          +viminfo
+cscope            +listcmds          +reltime           +vreplace
+cursorbind        +localmap          +rightleft         +wildignore
+cursorshape       +lua               +ruby              +wildmenu
+dialog_con_gui    +menu              +scrollbind        +windows
+diff              +mksession         +signs             +writebackup
+digraphs          +modify_fname      +smartindent       -X11
+dnd               +mouse             -sound             -xfontset
-ebcdic            +mouseshape        +spell             +xim
+emacs_tags        +mouse_dec         +startuptime       -xpm
+eval              -mouse_gpm         +statusline        -xsmp
+ex_extra          -mouse_jsbterm     -sun_workshop      -xterm_clipboard
+extra_search      +mouse_netterm     +syntax            -xterm_save
-farsi             +mouse_sgr         +tag_binary
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/Applications/MacVim.app/Contents/Resources/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe  -DMACOS_X -DMACOS_X_DARWIN  -fdeclspec -arch x86_64 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: clang   -L. -fstack-protector-strong -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/readline/lib -L. -fstack-protector-strong -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/readline/lib  -arch x86_64 -L/usr/local/lib -o Vim        -lm  -lncurses -liconv /usr/local/lib/libintl.a -framework AppKit  -L/usr/local/opt/lua/lib -llua5.4 -fstack-protector  -L/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE -lperl  -L/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/config-3.9-darwin -lpython3.9 -framework CoreFoundation -F/System/Library/Frameworks -framework Tcl -framework CoreFoundation -lruby.3.0  -L/usr/local/Cellar/ruby/3.0.0/lib

Output of YcmDebugInfo

I can no longer provide this as YCM is totally broken now.

Output of YcmDiags

I can no longer provide this as YCM is totally broken now.

Output of git rev-parse HEAD in YouCompleteMe installation directory

518275b599ab6dd7844c24022f6aec505fb4b07c

Contents of YCM, ycmd and completion engine logfiles

Reproduce the issue with vim -Nu /path/to/YCM/vimrc_ycm_minimal, which enabled debug logging and other useful diagnostics. Include a link to a [gist][] containing all of the log files listed by :YcmToggleLogs.

OS version, distribution, etc.

MacOSX 10.14.6 (18G9028)

Include system information here.


-- The C compiler identification is AppleClang 10.0.1.10010046
-- The CXX compiler identification is AppleClang 10.0.1.10010046
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring incomplete, errors occurred!
See also "/private/var/folders/yg/qsrk_fqn17z6f8h31fcz84h9syz729/T/ycm_build_pduh89_1/CMakeFiles/CMakeOutput.log".
Searching Python 3.9 libraries...
Found Python library: /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/config-3.9-darwin/libpython3.9.dylib
Found Python headers folder: /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9
-- The C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- 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
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/local/bin/gcc-10 - skipped
-- Detecting C compile features
-- Detecting C compile features - 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
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/local/bin/g++-10 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Python3: /usr/local/opt/python@3.9/bin/python3.9 (found suitable version "3.9.6", required range is "3.6...3.10") found components: Interpreter Development Development.Module Development.Embed 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Using libclang archive: /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/../clang_archives/libclang-12.0.0-x86_64-apple-darwin.tar.bz2
-- Using libclang to provide semantic completion for C/C++/ObjC
-- Using external libclang: /private/var/folders/yg/qsrk_fqn17z6f8h31fcz84h9syz729/T/ycm_build_5qmrt7i3/lib/libclang.dylib
-- Using Abseil hash tables
-- NOT using clang-tidy for static analysis.
-- Configuring done
-- Generating done
-- Build files have been written to: /private/var/folders/yg/qsrk_fqn17z6f8h31fcz84h9syz729/T/ycm_build_5qmrt7i3
[  0%] Building CXX object absl/absl/base/CMakeFiles/absl_exponential_biased.dir/internal/exponential_biased.cc.o
[  0%] Building CXX object absl/absl/base/CMakeFiles/absl_spinlock_wait.dir/internal/spinlock_wait.cc.o
[  1%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_fixed.cc.o
[  3%] Building CXX object absl/absl/base/CMakeFiles/absl_log_severity.dir/log_severity.cc.o
[  3%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_format.cc.o
[  3%] Building CXX object absl/absl/numeric/CMakeFiles/absl_int128.dir/int128.cc.o
[  4%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_if.cc.o
[  4%] Building CXX object absl/absl/time/CMakeFiles/absl_civil_time.dir/internal/cctz/src/civil_time_detail.cc.o
[  6%] Linking CXX static library libabsl_spinlock_wait.a
[  6%] Built target absl_spinlock_wait
[  8%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_impl.cc.o
[  8%] Linking CXX static library libabsl_log_severity.a
[  8%] Built target absl_log_severity
[  9%] Linking CXX static library libabsl_exponential_biased.a
[  9%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_info.cc.o
[  9%] Built target absl_exponential_biased
[ 11%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_libc.cc.o
[ 11%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_lookup.cc.o
[ 13%] Linking CXX static library libabsl_civil_time.a
[ 13%] Built target absl_civil_time
[ 14%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_posix.cc.o
[ 14%] Building CXX object absl/absl/base/CMakeFiles/absl_raw_logging_internal.dir/internal/raw_logging.cc.o
[ 16%] Linking CXX static library libabsl_int128.a
[ 16%] Built target absl_int128
[ 16%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/zone_info_source.cc.o
[ 18%] Linking CXX static library libabsl_raw_logging_internal.a
[ 18%] Built target absl_raw_logging_internal
[ 18%] Building CXX object absl/absl/types/CMakeFiles/absl_bad_variant_access.dir/bad_variant_access.cc.o
[ 18%] Building CXX object absl/absl/base/CMakeFiles/absl_base.dir/internal/cycleclock.cc.o
[ 19%] Building CXX object absl/absl/base/CMakeFiles/absl_throw_delegate.dir/internal/throw_delegate.cc.o
[ 19%] Building CXX object absl/absl/types/CMakeFiles/absl_bad_optional_access.dir/bad_optional_access.cc.o
[ 19%] Building CXX object absl/absl/debugging/CMakeFiles/absl_debugging_internal.dir/internal/address_is_readable.cc.o
[ 21%] Building CXX object absl/absl/base/CMakeFiles/absl_base.dir/internal/spinlock.cc.o
[ 22%] Building CXX object absl/absl/debugging/CMakeFiles/absl_debugging_internal.dir/internal/elf_mem_image.cc.o
[ 22%] Building CXX object absl/absl/debugging/CMakeFiles/absl_debugging_internal.dir/internal/vdso_support.cc.o
[ 22%] Building CXX object absl/absl/base/CMakeFiles/absl_base.dir/internal/sysinfo.cc.o
[ 24%] Building CXX object absl/absl/base/CMakeFiles/absl_base.dir/internal/thread_identity.cc.o
[ 26%] Linking CXX static library libabsl_bad_variant_access.a
[ 27%] Linking CXX static library libabsl_bad_optional_access.a
[ 29%] Linking CXX static library libabsl_debugging_internal.a
[ 29%] Built target absl_bad_variant_access
[ 29%] Building CXX object absl/absl/base/CMakeFiles/absl_base.dir/internal/unscaledcycleclock.cc.o
[ 29%] Built target absl_bad_optional_access
[ 29%] Built target absl_debugging_internal
[ 29%] Building CXX object absl/absl/debugging/CMakeFiles/absl_stacktrace.dir/stacktrace.cc.o
[ 31%] Linking CXX static library libabsl_stacktrace.a
[ 31%] Built target absl_stacktrace
[ 31%] Linking CXX static library libabsl_throw_delegate.a
[ 31%] Built target absl_throw_delegate
[ 32%] Linking CXX static library libabsl_base.a
[ 34%] Linking CXX static library libabsl_time_zone.a
[ 34%] Built target absl_base
[ 36%] Building CXX object absl/absl/base/CMakeFiles/absl_malloc_internal.dir/internal/low_level_alloc.cc.o
[ 36%] Building CXX object absl/absl/debugging/CMakeFiles/absl_demangle_internal.dir/internal/demangle.cc.o
[ 37%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings_internal.dir/internal/ostringstream.cc.o
[ 37%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings_internal.dir/internal/utf8.cc.o
[ 37%] Building CXX object absl/absl/hash/CMakeFiles/absl_wyhash.dir/internal/wyhash.cc.o
[ 37%] Built target absl_time_zone
[ 37%] Building CXX object absl/absl/hash/CMakeFiles/absl_city.dir/internal/city.cc.o
[ 39%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings_internal.dir/internal/escaping.cc.o
[ 40%] Linking CXX static library libabsl_wyhash.a
[ 40%] Built target absl_wyhash
[ 42%] Linking CXX static library libabsl_city.a
[ 42%] Built target absl_city
[ 42%] Linking CXX static library libabsl_strings_internal.a
[ 42%] Built target absl_strings_internal
[ 42%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/ascii.cc.o
[ 44%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/charconv.cc.o
[ 44%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/escaping.cc.o
[ 45%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/internal/charconv_bigint.cc.o
[ 45%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/internal/charconv_parse.cc.o
[ 47%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/internal/memutil.cc.o
[ 47%] Linking CXX static library libabsl_malloc_internal.a
[ 47%] Built target absl_malloc_internal
[ 49%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/match.cc.o
[ 50%] Linking CXX static library libabsl_demangle_internal.a
[ 50%] Built target absl_demangle_internal
[ 50%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/numbers.cc.o
[ 52%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/str_cat.cc.o
[ 54%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_graphcycles_internal.dir/internal/graphcycles.cc.o
[ 54%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/str_replace.cc.o
[ 55%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/str_split.cc.o
[ 55%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/string_view.cc.o
[ 57%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/substitute.cc.o
[ 57%] Linking CXX static library libabsl_graphcycles_internal.a
[ 57%] Built target absl_graphcycles_internal
[ 57%] Linking CXX static library libabsl_strings.a
[ 57%] Built target absl_strings
[ 59%] Building CXX object absl/absl/debugging/CMakeFiles/absl_symbolize.dir/symbolize.cc.o
[ 60%] Building CXX object absl/absl/time/CMakeFiles/absl_time.dir/civil_time.cc.o
[ 60%] Building CXX object absl/absl/time/CMakeFiles/absl_time.dir/clock.cc.o
[ 62%] Building CXX object absl/absl/hash/CMakeFiles/absl_hash.dir/internal/hash.cc.o
[ 62%] Building CXX object absl/absl/strings/CMakeFiles/absl_cord.dir/cord.cc.o
[ 63%] Building CXX object absl/absl/time/CMakeFiles/absl_time.dir/duration.cc.o
[ 65%] Building CXX object absl/absl/strings/CMakeFiles/absl_cord.dir/internal/cord_internal.cc.o
[ 65%] Building CXX object absl/absl/time/CMakeFiles/absl_time.dir/format.cc.o
[ 65%] Linking CXX static library libabsl_symbolize.a
[ 65%] Built target absl_symbolize
[ 65%] Building CXX object absl/absl/strings/CMakeFiles/absl_cord.dir/internal/cord_rep_ring.cc.o
[ 65%] Linking CXX static library libabsl_hash.a
[ 67%] Building CXX object absl/absl/time/CMakeFiles/absl_time.dir/time.cc.o
[ 67%] Built target absl_hash
[ 67%] Linking CXX static library libabsl_time.a
[ 67%] Built target absl_time
[ 68%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/barrier.cc.o
[ 68%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/blocking_counter.cc.o
[ 70%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/internal/create_thread_identity.cc.o
[ 70%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/internal/per_thread_sem.cc.o
[ 72%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/internal/waiter.cc.o
[ 72%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/notification.cc.o
[ 73%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/mutex.cc.o
[ 75%] Linking CXX static library libabsl_cord.a
[ 75%] Built target absl_cord
[ 75%] Linking CXX static library libabsl_synchronization.a
[ 75%] Built target absl_synchronization
[ 77%] Building CXX object absl/absl/container/CMakeFiles/absl_hashtablez_sampler.dir/internal/hashtablez_sampler.cc.o
[ 77%] Building CXX object absl/absl/container/CMakeFiles/absl_hashtablez_sampler.dir/internal/hashtablez_sampler_force_weak_definition.cc.o
[ 78%] Linking CXX static library libabsl_hashtablez_sampler.a
[ 78%] Built target absl_hashtablez_sampler
[ 78%] Building CXX object absl/absl/container/CMakeFiles/absl_raw_hash_set.dir/internal/raw_hash_set.cc.o
[ 80%] Linking CXX static library libabsl_raw_hash_set.a
[ 80%] Built target absl_raw_hash_set
[ 80%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Candidate.cpp.o
[ 81%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Character.cpp.o
[ 81%] Building CXX object ycm/CMakeFiles/ycm_core.dir/CodePoint.cpp.o
[ 83%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierCompleter.cpp.o
[ 83%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierDatabase.cpp.o
[ 85%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierUtils.cpp.o
[ 85%] Building CXX object ycm/CMakeFiles/ycm_core.dir/PythonSupport.cpp.o
[ 86%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Repository.cpp.o
[ 86%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Result.cpp.o
[ 88%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Utils.cpp.o
[ 88%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Word.cpp.o
[ 90%] Building CXX object ycm/CMakeFiles/ycm_core.dir/versioning.cpp.o
[ 90%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ycm_core.cpp.o
[ 91%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/ClangCompleter.cpp.o
[ 91%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/ClangHelpers.cpp.o
[ 93%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/ClangUtils.cpp.o
[ 93%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/CompilationDatabase.cpp.o
[ 95%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/CompletionData.cpp.o
[ 95%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/Documentation.cpp.o
[ 96%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/Range.cpp.o
[ 96%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/TranslationUnit.cpp.o
[ 98%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/TranslationUnitStore.cpp.o
[100%] Linking CXX shared library /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/ycm_core.cpython-39-darwin.so
[100%] Built target ycm_core
running build
running build_py
creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build
creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex
copying regex_3/__init__.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex
copying regex_3/regex.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex
copying regex_3/_regex_core.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex
copying regex_3/test_regex.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex
running build_ext
building 'regex._regex' extension
creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/3
creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-10.14-x86_64-3.9
creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-10.14-x86_64-3.9/regex_3
gcc-10 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c regex_3/_regex.c -o /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-10.14-x86_64-3.9/regex_3/_regex.o
gcc-10 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c regex_3/_regex_unicode.c -o /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-10.14-x86_64-3.9/regex_3/_regex_unicode.o
gcc-10 -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-10.14-x86_64-3.9/regex_3/_regex.o /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-10.14-x86_64-3.9/regex_3/_regex_unicode.o -L/usr/local/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/sqlite/lib -o /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex/_regex.cpython-39-darwin.so
running build
running build_py
creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3
creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog
copying src/watchdog/watchmedo.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog
copying src/watchdog/version.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog
copying src/watchdog/events.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog
copying src/watchdog/__init__.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog
creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
copying src/watchdog/utils/patterns.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
copying src/watchdog/utils/__init__.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
copying src/watchdog/utils/dirsnapshot.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
copying src/watchdog/utils/delayed_queue.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
copying src/watchdog/utils/platform.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
copying src/watchdog/utils/bricks.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
copying src/watchdog/utils/echo.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils
creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
copying src/watchdog/observers/fsevents.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
copying src/watchdog/observers/inotify.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
copying src/watchdog/observers/__init__.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
copying src/watchdog/observers/api.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
copying src/watchdog/observers/inotify_buffer.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
copying src/watchdog/observers/winapi.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
copying src/watchdog/observers/read_directory_changes.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
copying src/watchdog/observers/kqueue.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
copying src/watchdog/observers/inotify_c.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
copying src/watchdog/observers/polling.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
copying src/watchdog/observers/fsevents2.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers
creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/tricks
copying src/watchdog/tricks/__init__.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/tricks
running egg_info
writing src/watchdog.egg-info/PKG-INFO
writing dependency_links to src/watchdog.egg-info/dependency_links.txt
writing entry points to src/watchdog.egg-info/entry_points.txt
writing requirements to src/watchdog.egg-info/requires.txt
writing top-level names to src/watchdog.egg-info/top_level.txt
reading manifest file 'src/watchdog.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
adding license file 'COPYING'
adding license file 'AUTHORS'
writing manifest file 'src/watchdog.egg-info/SOURCES.txt'
running build_ext
building '_watchdog_fsevents' extension
creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/3
creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/3/temp.macosx-10.14-x86_64-3.9
creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/3/temp.macosx-10.14-x86_64-3.9/src
gcc-10 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -DWATCHDOG_VERSION_STRING="2.0.1" -DWATCHDOG_VERSION_MAJOR=2 -DWATCHDOG_VERSION_MINOR=0 -DWATCHDOG_VERSION_BUILD=1 -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/watchdog_fsevents.c -o /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/3/temp.macosx-10.14-x86_64-3.9/src/watchdog_fsevents.o -std=c99 -pedantic -Wall -Wextra -fPIC -Wno-nullability-completeness -Wno-nullability-extension -Wno-newline-eof -Wno-error=unused-command-line-argument
Searching Python 3.9 libraries...
Found Python library: /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/config-3.9-darwin/libpython3.9.dylib
Found Python headers folder: /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9
-- The C compiler identification is AppleClang 10.0.1.10010046
-- The CXX compiler identification is AppleClang 10.0.1.10010046
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:232 (message):
Your C++ compiler does NOT fully support C++17.

-- Configuring incomplete, errors occurred! See also "/private/var/folders/yg/qsrk_fqn17z6f8h31fcz84h9syz729/T/ycm_build_5llh8ht5/CMakeFiles/CMakeOutput.log". Searching Python 3.9 libraries... Found Python library: /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/config-3.9-darwin/libpython3.9.dylib Found Python headers folder: /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 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. -- The C compiler identification is GNU 10.3.0 -- The CXX compiler identification is GNU 10.3.0 -- 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 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/local/bin/gcc-10 - skipped -- Detecting C compile features -- Detecting C compile features - 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 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/local/bin/g++-10 - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Python3: /usr/local/opt/python@3.9/bin/python3.9 (found suitable version "3.9.6", required range is "3.6...3.10") found components: Interpreter Development Development.Module Development.Embed -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE
-- Using libclang archive: /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/../clang_archives/libclang-12.0.0-x86_64-apple-darwin.tar.bz2 -- Using libclang to provide semantic completion for C/C++/ObjC -- Using external libclang: /private/var/folders/yg/qsrk_fqn17z6f8h31fcz84h9syz729/T/ycm_build_f4vb7a6m/lib/libclang.dylib -- Using Abseil hash tables -- NOT using clang-tidy for static analysis. -- Configuring done -- Generating done -- Build files have been written to: /private/var/folders/yg/qsrk_fqn17z6f8h31fcz84h9syz729/T/ycm_build_f4vb7a6m [ 1%] Building CXX object absl/absl/base/CMakeFiles/absl_log_severity.dir/log_severity.cc.o [ 1%] Building CXX object absl/absl/base/CMakeFiles/absl_exponential_biased.dir/internal/exponential_biased.cc.o [ 1%] Building CXX object absl/absl/base/CMakeFiles/absl_spinlock_wait.dir/internal/spinlock_wait.cc.o [ 3%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_fixed.cc.o [ 3%] Building CXX object absl/absl/numeric/CMakeFiles/absl_int128.dir/int128.cc.o [ 3%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_format.cc.o [ 4%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_if.cc.o [ 4%] Building CXX object absl/absl/time/CMakeFiles/absl_civil_time.dir/internal/cctz/src/civil_time_detail.cc.o [ 6%] Linking CXX static library libabsl_spinlock_wait.a [ 6%] Built target absl_spinlock_wait [ 8%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_impl.cc.o [ 8%] Linking CXX static library libabsl_log_severity.a [ 8%] Built target absl_log_severity [ 8%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_info.cc.o [ 9%] Linking CXX static library libabsl_exponential_biased.a [ 9%] Built target absl_exponential_biased [ 11%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_libc.cc.o [ 13%] Linking CXX static library libabsl_civil_time.a [ 13%] Building CXX object absl/absl/base/CMakeFiles/absl_raw_logging_internal.dir/internal/raw_logging.cc.o [ 13%] Built target absl_civil_time [ 13%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_lookup.cc.o [ 14%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_posix.cc.o [ 16%] Linking CXX static library libabsl_int128.a [ 16%] Built target absl_int128 [ 16%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/zone_info_source.cc.o [ 18%] Linking CXX static library libabsl_raw_logging_internal.a [ 18%] Built target absl_raw_logging_internal [ 18%] Building CXX object absl/absl/types/CMakeFiles/absl_bad_variant_access.dir/bad_variant_access.cc.o [ 18%] Building CXX object absl/absl/base/CMakeFiles/absl_base.dir/internal/cycleclock.cc.o [ 19%] Building CXX object absl/absl/base/CMakeFiles/absl_base.dir/internal/spinlock.cc.o [ 21%] Building CXX object absl/absl/base/CMakeFiles/absl_throw_delegate.dir/internal/throw_delegate.cc.o [ 21%] Building CXX object absl/absl/types/CMakeFiles/absl_bad_optional_access.dir/bad_optional_access.cc.o [ 21%] Building CXX object absl/absl/debugging/CMakeFiles/absl_debugging_internal.dir/internal/address_is_readable.cc.o [ 22%] Building CXX object absl/absl/debugging/CMakeFiles/absl_debugging_internal.dir/internal/elf_mem_image.cc.o [ 24%] Linking CXX static library libabsl_bad_variant_access.a [ 24%] Building CXX object absl/absl/debugging/CMakeFiles/absl_debugging_internal.dir/internal/vdso_support.cc.o /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libabsl_bad_variant_access.a(bad_variant_access.cc.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libabsl_bad_variant_access.a(bad_variant_access.cc.o) has no symbols warning: /Library/Developer/CommandLineTools/usr/bin/ranlib: warning for library: libabsl_bad_variant_access.a the table of contents is empty (no object file members in the library define global symbols) [ 24%] Building CXX object absl/absl/base/CMakeFiles/absl_base.dir/internal/sysinfo.cc.o [ 24%] Built target absl_bad_variant_access [ 26%] Building CXX object absl/absl/base/CMakeFiles/absl_base.dir/internal/thread_identity.cc.o [ 26%] Building CXX object absl/absl/base/CMakeFiles/absl_base.dir/internal/unscaledcycleclock.cc.o [ 27%] Linking CXX static library libabsl_bad_optional_access.a [ 29%] Linking CXX static library libabsl_debugging_internal.a /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libabsl_bad_optional_access.a(bad_optional_access.cc.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libabsl_bad_optional_access.a(bad_optional_access.cc.o) has no symbols warning: /Library/Developer/CommandLineTools/usr/bin/ranlib: warning for library: libabsl_bad_optional_access.a the table of contents is empty (no object file members in the library define global symbols) /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libabsl_debugging_internal.a(elf_mem_image.cc.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libabsl_debugging_internal.a(vdso_support.cc.o) has no symbols [ 29%] Built target absl_bad_optional_access /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libabsl_debugging_internal.a(elf_mem_image.cc.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libabsl_debugging_internal.a(vdso_support.cc.o) has no symbols [ 29%] Built target absl_debugging_internal [ 29%] Building CXX object absl/absl/debugging/CMakeFiles/absl_stacktrace.dir/stacktrace.cc.o [ 31%] Linking CXX static library libabsl_stacktrace.a [ 31%] Linking CXX static library libabsl_throw_delegate.a [ 31%] Built target absl_stacktrace [ 31%] Built target absl_throw_delegate [ 32%] Linking CXX static library libabsl_base.a [ 34%] Linking CXX static library libabsl_time_zone.a [ 34%] Built target absl_base [ 36%] Building CXX object absl/absl/base/CMakeFiles/absl_malloc_internal.dir/internal/low_level_alloc.cc.o [ 36%] Building CXX object absl/absl/debugging/CMakeFiles/absl_demangle_internal.dir/internal/demangle.cc.o [ 37%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings_internal.dir/internal/ostringstream.cc.o [ 37%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings_internal.dir/internal/utf8.cc.o [ 37%] Building CXX object absl/absl/hash/CMakeFiles/absl_city.dir/internal/city.cc.o [ 39%] Building CXX object absl/absl/hash/CMakeFiles/absl_wyhash.dir/internal/wyhash.cc.o [ 39%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings_internal.dir/internal/escaping.cc.o [ 39%] Built target absl_time_zone [ 40%] Linking CXX static library libabsl_wyhash.a [ 40%] Built target absl_wyhash [ 42%] Linking CXX static library libabsl_city.a [ 42%] Built target absl_city [ 42%] Linking CXX static library libabsl_strings_internal.a [ 42%] Linking CXX static library libabsl_malloc_internal.a [ 42%] Built target absl_strings_internal [ 42%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/ascii.cc.o [ 44%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/charconv.cc.o [ 44%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/escaping.cc.o [ 45%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/internal/charconv_bigint.cc.o [ 45%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/internal/charconv_parse.cc.o [ 47%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/internal/memutil.cc.o [ 47%] Built target absl_malloc_internal [ 49%] Linking CXX static library libabsl_demangle_internal.a [ 50%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_graphcycles_internal.dir/internal/graphcycles.cc.o [ 50%] Built target absl_demangle_internal [ 52%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/match.cc.o [ 52%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/numbers.cc.o [ 54%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/str_cat.cc.o [ 54%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/str_replace.cc.o [ 55%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/str_split.cc.o [ 55%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/string_view.cc.o [ 55%] Linking CXX static library libabsl_graphcycles_internal.a [ 55%] Built target absl_graphcycles_internal [ 57%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/substitute.cc.o [ 57%] Linking CXX static library libabsl_strings.a /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libabsl_strings.a(string_view.cc.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libabsl_strings.a(string_view.cc.o) has no symbols [ 57%] Built target absl_strings [ 59%] Building CXX object absl/absl/debugging/CMakeFiles/absl_symbolize.dir/symbolize.cc.o [ 60%] Building CXX object absl/absl/time/CMakeFiles/absl_time.dir/civil_time.cc.o [ 62%] Building CXX object absl/absl/hash/CMakeFiles/absl_hash.dir/internal/hash.cc.o [ 62%] Building CXX object absl/absl/time/CMakeFiles/absl_time.dir/clock.cc.o [ 62%] Building CXX object absl/absl/strings/CMakeFiles/absl_cord.dir/cord.cc.o [ 63%] Building CXX object absl/absl/time/CMakeFiles/absl_time.dir/duration.cc.o [ 65%] Building CXX object absl/absl/strings/CMakeFiles/absl_cord.dir/internal/cord_internal.cc.o [ 65%] Building CXX object absl/absl/strings/CMakeFiles/absl_cord.dir/internal/cord_rep_ring.cc.o [ 65%] Linking CXX static library libabsl_symbolize.a [ 65%] Built target absl_symbolize [ 65%] Building CXX object absl/absl/time/CMakeFiles/absl_time.dir/format.cc.o [ 67%] Building CXX object absl/absl/time/CMakeFiles/absl_time.dir/time.cc.o [ 67%] Linking CXX static library libabsl_hash.a [ 67%] Built target absl_hash [ 67%] Linking CXX static library libabsl_time.a [ 67%] Built target absl_time [ 68%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/barrier.cc.o [ 68%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/blocking_counter.cc.o [ 70%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/internal/create_thread_identity.cc.o [ 70%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/internal/per_thread_sem.cc.o [ 72%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/internal/waiter.cc.o [ 72%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/notification.cc.o [ 73%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/mutex.cc.o [ 75%] Linking CXX static library libabsl_cord.a [ 75%] Built target absl_cord [ 75%] Linking CXX static library libabsl_synchronization.a [ 75%] Built target absl_synchronization [ 77%] Building CXX object absl/absl/container/CMakeFiles/absl_hashtablez_sampler.dir/internal/hashtablez_sampler.cc.o [ 77%] Building CXX object absl/absl/container/CMakeFiles/absl_hashtablez_sampler.dir/internal/hashtablez_sampler_force_weak_definition.cc.o [ 78%] Linking CXX static library libabsl_hashtablez_sampler.a [ 78%] Built target absl_hashtablez_sampler [ 78%] Building CXX object absl/absl/container/CMakeFiles/absl_raw_hash_set.dir/internal/raw_hash_set.cc.o [ 80%] Linking CXX static library libabsl_raw_hash_set.a [ 80%] Built target absl_raw_hash_set [ 80%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Candidate.cpp.o [ 81%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Character.cpp.o [ 81%] Building CXX object ycm/CMakeFiles/ycm_core.dir/CodePoint.cpp.o [ 83%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierCompleter.cpp.o [ 83%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierDatabase.cpp.o [ 85%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierUtils.cpp.o [ 85%] Building CXX object ycm/CMakeFiles/ycm_core.dir/PythonSupport.cpp.o [ 86%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Repository.cpp.o [ 86%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Result.cpp.o [ 88%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Utils.cpp.o [ 88%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Word.cpp.o [ 90%] Building CXX object ycm/CMakeFiles/ycm_core.dir/versioning.cpp.o [ 90%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ycm_core.cpp.o [ 91%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/ClangCompleter.cpp.o [ 91%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/ClangHelpers.cpp.o [ 93%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/ClangUtils.cpp.o [ 93%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/CompilationDatabase.cpp.o [ 95%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/CompletionData.cpp.o [ 95%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/Documentation.cpp.o [ 96%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/Range.cpp.o [ 96%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/TranslationUnit.cpp.o [ 98%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/TranslationUnitStore.cpp.o [100%] Linking CXX shared library /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/ycm_core.cpython-39-darwin.so [100%] Built target ycm_core running build running build_py creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex copying regex_3/init.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex copying regex_3/regex.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex copying regex_3/_regex_core.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex copying regex_3/test_regex.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex running build_ext building 'regex._regex' extension creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/3 creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-10.14-x86_64-3.9 creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-10.14-x86_64-3.9/regex_3 gcc-10 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c regex_3/_regex.c -o /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-10.14-x86_64-3.9/regex_3/_regex.o interrupted Searching Python 3.9 libraries... Found Python library: /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/config-3.9-darwin/libpython3.9.dylib Found Python headers folder: /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 Traceback (most recent call last): File "/Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/build.py", line 1185, in Main() File "/Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/build.py", line 1167, in Main DoCmakeBuilds( args ) File "/Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/build.py", line 1153, in DoCmakeBuilds BuildRegexModule( args ) File "/Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/build.py", line 663, in BuildRegexModule CheckCall( [ sys.executable, File "/Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/build.py", line 225, in CheckCall _CheckCall( args, kwargs ) File "/Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/build.py", line 244, in _CheckCall subprocess.check_call( args, kwargs ) File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 368, in check_call retcode = call(popenargs, kwargs) File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 351, in call return p.wait(timeout=timeout) File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1189, in wait return self._wait(timeout=timeout) File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1917, in _wait (pid, sts) = self._try_wait(0) File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1875, in _try_wait (pid, sts) = os.waitpid(self.pid, wait_flags) KeyboardInterrupt Traceback (most recent call last): File "/Users/genche/.vim/plugged/YouCompleteMe/install.py", line 50, in Main() File "/Users/genche/.vim/plugged/YouCompleteMe/install.py", line 38, in Main CheckCall( [ sys.executable, build_file ] + sys.argv[ 1: ] ) File "/Users/genche/.vim/plugged/YouCompleteMe/install.py", line 25, in CheckCall subprocess.check_call( args, kwargs ) File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 368, in check_call retcode = call(popenargs, **kwargs) File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 351, in call return p.wait(timeout=timeout) File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1189, in wait return self._wait(timeout=timeout) File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1917, in _wait (pid, sts) = self._try_wait(0) File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1875, in _try_wait (pid, sts) = os.waitpid(self.pid, wait_flags) KeyboardInterrupt -- The C compiler identification is GNU 10.3.0 -- The CXX compiler identification is GNU 10.3.0 -- 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 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/local/bin/gcc-10 - skipped -- Detecting C compile features -- Detecting C compile features - 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 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/local/bin/g++-10 - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Python3: /usr/local/opt/python@3.9/bin/python3.9 (found suitable version "3.9.6", required range is "3.6...3.10") found components: Interpreter Development Development.Module Development.Embed -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE
-- Using libclang archive: /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp/../clang_archives/libclang-12.0.0-x86_64-apple-darwin.tar.bz2 -- Using libclang to provide semantic completion for C/C++/ObjC -- Using external libclang: /private/var/folders/yg/qsrk_fqn17z6f8h31fcz84h9syz729/T/ycm_build_d_yhnnh1/lib/libclang.dylib -- Using Abseil hash tables -- NOT using clang-tidy for static analysis. -- Configuring done -- Generating done -- Build files have been written to: /private/var/folders/yg/qsrk_fqn17z6f8h31fcz84h9syz729/T/ycm_build_d_yhnnh1 [ 1%] Building CXX object absl/absl/base/CMakeFiles/absl_log_severity.dir/log_severity.cc.o [ 1%] Building CXX object absl/absl/base/CMakeFiles/absl_exponential_biased.dir/internal/exponential_biased.cc.o [ 1%] Building CXX object absl/absl/base/CMakeFiles/absl_spinlock_wait.dir/internal/spinlock_wait.cc.o [ 3%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_fixed.cc.o [ 3%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_format.cc.o [ 3%] Building CXX object absl/absl/time/CMakeFiles/absl_civil_time.dir/internal/cctz/src/civil_time_detail.cc.o [ 3%] Building CXX object absl/absl/numeric/CMakeFiles/absl_int128.dir/int128.cc.o [ 4%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_if.cc.o [ 6%] Linking CXX static library libabsl_spinlock_wait.a [ 6%] Built target absl_spinlock_wait [ 8%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_impl.cc.o [ 8%] Linking CXX static library libabsl_log_severity.a [ 8%] Built target absl_log_severity [ 8%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_info.cc.o [ 9%] Linking CXX static library libabsl_exponential_biased.a [ 9%] Built target absl_exponential_biased [ 11%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_libc.cc.o [ 13%] Linking CXX static library libabsl_civil_time.a [ 13%] Building CXX object absl/absl/base/CMakeFiles/absl_raw_logging_internal.dir/internal/raw_logging.cc.o [ 13%] Built target absl_civil_time [ 13%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_lookup.cc.o [ 14%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/time_zone_posix.cc.o [ 16%] Linking CXX static library libabsl_int128.a [ 16%] Built target absl_int128 [ 16%] Building CXX object absl/absl/time/CMakeFiles/absl_time_zone.dir/internal/cctz/src/zone_info_source.cc.o [ 18%] Linking CXX static library libabsl_raw_logging_internal.a [ 18%] Built target absl_raw_logging_internal [ 18%] Building CXX object absl/absl/types/CMakeFiles/absl_bad_variant_access.dir/bad_variant_access.cc.o [ 18%] Building CXX object absl/absl/base/CMakeFiles/absl_base.dir/internal/cycleclock.cc.o [ 19%] Building CXX object absl/absl/base/CMakeFiles/absl_throw_delegate.dir/internal/throw_delegate.cc.o [ 21%] Building CXX object absl/absl/base/CMakeFiles/absl_base.dir/internal/spinlock.cc.o [ 21%] Building CXX object absl/absl/types/CMakeFiles/absl_bad_optional_access.dir/bad_optional_access.cc.o [ 21%] Building CXX object absl/absl/debugging/CMakeFiles/absl_debugging_internal.dir/internal/address_is_readable.cc.o [ 22%] Linking CXX static library libabsl_bad_variant_access.a [ 22%] Building CXX object absl/absl/base/CMakeFiles/absl_base.dir/internal/sysinfo.cc.o [ 24%] Building CXX object absl/absl/debugging/CMakeFiles/absl_debugging_internal.dir/internal/elf_mem_image.cc.o /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libabsl_bad_variant_access.a(bad_variant_access.cc.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libabsl_bad_variant_access.a(bad_variant_access.cc.o) has no symbols warning: /Library/Developer/CommandLineTools/usr/bin/ranlib: warning for library: libabsl_bad_variant_access.a the table of contents is empty (no object file members in the library define global symbols) [ 24%] Built target absl_bad_variant_access [ 26%] Building CXX object absl/absl/base/CMakeFiles/absl_base.dir/internal/thread_identity.cc.o [ 26%] Building CXX object absl/absl/debugging/CMakeFiles/absl_debugging_internal.dir/internal/vdso_support.cc.o [ 27%] Linking CXX static library libabsl_bad_optional_access.a [ 27%] Building CXX object absl/absl/base/CMakeFiles/absl_base.dir/internal/unscaledcycleclock.cc.o /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libabsl_bad_optional_access.a(bad_optional_access.cc.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libabsl_bad_optional_access.a(bad_optional_access.cc.o) has no symbols warning: /Library/Developer/CommandLineTools/usr/bin/ranlib: warning for library: libabsl_bad_optional_access.a the table of contents is empty (no object file members in the library define global symbols) [ 27%] Built target absl_bad_optional_access [ 29%] Linking CXX static library libabsl_debugging_internal.a /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libabsl_debugging_internal.a(elf_mem_image.cc.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libabsl_debugging_internal.a(vdso_support.cc.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libabsl_debugging_internal.a(elf_mem_image.cc.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libabsl_debugging_internal.a(vdso_support.cc.o) has no symbols [ 29%] Built target absl_debugging_internal [ 29%] Building CXX object absl/absl/debugging/CMakeFiles/absl_stacktrace.dir/stacktrace.cc.o [ 29%] Linking CXX static library libabsl_throw_delegate.a [ 29%] Built target absl_throw_delegate [ 31%] Linking CXX static library libabsl_stacktrace.a [ 31%] Built target absl_stacktrace [ 32%] Linking CXX static library libabsl_base.a [ 34%] Linking CXX static library libabsl_time_zone.a [ 34%] Built target absl_base [ 36%] Building CXX object absl/absl/base/CMakeFiles/absl_malloc_internal.dir/internal/low_level_alloc.cc.o [ 36%] Building CXX object absl/absl/debugging/CMakeFiles/absl_demangle_internal.dir/internal/demangle.cc.o [ 37%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings_internal.dir/internal/ostringstream.cc.o [ 37%] Building CXX object absl/absl/hash/CMakeFiles/absl_wyhash.dir/internal/wyhash.cc.o [ 37%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings_internal.dir/internal/utf8.cc.o [ 37%] Built target absl_time_zone [ 37%] Building CXX object absl/absl/hash/CMakeFiles/absl_city.dir/internal/city.cc.o [ 39%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings_internal.dir/internal/escaping.cc.o [ 40%] Linking CXX static library libabsl_wyhash.a [ 40%] Built target absl_wyhash [ 42%] Linking CXX static library libabsl_city.a [ 42%] Built target absl_city [ 42%] Linking CXX static library libabsl_strings_internal.a [ 42%] Built target absl_strings_internal [ 42%] Linking CXX static library libabsl_malloc_internal.a [ 42%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/ascii.cc.o [ 44%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/charconv.cc.o [ 44%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/escaping.cc.o [ 45%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/internal/charconv_bigint.cc.o [ 45%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/internal/charconv_parse.cc.o [ 47%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/internal/memutil.cc.o [ 47%] Built target absl_malloc_internal [ 49%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/match.cc.o [ 50%] Linking CXX static library libabsl_demangle_internal.a [ 50%] Built target absl_demangle_internal [ 50%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/numbers.cc.o [ 52%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/str_cat.cc.o [ 54%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_graphcycles_internal.dir/internal/graphcycles.cc.o [ 54%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/str_replace.cc.o [ 55%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/str_split.cc.o [ 55%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/string_view.cc.o [ 57%] Building CXX object absl/absl/strings/CMakeFiles/absl_strings.dir/substitute.cc.o [ 57%] Linking CXX static library libabsl_graphcycles_internal.a [ 57%] Built target absl_graphcycles_internal [ 57%] Linking CXX static library libabsl_strings.a /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libabsl_strings.a(string_view.cc.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libabsl_strings.a(string_view.cc.o) has no symbols [ 57%] Built target absl_strings [ 59%] Building CXX object absl/absl/debugging/CMakeFiles/absl_symbolize.dir/symbolize.cc.o [ 60%] Building CXX object absl/absl/time/CMakeFiles/absl_time.dir/civil_time.cc.o [ 62%] Building CXX object absl/absl/hash/CMakeFiles/absl_hash.dir/internal/hash.cc.o [ 62%] Building CXX object absl/absl/time/CMakeFiles/absl_time.dir/clock.cc.o [ 62%] Building CXX object absl/absl/strings/CMakeFiles/absl_cord.dir/cord.cc.o [ 63%] Building CXX object absl/absl/time/CMakeFiles/absl_time.dir/duration.cc.o [ 65%] Building CXX object absl/absl/strings/CMakeFiles/absl_cord.dir/internal/cord_internal.cc.o [ 65%] Building CXX object absl/absl/time/CMakeFiles/absl_time.dir/format.cc.o [ 65%] Linking CXX static library libabsl_symbolize.a [ 65%] Built target absl_symbolize [ 65%] Building CXX object absl/absl/strings/CMakeFiles/absl_cord.dir/internal/cord_rep_ring.cc.o [ 65%] Linking CXX static library libabsl_hash.a [ 67%] Building CXX object absl/absl/time/CMakeFiles/absl_time.dir/time.cc.o [ 67%] Built target absl_hash [ 67%] Linking CXX static library libabsl_time.a [ 67%] Built target absl_time [ 68%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/barrier.cc.o [ 68%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/blocking_counter.cc.o [ 70%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/internal/create_thread_identity.cc.o [ 70%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/internal/per_thread_sem.cc.o [ 72%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/internal/waiter.cc.o [ 72%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/notification.cc.o [ 73%] Building CXX object absl/absl/synchronization/CMakeFiles/absl_synchronization.dir/mutex.cc.o [ 75%] Linking CXX static library libabsl_cord.a [ 75%] Built target absl_cord [ 75%] Linking CXX static library libabsl_synchronization.a [ 75%] Built target absl_synchronization [ 77%] Building CXX object absl/absl/container/CMakeFiles/absl_hashtablez_sampler.dir/internal/hashtablez_sampler.cc.o [ 77%] Building CXX object absl/absl/container/CMakeFiles/absl_hashtablez_sampler.dir/internal/hashtablez_sampler_force_weak_definition.cc.o [ 78%] Linking CXX static library libabsl_hashtablez_sampler.a [ 78%] Built target absl_hashtablez_sampler [ 78%] Building CXX object absl/absl/container/CMakeFiles/absl_raw_hash_set.dir/internal/raw_hash_set.cc.o [ 80%] Linking CXX static library libabsl_raw_hash_set.a [ 80%] Built target absl_raw_hash_set [ 80%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Candidate.cpp.o [ 81%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Character.cpp.o [ 81%] Building CXX object ycm/CMakeFiles/ycm_core.dir/CodePoint.cpp.o [ 83%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierCompleter.cpp.o [ 83%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierDatabase.cpp.o [ 85%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierUtils.cpp.o [ 85%] Building CXX object ycm/CMakeFiles/ycm_core.dir/PythonSupport.cpp.o [ 86%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Repository.cpp.o [ 86%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Result.cpp.o [ 88%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Utils.cpp.o [ 88%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Word.cpp.o [ 90%] Building CXX object ycm/CMakeFiles/ycm_core.dir/versioning.cpp.o [ 90%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ycm_core.cpp.o [ 91%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/ClangCompleter.cpp.o [ 91%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/ClangHelpers.cpp.o [ 93%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/ClangUtils.cpp.o [ 93%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/CompilationDatabase.cpp.o [ 95%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/CompletionData.cpp.o [ 95%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/Documentation.cpp.o [ 96%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/Range.cpp.o [ 96%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/TranslationUnit.cpp.o [ 98%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/TranslationUnitStore.cpp.o [100%] Linking CXX shared library /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/ycm_core.cpython-39-darwin.so [100%] Built target ycm_core running build running build_py creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex copying regex_3/init.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex copying regex_3/regex.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex copying regex_3/_regex_core.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex copying regex_3/test_regex.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex running build_ext building 'regex._regex' extension creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/3 creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-10.14-x86_64-3.9 creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-10.14-x86_64-3.9/regex_3 gcc-10 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c regex_3/_regex.c -o /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-10.14-x86_64-3.9/regex_3/_regex.o gcc-10 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c regex_3/_regex_unicode.c -o /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-10.14-x86_64-3.9/regex_3/_regex_unicode.o gcc-10 -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-10.14-x86_64-3.9/regex_3/_regex.o /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/3/temp.macosx-10.14-x86_64-3.9/regex_3/_regex_unicode.o -L/usr/local/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/sqlite/lib -o /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/regex-build/regex/_regex.cpython-39-darwin.so running build running build_py creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3 creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog copying src/watchdog/watchmedo.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog copying src/watchdog/version.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog copying src/watchdog/events.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog copying src/watchdog/init.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils copying src/watchdog/utils/patterns.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils copying src/watchdog/utils/init.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils copying src/watchdog/utils/dirsnapshot.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils copying src/watchdog/utils/delayed_queue.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils copying src/watchdog/utils/platform.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils copying src/watchdog/utils/bricks.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils copying src/watchdog/utils/echo.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/utils creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers copying src/watchdog/observers/fsevents.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers copying src/watchdog/observers/inotify.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers copying src/watchdog/observers/init.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers copying src/watchdog/observers/api.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers copying src/watchdog/observers/inotify_buffer.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers copying src/watchdog/observers/winapi.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers copying src/watchdog/observers/read_directory_changes.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers copying src/watchdog/observers/kqueue.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers copying src/watchdog/observers/inotify_c.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers copying src/watchdog/observers/polling.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers copying src/watchdog/observers/fsevents2.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/observers creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/tricks copying src/watchdog/tricks/init.py -> /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/lib3/watchdog/tricks running egg_info writing src/watchdog.egg-info/PKG-INFO writing dependency_links to src/watchdog.egg-info/dependency_links.txt writing entry points to src/watchdog.egg-info/entry_points.txt writing requirements to src/watchdog.egg-info/requires.txt writing top-level names to src/watchdog.egg-info/top_level.txt reading manifest file 'src/watchdog.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '*.h' under directory 'src' adding license file 'LICENSE' adding license file 'COPYING' adding license file 'AUTHORS' writing manifest file 'src/watchdog.egg-info/SOURCES.txt' running build_ext building '_watchdog_fsevents' extension creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/3 creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/3/temp.macosx-10.14-x86_64-3.9 creating /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/3/temp.macosx-10.14-x86_64-3.9/src gcc-10 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -DWATCHDOG_VERSION_STRING="2.0.1" -DWATCHDOG_VERSION_MAJOR=2 -DWATCHDOG_VERSION_MINOR=0 -DWATCHDOG_VERSION_BUILD=1 -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/watchdog_fsevents.c -o /Users/genche/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/build/3/temp.macosx-10.14-x86_64-3.9/src/watchdog_fsevents.o -std=c99 -pedantic -Wall -Wextra -fPIC -Wno-nullability-completeness -Wno-nullability-extension -Wno-newline-eof -Wno-error=unused-command-line-argument cc1: error: '-Wno-error=unused-command-line-argument': no option '-Wunused-command-line-argument'; did you mean '-Wunused-dummy-argument'? cc1: note: unrecognized command-line option '-Wno-newline-eof' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-nullability-extension' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-nullability-completeness' may have been intended to silence earlier diagnostics error: command '/usr/local/bin/gcc-10' failed with exit code 1 Searching Python 3.9 libraries... Found Python library: /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/config-3.9-darwin/libpython3.9.dylib Found Python headers folder: /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 Failed to build watchdog module.



> Include link to a [gist][] containing the invocation and entire output of
> `install.py` if reporting an installation issue.

[cont]: https://github.com/ycm-core/YouCompleteMe/blob/master/CONTRIBUTING.md
[code]: https://github.com/ycm-core/YouCompleteMe/blob/master/CODE_OF_CONDUCT.md
[readme]: https://github.com/ycm-core/YouCompleteMe/blob/master/README.md
[faq]: https://github.com/ycm-core/YouCompleteMe/wiki/FAQ
[search]: https://www.google.com/search?q=site%3Ahttps%3A%2F%2Fgithub.com%2Fycm-core%2FYouCompleteMe%2Fissues%20python%20mac
[gist]: https://gist.github.com/
puremourning commented 3 years ago

please can you try building with the system compiler (clang) either from Xcode or from the CommandLineTools ? We know this works, so I'd like to rule out your environment as the cause.

I don't think we ever test building ycmd on macOS with GCC.

puremourning commented 3 years ago

FWIW the build issue is actually in watchdog, not ycmd. You may be able to manually build Watchdog by going to /path/to/YCM/thirdd_party/ycmd/third_party/watchdog_deps/watchdog and building it using something like:

CC=clang CXX=clang++ python3 ./setup.py build --build-base=$(pwd)/build/3 --build-lib=$(pwd)/build/lib3

Make sure to use the clang compiler, as I'm guessing the watchdog build doesn't actually work with GCC, based on this code

bgenchel commented 3 years ago

please can you try building with the system compiler (clang) either from Xcode or from the CommandLineTools ? We know this works, so I'd like to rule out your environment as the cause.

I don't think we ever test building ycmd on macOS with GCC.

I believe clang is my default compiler, and is being used when I don't specify gcc. The reason I was trying gcc8 and gcc10 was because using clang led to this error:

CMake Error at CMakeLists.txt:232 (message):
Your C++ compiler does NOT fully support C++17.

as mentioned in the issue description. I attempted running it while specifying clang with CC and CXX vars, but got the same error.

FWIW, output of clang --version:

Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
bgenchel commented 3 years ago

FWIW the build issue is actually in watchdog, not ycmd. You may be able to manually build Watchdog by going to /path/to/YCM/thirdd_party/ycmd/third_party/watchdog_deps/watchdog and building it using something like:

CC=clang CXX=clang++ python3 ./setup.py build --build-base=$(pwd)/build/3 --build-lib=$(pwd)/build/lib3

Make sure to use the clang compiler, as I'm guessing the watchdog build doesn't actually work with GCC, based on this code

Unfortunately, building this module separately with clang and then attempting to run the install with gcc led to the same error, which would make sense if the install script isn't looking at whether something has already been built or not.

puremourning commented 3 years ago

Hmmm. sorry for missing that, I saw that you were on macOS and just assumed you were on BigSur.

I see you're on 10.14, which is Mojave right ? OK, so iirc the version of Xcode on Mojave is too old now, as the standard library shipped doesn't support the filesystem library.

A similar issue was raised here https://github.com/ycm-core/YouCompleteMe/issues/3805. There's a legacy branch in ycmd you could check out before we switched to c++17, but the other alternatives are:

bgenchel commented 3 years ago

Gotcha, yes, I just noticed the same as well. I'll be upgrading my OS at the end of the day today, but I appreciate the tips here as well. I just went through the README and didn't see any mention of a minimum OS version or Xcode version for compilation on Mac, and I think that would be a helpful thing to mention there. Might also be good to create a tag for this change so users know which to pull when attempting to install.

bstaletic commented 3 years ago

I just went through the README and didn't see any mention of a minimum OS version or Xcode version for compilation on Mac

You're right. That info is missing.

Might also be good to create a tag for this change so users know which to pull when attempting to install.

We used to have a legacy-c++11 branch! Don't ask me how come it doesn't exist any more. This is the commit you should check out. In the mean time, I'll be recreating that branch.

https://github.com/ycm-core/YouCompleteMe/commit/4e480a317d4858db91631c14883c5927243d4893

Instructions to follow, to switch to that branch:

https://github.com/ycm-core/YouCompleteMe/issues/3805#issuecomment-784107020

How we found out the branch is missing:

https://github.com/ycm-core/ycmd/issues/1584

After pushing the branch, I'll close this issue.

bgenchel commented 3 years ago

thanks!

arisolt commented 1 year ago

I will post below (hopefully) definitive instructions for solving this. As previously discussed in the thread, the issue comes from Mojave's system (i.e Command line tools) C compiler being too old. It is possible to install via brew a newer version of C compilers, but it is also not recommended to completely replace the system one; so cmake needs to be instructed to temporarily use the version installed by brew.

There are a couple of options for C compilers, namely clang (llvm) and gcc. With the latest llvm it is (apparently) possible to build all the components of YouCompleteMe in one go; unfortunately, on my system in Dec 2022, brew install llvm fails so I was unable to obtain it and had to use gcc instead. gcc can carry out most of the builds, except the watchdog. Fortunately, watchdog can actually be built separately, using Mojave's system compiler.

So here are the steps:

  1. First, install a recent version of gcc: brew install gcc. Expect this to take a long time.
  2. Obtain the location of brew's new C compilers:
    cd $(brew --prefix gcc)/bin/ 
    ls

    Look at the list and identify the executables with the following filename format: gcc-XX and g++-XX. I have installed version 12, so the full location of the compilers in my case was $(brew --prefix gcc)/bin/gcc-12 and $(brew --prefix gcc)/bin/g++-12.

  3. You will now configure cmake to use the new C compilers and attempt to run the YCM installation script; it will build most of the components, and at the end it will fail while trying to build the final one, namely the watchdog. This is expected behaviour. Run:
    cd ~/.vim/bundle/YouCompleteMe
    CC=$(brew --prefix gcc)/bin/gcc-12 CXX=$(brew --prefix gcc)/bin/g++-12 python3 install.py --all
  4. Now you will build the watchdog separately, using the system compiler.
    cd ~/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/watchdog_deps/watchdog/
    CC=clang CXX=clang++ python3 ./setup.py build --build-base=$(pwd)/build/3 --build-lib=$(pwd)/build/lib3
  5. You have now built all the necessary components, so you will run the main install script one last time, and instruct it to skip the building part so that it completes the installation without errors.
    cd ~/.vim/bundle/YouCompleteMe
    python3 install.py --all --skip-build