Hi,
I followed the guides attached in README.md and completed the setup. But to test if the setup is working correctly I am trying to run the given command in the warmup
lab folder but it fails at the third command cmake -DCMAKE_BUILD_TYPE=Release ..
. Following is the attached error and log files.
Machine: Mac M1 Ventura
-- The C compiler identification is Clang 15.0.3
-- The CXX compiler identification is Clang 15.0.3
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /opt/homebrew/opt/llvm/bin/clang
-- Check for working C compiler: /opt/homebrew/opt/llvm/bin/clang - broken
CMake Error at /opt/homebrew/Cellar/cmake/3.22.2/share/cmake/Modules/CMakeTestCCompiler.cmake:69 (message):
The C compiler
"/opt/homebrew/opt/llvm/bin/clang"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /Users/tuba/Playgrounds/Perfomance_Sandbox/perf-ninja/labs/misc/warmup/build/CMakeFiles/CMakeTmp
Run Build Command(s):/opt/homebrew/bin/gmake -f Makefile cmTC_7ee35/fast && /opt/homebrew/bin/gmake -f CMakeFiles/cmTC_7ee35.dir/build.make CMakeFiles/cmTC_7ee35.dir/build
gmake[1]: Entering directory '/Users/tuba/Playgrounds/Perfomance_Sandbox/perf-ninja/labs/misc/warmup/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_7ee35.dir/testCCompiler.c.o
/opt/homebrew/opt/llvm/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -MD -MT CMakeFiles/cmTC_7ee35.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_7ee35.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_7ee35.dir/testCCompiler.c.o -c /Users/tuba/Playgrounds/Perfomance_Sandbox/perf-ninja/labs/misc/warmup/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_7ee35
/opt/homebrew/Cellar/cmake/3.22.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_7ee35.dir/link.txt --verbose=1
/opt/homebrew/opt/llvm/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_7ee35.dir/testCCompiler.c.o -o cmTC_7ee35
ld: library not found for -lSystem
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [CMakeFiles/cmTC_7ee35.dir/build.make:100: cmTC_7ee35] Error 1
gmake[1]: Leaving directory '/Users/tuba/Playgrounds/Perfomance_Sandbox/perf-ninja/labs/misc/warmup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_7ee35/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
-- Configuring incomplete, errors occurred!
See also "/Users/tuba/Playgrounds/Perfomance_Sandbox/perf-ninja/labs/misc/warmup/build/CMakeFiles/CMakeOutput.log".
See also "/Users/tuba/Playgrounds/Perfomance_Sandbox/perf-ninja/labs/misc/warmup/build/CMakeFiles/CMakeError.log".
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/homebrew/opt/llvm/bin/clang
Build flags:
Id flags:
The output was:
1
ld: library not found for -lSystem
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /opt/homebrew/opt/llvm/bin/clang++
Build flags:
Id flags:
The output was:
1
ld: library not found for -lc++
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
Detecting C compiler ABI info failed to compile with the following output:
Change Dir: /Users/tuba/Playgrounds/Perfomance_Sandbox/perf-ninja/labs/misc/warmup/build/CMakeFiles/CMakeTmp
Run Build Command(s):/opt/homebrew/bin/gmake -f Makefile cmTC_86d51/fast && /opt/homebrew/bin/gmake -f CMakeFiles/cmTC_86d51.dir/build.make CMakeFiles/cmTC_86d51.dir/build
gmake[1]: Entering directory '/Users/tuba/Playgrounds/Perfomance_Sandbox/perf-ninja/labs/misc/warmup/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_86d51.dir/CMakeCCompilerABI.c.o
/opt/homebrew/opt/llvm/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -v -Wl,-v -MD -MT CMakeFiles/cmTC_86d51.dir/CMakeCCompilerABI.c.o -MF CMakeFiles/cmTC_86d51.dir/CMakeCCompilerABI.c.o.d -o CMakeFiles/cmTC_86d51.dir/CMakeCCompilerABI.c.o -c /opt/homebrew/Cellar/cmake/3.22.2/share/cmake/Modules/CMakeCCompilerABI.c
Homebrew clang version 15.0.3
Target: arm64-apple-darwin22.1.0
Thread model: posix
InstalledDir: /opt/homebrew/opt/llvm/bin
clang-15: warning: -Wl,-v: 'linker' input unused [-Wunused-command-line-argument]
(in-process)
"/opt/homebrew/Cellar/llvm/15.0.3/bin/clang-15" -cc1 -triple arm64-apple-macosx12.3.0 -Wundef-prefix=TARGET_OS_ -Werror=undef-prefix -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all --mrelax-relocations -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name CMakeCCompilerABI.c -mrelocation-model pic -pic-level 2 -mframe-pointer=non-leaf -ffp-contract=on -fno-rounding-math -funwind-tables=2 -target-sdk-version=12.3 -fcompatibility-qualified-id-block-type-checking -fvisibility-inlines-hidden-static-local-var -target-cpu apple-m1 -target-feature +v8.5a -target-feature +crc -target-feature +lse -target-feature +rdm -target-feature +crypto -target-feature +dotprod -target-feature +fp-armv8 -target-feature +neon -target-feature +fp16fml -target-feature +ras -target-feature +rcpc -target-feature +zcm -target-feature +zcz -target-feature +fullfp16 -target-feature +sm4 -target-feature +sha3 -target-feature +sha2 -target-feature +aes -target-abi darwinpcs -fallow-half-arguments-and-returns -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=lldb -target-linker-version 820.1 -v -fcoverage-compilation-dir=/Users/tuba/Playgrounds/Perfomance_Sandbox/perf-ninja/labs/misc/warmup/build/CMakeFiles/CMakeTmp -resource-dir /opt/homebrew/Cellar/llvm/15.0.3/lib/clang/15.0.3 -dependency-file CMakeFiles/cmTC_86d51.dir/CMakeCCompilerABI.c.o.d -MT CMakeFiles/cmTC_86d51.dir/CMakeCCompilerABI.c.o -sys-header-deps -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -internal-isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/local/include -internal-isystem /opt/homebrew/Cellar/llvm/15.0.3/lib/clang/15.0.3/include -internal-externc-isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include -fdebug-compilation-dir=/Users/tuba/Playgrounds/Perfomance_Sandbox/perf-ninja/labs/misc/warmup/build/CMakeFiles/CMakeTmp -ferror-limit 19 -stack-protector 1 -fblocks -fencode-extended-block-signature -fregister-global-dtors-with-atexit -fgnuc-version=4.2.1 -fmax-type-align=16 -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_86d51.dir/CMakeCCompilerABI.c.o -x c /opt/homebrew/Cellar/cmake/3.22.2/share/cmake/Modules/CMakeCCompilerABI.c
clang -cc1 version 15.0.3 based upon LLVM 15.0.3 default target arm64-apple-darwin22.1.0
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/local/include"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/Library/Frameworks"
#include "..." search starts here:
#include <...> search starts here:
/opt/homebrew/Cellar/llvm/15.0.3/lib/clang/15.0.3/include
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks (framework directory)
End of search list.
Linking C executable cmTC_86d51
/opt/homebrew/Cellar/cmake/3.22.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_86d51.dir/link.txt --verbose=1
/opt/homebrew/opt/llvm/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -v -Wl,-v CMakeFiles/cmTC_86d51.dir/CMakeCCompilerABI.c.o -o cmTC_86d51
Homebrew clang version 15.0.3
Target: arm64-apple-darwin22.1.0
Thread model: posix
InstalledDir: /opt/homebrew/opt/llvm/bin
"/usr/bin/ld" -demangle -lto_library /opt/homebrew/Cellar/llvm/15.0.3/lib/libLTO.dylib -dynamic -arch arm64 -platform_version macos 12.3.0 12.3 -syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -o cmTC_86d51 -search_paths_first -headerpad_max_install_names -v CMakeFiles/cmTC_86d51.dir/CMakeCCompilerABI.c.o -lSystem /opt/homebrew/Cellar/llvm/15.0.3/lib/clang/15.0.3/lib/darwin/libclang_rt.osx.a
@(#)PROGRAM:ld PROJECT:ld64-819.6
BUILD 21:47:32 Sep 13 2022
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
Library search paths:
Framework search paths:
ld: library not found for -lSystem
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [CMakeFiles/cmTC_86d51.dir/build.make:100: cmTC_86d51] Error 1
gmake[1]: Leaving directory '/Users/tuba/Playgrounds/Perfomance_Sandbox/perf-ninja/labs/misc/warmup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_86d51/fast] Error 2
Determining if the C compiler works failed with the following output:
Change Dir: /Users/tuba/Playgrounds/Perfomance_Sandbox/perf-ninja/labs/misc/warmup/build/CMakeFiles/CMakeTmp
Run Build Command(s):/opt/homebrew/bin/gmake -f Makefile cmTC_9dee8/fast && /opt/homebrew/bin/gmake -f CMakeFiles/cmTC_9dee8.dir/build.make CMakeFiles/cmTC_9dee8.dir/build
gmake[1]: Entering directory '/Users/tuba/Playgrounds/Perfomance_Sandbox/perf-ninja/labs/misc/warmup/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_9dee8.dir/testCCompiler.c.o
/opt/homebrew/opt/llvm/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -MD -MT CMakeFiles/cmTC_9dee8.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_9dee8.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_9dee8.dir/testCCompiler.c.o -c /Users/tuba/Playgrounds/Perfomance_Sandbox/perf-ninja/labs/misc/warmup/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_9dee8
/opt/homebrew/Cellar/cmake/3.22.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_9dee8.dir/link.txt --verbose=1
/opt/homebrew/opt/llvm/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_9dee8.dir/testCCompiler.c.o -o cmTC_9dee8
ld: library not found for -lSystem
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [CMakeFiles/cmTC_9dee8.dir/build.make:100: cmTC_9dee8] Error 1
gmake[1]: Leaving directory '/Users/tuba/Playgrounds/Perfomance_Sandbox/perf-ninja/labs/misc/warmup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_9dee8/fast] Error 2
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/homebrew/opt/llvm/bin/clang
Build flags:
Id flags:
The output was:
1
ld: library not found for -lSystem
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /opt/homebrew/opt/llvm/bin/clang++
Build flags:
Id flags:
The output was:
1
ld: library not found for -lc++
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
Detecting C compiler ABI info failed to compile with the following output:
Change Dir: /Users/tuba/Playgrounds/Perfomance_Sandbox/perf-ninja/labs/misc/warmup/build/CMakeFiles/CMakeTmp
Run Build Command(s):/opt/homebrew/bin/gmake -f Makefile cmTC_a057a/fast && /opt/homebrew/bin/gmake -f CMakeFiles/cmTC_a057a.dir/build.make CMakeFiles/cmTC_a057a.dir/build
gmake[1]: Entering directory '/Users/tuba/Playgrounds/Perfomance_Sandbox/perf-ninja/labs/misc/warmup/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_a057a.dir/CMakeCCompilerABI.c.o
/opt/homebrew/opt/llvm/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -v -Wl,-v -MD -MT CMakeFiles/cmTC_a057a.dir/CMakeCCompilerABI.c.o -MF CMakeFiles/cmTC_a057a.dir/CMakeCCompilerABI.c.o.d -o CMakeFiles/cmTC_a057a.dir/CMakeCCompilerABI.c.o -c /opt/homebrew/Cellar/cmake/3.22.2/share/cmake/Modules/CMakeCCompilerABI.c
Homebrew clang version 15.0.3
Target: arm64-apple-darwin22.1.0
Thread model: posix
InstalledDir: /opt/homebrew/opt/llvm/bin
clang-15: warning: -Wl,-v: 'linker' input unused [-Wunused-command-line-argument]
(in-process)
"/opt/homebrew/Cellar/llvm/15.0.3/bin/clang-15" -cc1 -triple arm64-apple-macosx12.3.0 -Wundef-prefix=TARGET_OS_ -Werror=undef-prefix -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all --mrelax-relocations -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name CMakeCCompilerABI.c -mrelocation-model pic -pic-level 2 -mframe-pointer=non-leaf -ffp-contract=on -fno-rounding-math -funwind-tables=2 -target-sdk-version=12.3 -fcompatibility-qualified-id-block-type-checking -fvisibility-inlines-hidden-static-local-var -target-cpu apple-m1 -target-feature +v8.5a -target-feature +crc -target-feature +lse -target-feature +rdm -target-feature +crypto -target-feature +dotprod -target-feature +fp-armv8 -target-feature +neon -target-feature +fp16fml -target-feature +ras -target-feature +rcpc -target-feature +zcm -target-feature +zcz -target-feature +fullfp16 -target-feature +sm4 -target-feature +sha3 -target-feature +sha2 -target-feature +aes -target-abi darwinpcs -fallow-half-arguments-and-returns -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=lldb -target-linker-version 820.1 -v -fcoverage-compilation-dir=/Users/tuba/Playgrounds/Perfomance_Sandbox/perf-ninja/labs/misc/warmup/build/CMakeFiles/CMakeTmp -resource-dir /opt/homebrew/Cellar/llvm/15.0.3/lib/clang/15.0.3 -dependency-file CMakeFiles/cmTC_a057a.dir/CMakeCCompilerABI.c.o.d -MT CMakeFiles/cmTC_a057a.dir/CMakeCCompilerABI.c.o -sys-header-deps -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -internal-isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/local/include -internal-isystem /opt/homebrew/Cellar/llvm/15.0.3/lib/clang/15.0.3/include -internal-externc-isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include -fdebug-compilation-dir=/Users/tuba/Playgrounds/Perfomance_Sandbox/perf-ninja/labs/misc/warmup/build/CMakeFiles/CMakeTmp -ferror-limit 19 -stack-protector 1 -fblocks -fencode-extended-block-signature -fregister-global-dtors-with-atexit -fgnuc-version=4.2.1 -fmax-type-align=16 -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_a057a.dir/CMakeCCompilerABI.c.o -x c /opt/homebrew/Cellar/cmake/3.22.2/share/cmake/Modules/CMakeCCompilerABI.c
clang -cc1 version 15.0.3 based upon LLVM 15.0.3 default target arm64-apple-darwin22.1.0
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/local/include"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/Library/Frameworks"
#include "..." search starts here:
#include <...> search starts here:
/opt/homebrew/Cellar/llvm/15.0.3/lib/clang/15.0.3/include
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks (framework directory)
End of search list.
Linking C executable cmTC_a057a
/opt/homebrew/Cellar/cmake/3.22.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a057a.dir/link.txt --verbose=1
/opt/homebrew/opt/llvm/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -v -Wl,-v CMakeFiles/cmTC_a057a.dir/CMakeCCompilerABI.c.o -o cmTC_a057a
Homebrew clang version 15.0.3
Target: arm64-apple-darwin22.1.0
Thread model: posix
InstalledDir: /opt/homebrew/opt/llvm/bin
"/usr/bin/ld" -demangle -lto_library /opt/homebrew/Cellar/llvm/15.0.3/lib/libLTO.dylib -dynamic -arch arm64 -platform_version macos 12.3.0 12.3 -syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -o cmTC_a057a -search_paths_first -headerpad_max_install_names -v CMakeFiles/cmTC_a057a.dir/CMakeCCompilerABI.c.o -lSystem /opt/homebrew/Cellar/llvm/15.0.3/lib/clang/15.0.3/lib/darwin/libclang_rt.osx.a
@(#)PROGRAM:ld PROJECT:ld64-819.6
BUILD 21:47:32 Sep 13 2022
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
Library search paths:
Framework search paths:
ld: library not found for -lSystem
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [CMakeFiles/cmTC_a057a.dir/build.make:100: cmTC_a057a] Error 1
gmake[1]: Leaving directory '/Users/tuba/Playgrounds/Perfomance_Sandbox/perf-ninja/labs/misc/warmup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_a057a/fast] Error 2
Determining if the C compiler works failed with the following output:
Change Dir: /Users/tuba/Playgrounds/Perfomance_Sandbox/perf-ninja/labs/misc/warmup/build/CMakeFiles/CMakeTmp
Run Build Command(s):/opt/homebrew/bin/gmake -f Makefile cmTC_7ee35/fast && /opt/homebrew/bin/gmake -f CMakeFiles/cmTC_7ee35.dir/build.make CMakeFiles/cmTC_7ee35.dir/build
gmake[1]: Entering directory '/Users/tuba/Playgrounds/Perfomance_Sandbox/perf-ninja/labs/misc/warmup/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_7ee35.dir/testCCompiler.c.o
/opt/homebrew/opt/llvm/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -MD -MT CMakeFiles/cmTC_7ee35.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_7ee35.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_7ee35.dir/testCCompiler.c.o -c /Users/tuba/Playgrounds/Perfomance_Sandbox/perf-ninja/labs/misc/warmup/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_7ee35
/opt/homebrew/Cellar/cmake/3.22.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_7ee35.dir/link.txt --verbose=1
/opt/homebrew/opt/llvm/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_7ee35.dir/testCCompiler.c.o -o cmTC_7ee35
ld: library not found for -lSystem
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [CMakeFiles/cmTC_7ee35.dir/build.make:100: cmTC_7ee35] Error 1
gmake[1]: Leaving directory '/Users/tuba/Playgrounds/Perfomance_Sandbox/perf-ninja/labs/misc/warmup/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_7ee35/fast] Error 2
Could you please guide me here on how to resolve? I have tried Google search results for hours but didn't help.