I have the same problem. Let me print the whole message. Thank you for the next genius who is able to resolve this.
My command:
% cmake .. -DLOCAL_INSTALL_ALL=ON -DMPIBAT=ON
The answer from the terminal:
CMake Deprecation Warning at CMakeLists.txt:16 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /Users/yanngouttenoire/opt/anaconda3/bin/x86_64-apple-darwin13.4.0-clang
-- Check for working C compiler: /Users/yanngouttenoire/opt/anaconda3/bin/x86_64-apple-darwin13.4.0-clang - broken
CMake Error at /usr/local/Cellar/cmake/3.23.0/share/cmake/Modules/CMakeTestCCompiler.cmake:69 (message):
The C compiler
"/Users/yanngouttenoire/opt/anaconda3/bin/x86_64-apple-darwin13.4.0-clang"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /Users/yanngouttenoire/Dropbox/Numerical_library/HEPfit-1.0/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_f5f91/fast && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_f5f91.dir/build.make CMakeFiles/cmTC_f5f91.dir/build
Building C object CMakeFiles/cmTC_f5f91.dir/testCCompiler.c.o
/Users/yanngouttenoire/opt/anaconda3/bin/x86_64-apple-darwin13.4.0-clang -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/yanngouttenoire/opt/anaconda3/include -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk -MD -MT CMakeFiles/cmTC_f5f91.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_f5f91.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_f5f91.dir/testCCompiler.c.o -c /Users/yanngouttenoire/Dropbox/Numerical_library/HEPfit-1.0/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_f5f91
/usr/local/Cellar/cmake/3.23.0/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f5f91.dir/link.txt --verbose=1
/Users/yanngouttenoire/opt/anaconda3/bin/x86_64-apple-darwin13.4.0-clang -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/yanngouttenoire/opt/anaconda3/include -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/yanngouttenoire/opt/anaconda3/lib -L/Users/yanngouttenoire/opt/anaconda3/lib CMakeFiles/cmTC_f5f91.dir/testCCompiler.c.o -o cmTC_f5f91
ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/lib/libSystem.tbd' for architecture x86_64
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_f5f91] Error 1
make: *** [cmTC_f5f91/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:28 (project)
-- Configuring incomplete, errors occurred!
See also "/Users/yanngouttenoire/Dropbox/Numerical_library/HEPfit-1.0/build/CMakeFiles/CMakeOutput.log".
See also "/Users/yanngouttenoire/Dropbox/Numerical_library/HEPfit-1.0/build/CMakeFiles/CMakeError.log".
-
—
bbl
Add a CommentSame problems after upgrading to Big Sur, error occurs even when trying to build the simplest helloworld. Typing
brew config, the following informations are given:HOMEBREW_VERSION: 3.2.0-59-g196ec61 ORIGIN: https://github.com/Homebrew/brew.git HEAD: 196ec61a3a9c6ce8bb8cdc75b489b0163ebed53f Last commit: 6 weeks ago Core tap ORIGIN: https://mirrors.ustc.edu.cn/homebrew-core.git Core tap HEAD: a268bedb0a2689974bf687ffc7c927d08bf3fde5 Core tap last commit: 4 months ago Core tap branch: master HOMEBREW_PREFIX: /usr/local HOMEBREW_BOTTLE_DOMAIN: https://mirrors.ustc.edu.cn/homebrew-bottles HOMEBREW_CASK_OPTS: [] HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.27T7PBiKpd/org.xquartz:0 HOMEBREW_MAKE_JOBS: 4 Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby CPU: quad-core 64-bit broadwell Clang: 12.0.5 build 1205 Git: 2.31.1 => /usr/local/bin/git Curl: 7.64.1 => /usr/bin/curl macOS: 11.5.1-x86_64 CLT: 12.5.1.0.1.1623191612 Xcode: N/A