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.

8 Replies

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.