[MacPorts] #66380: clang-14: unable to locate default SDK

MacPorts noreply at macports.org
Sat Dec 3 15:10:25 UTC 2022


#66380: clang-14: unable to locate default SDK
---------------------------+--------------------
  Reporter:  MarcKaufmann  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:
Resolution:                |   Keywords:
      Port:  clang-14      |
---------------------------+--------------------

Comment (by MarcKaufmann):

 OK, the compilation has finished (I also synced port) and it is now
 working. The script passes:

 {{{
 % clang++-mp-14 -v -Wl, -v test.cpp
 clang version 14.0.6
 Target: arm64-apple-darwin22.1.0
 Thread model: posix
 InstalledDir: /opt/local/libexec/llvm-14/bin
  "/opt/local/libexec/llvm-14/bin/clang" -cc1 -triple arm64-apple-
 macosx13.0.0 -Wundef-prefix=TARGET_OS_ -Werror=undef-prefix -Wdeprecated-
 objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all
 --mrelax-relocations -disable-free -clear-ast-before-backend -disable-
 llvm-verifier -discard-value-names -main-file-name test.cpp -mrelocation-
 model pic -pic-level 2 -mframe-pointer=non-leaf -ffp-contract=on -fno-
 rounding-math -funwind-tables=2 -target-sdk-version=13.0 -fcompatibility-
 qualified-id-block-type-checking -fvisibility-inlines-hidden-static-local-
 var -target-cpu apple-m1 -target-feature +v8.5a -target-feature +fp-armv8
 -target-feature +neon -target-feature +crc -target-feature +crypto
 -target-feature +dotprod -target-feature +fp16fml -target-feature +ras
 -target-feature +lse -target-feature +rdm -target-feature +rcpc -target-
 feature +zcm -target-feature +zcz -target-feature +fullfp16 -target-
 feature +sha2 -target-feature +aes -target-abi darwinpcs -fallow-half-
 arguments-and-returns -mllvm -treat-scalable-fixed-error-as-warning
 -debugger-tuning=lldb -target-linker-version 820.1 -v -v -fcoverage-
 compilation-dir=/tmp -resource-dir
 /opt/local/libexec/llvm-14/lib/clang/14.0.6 -isysroot
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
 -I/usr/local/include -stdlib=libc++ -internal-isystem
 /opt/local/libexec/llvm-14/bin/../include/c++/v1 -internal-isystem
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/local/include
 -internal-isystem /opt/local/libexec/llvm-14/lib/clang/14.0.6/include
 -internal-externc-isystem
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
 -fdeprecated-macro -fdebug-compilation-dir=/tmp -ferror-limit 19 -stack-
 protector 1 -fblocks -fencode-extended-block-signature -fregister-global-
 dtors-with-atexit -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions
 -fmax-type-align=16 -fcolor-diagnostics -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o
 /var/folders/8_/0lh40nm57qq3069hrzss3s1m0000gn/T/test-c90de3.o -x c++
 test.cpp
 clang -cc1 version 14.0.6 based upon LLVM 14.0.6 default target arm64
 -apple-darwin22.1.0
 ignoring nonexistent directory "/usr/local/include"
 ignoring nonexistent directory
 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/local/include"
 ignoring nonexistent directory
 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Library/Frameworks"
 #include "..." search starts here:
 #include <...> search starts here:
  /opt/local/libexec/llvm-14/bin/../include/c++/v1
  /opt/local/libexec/llvm-14/lib/clang/14.0.6/include
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks
 (framework directory)
 End of search list.
  "/opt/local/libexec/llvm-14/bin/ld" -demangle -lto_library
 /opt/local/libexec/llvm-14/lib/libLTO.dylib -no_deduplicate -dynamic -arch
 arm64 -platform_version macos 13.0.0 13.0 -syslibroot
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
 -o a.out -L/usr/local/lib /var/folders/8_/0lh40nm57qq3069hrzss3s1m0000gn/T
 /test-c90de3.o -lc++ -lSystem
 /opt/local/libexec/llvm-14/lib/clang/14.0.6/lib/darwin/libclang_rt.osx.a
 }}}

 and the package installation works as well. I guess that something had
 gone with my original installation of clang-14.

-- 
Ticket URL: <https://trac.macports.org/ticket/66380#comment:19>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list