MacOS Monterey ==> unsupported tapi file type '!tapi-tbd' in YAML file

Why Mac, Why again?

Command Line Tools is such a nightmare. I am using a macOS Monterey v 12.0.1

I am trying to install a PERL package by:

cpanm DBI

The output is:

clang-10: warning: argument unused during compilation: '--sysroot /opt/MacOSX10.9.sdk' [-Wunused-command-line-argument] 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/usr/lib/libSystem.tbd' for architecture x86_64 clang-10: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [blib/arch/auto/DBI/DBI.bundle] Error 1 -> FAIL Installing DBI failed. See /Users/tito_miniconda/.cpanm/work/1643647544.76158/build.log for details. Retry with --force to force install it.

I am running out of ideas on how to handle this. Please any help is greatly appreciated.

--sysroot /opt/MacOSX10.9.sdk

This suggests that you’re building with the macOS 10.9 SDK. Which is really old and, critically, predates the introduction of .tbd files:

% find MacOSX10.9.sdk -name "*.tbd" | wc -l
        0

Note For background info on .tbd files, see this post.

What version of the command-line tools are you using?

Keep in mind that the command-line tools and the SDKs are pretty much rev-locked, that is, if you’re use the Xcode 13 command-line tools then you need to use the macOS 12 SDK. Historically our tools supported more than one SDK version, but that hasn’t been the case in a very long time.

Share and Enjoy

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

MacOS Monterey ==> unsupported tapi file type '!tapi-tbd' in YAML file
 
 
Q