An issue with command line tools on Big Sur 11.2

I am relatively new to coding on Mac so I apologize in advance if the question is too simple. I encounter the following error when executing a code after updating the OS to Bug Sur:

ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib/libm.tbd' for architecture x86_64 collect2: error: ld returned 1 exit status

The code compiles but the does not give an output file. Everything was working perfectly before updating. Following instructions to a somewhat similar question, I un-installed the CLT and tried to reinstall the 11.5 version but that couldn't be done and the error was the version of Mac is too new. I'd appreciate any help or suggestions on this.
I am having exactly the same problem right now - did you find a solution? Would really appreciate it if anyone else knew!
I am having the same problem when I try to install packages on R. Following are the code snippets and error message I get:
Code Block
install.packages("arrow")
...
ld: warning: -pie being ignored. It is only used when linking a main executable
ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd' for architecture x86_64
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/Users/julienboudreau/opt/anaconda3/envs/r/lib/R/share/make/shlib.mk:6: rlang.dylib] Error 1
ERROR: compilation failed for package ‘rlang’

Code Block
ld: unsupported tapi file type '!tapi-tbd' in YAML file …


Are you using the Apple linker? The above is the signature of a .tbd file, that is, a stub library. The Apple linker should handle those automatically.

For more background on stub libraries, see this post.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
I'm having the same problem! Using Big Sur so cannot install Command Line Tools v.11.5
I'm not sure if the code uses Apple linker? Read the post that Quinn “The Eskimo!” recommended but still can't figure it out..
I am having the same exact error when trying to get a golang program making http calls to run ! I deleted and reinstalled xcode developer using the command 'xcode-select --install' but that too did not help ! Can somebody help me get past this issue ? Thank you.

I am having the same exact error when trying to get a golang program

I’m pretty sure that Go uses its own linker, and thus runs into lots of problems as the system evolves. ISTR that there’s a way to tell Go to use the system linker but I don’t have any direct experience with that. My advice is that you escalate this via Go’s support channel.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
I am having exact same problem. Unable to install R packages in BigSur
Same problem here with running golang scripts.

Same 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

Same problems after upgrading to Big Sur, error occurs even when trying to build the simplest helloworld. Typing brew config, the following informations are given:

Clang: 12.0.5 build 1205

macOS: 11.5.1-x86_64

CLT: 12.5.1.0.1.1623191612

Xcode: N/A

Same issue with me. Why is no one fixing this yet ?? Frustrated....

Same here - Cannot install command line tools on Big Sur 11.6.2 - xcode-select --install brings up Install Command Line Developer Tools progress bar, which sits, unmoving at about 20% for eternity....

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".

I ran a simple smoke test here, just to make sure that stuff isn’t broken for everyone. Specifically, I took a macOS 11 VM and upgraded it to the latest:

% sw_vers
ProductName:	macOS
ProductVersion:	11.6.5
BuildVersion:	20G527

I then triggered an install of the command-line tools:

% xcode-select --install
xcode-select: note: install requested for command line developer tools

This installed Clang 12.0.5:

% clang -v
Apple clang version 12.0.5 (clang-1205.0.22.11)
Target: x86_64-apple-darwin20.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

I used that to compiled a trivial test program:

% cat hello.c
#include <stdio.h>

int main(int argc, char ** argv) {
    printf("Hello Cruel World!\n");
}
% clang hello.c 
% ./a.out
Hello Cruel World!

So, the basics are working.

This thread is kinda old and different folks have piled on with different symptoms. If you continue to have problems, I recommend that you start a new thread with a description of your specific symptoms.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

An issue with command line tools on Big Sur 11.2
 
 
Q