Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ Build flags: -fPIC;-O2;-std=c++17 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) Determining if the function shm_open exists in the rt failed with the following output: Change Dir: /Users/anjaly/alice/sw/BUILD/b78c1800181a41cb181d91c832bad1135cd37bbf/googlebenchmark/CMakeFiles/CMakeTmp Run Build Command(s):/usr/local/bin/gmake -f Makefile cmTC_02e38/fast && /usr/local/bin/gmake -f CMakeFiles/cmTC_02e38.dir/build.make CMakeFiles/cmTC_02e38.dir/build gmake[1]: Entering directory '/Users/anjaly/alice/sw/BUILD/b78c1800181a41cb181d91c832bad1135cd37bbf/googlebenchmark/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_02e38.dir/CheckFunctionExists.cxx.o /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -fPIC -O2 -std=c++17 -DCHECK_FUNCTION_EXISTS=shm_open -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -mmacosx-version-min=10.15 -MD -MT CMakeFiles/cmTC_02e38.dir/CheckFunctionExists.cxx.o -MF CMakeFiles/cmTC_02e38.dir/CheckFunctionExists.cxx.o.d -o CMakeFiles/cmTC_02e38.dir/CheckFunctionExists.cxx.o -c /Users/anjaly/alice/sw/BUILD/b78c1800181a41cb181d91c832bad1135cd37bbf/googlebenchmark/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx Linking CXX executable cmTC_02e38 /usr/local/Cellar/cmake/3.24.1/bin/cmake -E cmake_link_script CMakeFiles/cmTC_02e38.dir/link.txt --verbose=1 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -fPIC -O2 -std=c++17 -DCHECK_FUNCTION_EXISTS=shm_open -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -mmacosx-version-min=10.15 -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_02e38.dir/CheckFunctionExists.cxx.o -o cmTC_02e38 -lrt ld: library not found for -lrt clang: error: linker command failed with exit code 1 (use -v to see invocation) gmake[1]: *** [CMakeFiles/cmTC_02e38.dir/build.make:100: cmTC_02e38] Error 1 gmake[1]: Leaving directory '/Users/anjaly/alice/sw/BUILD/b78c1800181a41cb181d91c832bad1135cd37bbf/googlebenchmark/CMakeFiles/CMakeTmp' gmake: *** [Makefile:127: cmTC_02e38/fast] Error 2 Performing C++ SOURCE FILE Test HAVE_CXX_FLAG_WD654 failed with the following output: Change Dir: /Users/anjaly/alice/sw/BUILD/b78c1800181a41cb181d91c832bad1135cd37bbf/googlebenchmark/CMakeFiles/CMakeTmp Run Build Command(s):/usr/local/bin/gmake -f Makefile cmTC_c0cfb/fast && /usr/local/bin/gmake -f CMakeFiles/cmTC_c0cfb.dir/build.make CMakeFiles/cmTC_c0cfb.dir/build gmake[1]: Entering directory '/Users/anjaly/alice/sw/BUILD/b78c1800181a41cb181d91c832bad1135cd37bbf/googlebenchmark/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_c0cfb.dir/src.cxx.o /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DHAVE_CXX_FLAG_WD654 -fPIC -O2 -std=c++17 -std=c++11 -Wall -Wextra -Wshadow -pedantic -pedantic-errors -Wshorten-64-to-32 -fstrict-aliasing -Wno-deprecated-declarations -Wstrict-aliasing -wd654 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -mmacosx-version-min=10.15 -wd654 -MD -MT CMakeFiles/cmTC_c0cfb.dir/src.cxx.o -MF CMakeFiles/cmTC_c0cfb.dir/src.cxx.o.d -o CMakeFiles/cmTC_c0cfb.dir/src.cxx.o -c /Users/anjaly/alice/sw/BUILD/b78c1800181a41cb181d91c832bad1135cd37bbf/googlebenchmark/CMakeFiles/CMakeTmp/src.cxx clang: error: unknown argument: '-wd654' clang: error: unknown argument: '-wd654' gmake[1]: *** [CMakeFiles/cmTC_c0cfb.dir/build.make:79: CMakeFiles/cmTC_c0cfb.dir/src.cxx.o] Error 1 gmake[1]: Leaving directory '/Users/anjaly/alice/sw/BUILD/b78c1800181a41cb181d91c832bad1135cd37bbf/googlebenchmark/CMakeFiles/CMakeTmp' gmake: *** [Makefile:127: cmTC_c0cfb/fast] Error 2 Source file was: int main() { return 0; }