Closed mladen5000 closed 5 months ago
Please unset CXX in your environment, and/or ensure that the first compiler in your path is Apple's compiler.
In my system the first 2 lines look like:
ben@BeniMac2020 YouCompleteMe % ./install.py --all --verbose
Searching Python 3.11 libraries...
Found Python library: /usr/local/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/lib/python3.11/config-3.11-darwin/libpython3.11.dylib
Found Python headers folder: /usr/local/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11
-- The C compiler identification is AppleClang 15.0.0.15000100
-- The CXX compiler identification is AppleClang 15.0.0.15000100
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
You have:
-- The CXX compiler identification is Clang 16.0.6
Closing given the output is very clear that this is extremely unlikely to be a bug, and issue template was not completed.
unsetting CXX resolved the issue. Thank you
Issue Prelude
Please complete these steps and check these boxes (by putting an
x
inside the brackets) before filing your issue:vim --version
.:YcmDebugInfo
.:YcmToggleLogs
command.vim -Nu /path/to/YCM/vimrc_ycm_minimal
, including what I expected to happen and what actually happened.install.py
(orcmake
/make
/ninja
) including its invocationThank 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
python3 install.py --all Generating ycmd build configuration...-- The C compiler identification is AppleClang 15.0.0.15000100 -- The CXX compiler identification is Clang 16.0.6 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/gcc - 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: /Users/mladenrasic/mambaforge/bin/clang - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Python3: /Users/mladenrasic/mambaforge/bin/python3 (found suitable version "3.10.13", minimum required is "3.6") found components: Interpreter Development Development.Module Development.Embed -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE
-- Downloading libclang 17.0.1 from https://github.com/ycm-core/llvm/releases/download/17.0.1/libclang-17.0.1-arm64-apple-darwin.tar.bz2 -- [download 0% complete] .. skip for brevity -- [download 100% complete] -- Using libclang to provide semantic completion for C/C++/ObjC -- Using external libclang: /private/var/folders/qr/j8nc3yc579j9h_kx6xn901lr0000gn/T/ycm_build_wcdd94eq/lib/libclang.dylib CMake Error at ycm/CMakeLists.txt:300 (message): Unknown compiler - C++17 filesystem library missing
-- Configuring incomplete, errors occurred!
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:/Users/mladenrasic/mambaforge/bin/python3 /Users/mladenrasic/.vim/bundle/YouCompleteMe/third_party/ycmd/build.py --all --verbose