0

I'm a newbie to the macOS terminal. I'm trying to use CMake (version 3.21.2) on my macOS (Big Sur 11.5.2). I have installed XCode (version 12.5.1) and installed the necessary using instructions given on How to update Xcode from commandline. In my view, the installation looked successful, however, on using CMake the following error pops up in the CMakeError.log. Does any know what's happening?

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc 
Build flags: 
Id flags:  

The output was:
1
ld: library not found for -lSystem
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ 
Build flags: 
Id flags:  

The output was:
1
ld: library not found for -lc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Tsyvarev
  • 52,146
  • 16
  • 84
  • 120

0 Answers0