CLion CMake错误:make执行失败

时间:2018-12-09 23:34:17

标签: clion

我从CLion中收到以下错误,这意味着我无法编译任何内容。在我更新Mac的操作系统之前,它一直运行良好,该操作系统可能相关,也可能不相关。我尝试重新安装CLion,但无法正常工作。

/Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake - 
DCMAKE_BUILD_TYPE=Debug "-DCMAKE_MAKE_PROGRAM=xcode-select --install" -G 
    "CodeBlocks - Unix Makefiles" /Users/emma/CLionProjects/untitled2
-- The C compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
CMake Error: Generator: execution of make failed. Make command was: 
"/Users/emma/CLionProjects/untitled2/cmake-build-debug/xcode-select -- 
install" "cmTC_021a3/fast"
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at 
/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake- 
3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
  The C compiler

    "/usr/bin/cc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /Users/emma/CLionProjects/untitled2/cmake-build-debug/CMakeFiles/CMakeTmp

    Run Build Command:"/Users/emma/CLionProjects/untitled2/cmake-build-debug/xcode-select --install" "cmTC_021a3/fast"
    No such file or directory
    Generator: execution of make failed. Make command was: 
"/Users/emma/CLionProjects/untitled2/cmake-build-debug/xcode-select --install" "cmTC_021a3/fast"




  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


-- Configuring incomplete, errors occurred!
See also "/Users/emma/CLionProjects/untitled2/cmake-build- 
debug/CMakeFiles/CMakeOutput.log".
See also "/Users/emma/CLionProjects/untitled2/cmake-build- 
debug/CMakeFiles/CMakeError.log".

[Failed to reload]

0 个答案:

没有答案