[MacPorts] #66886: clang-devel seems to be broken on macOS 12
MacPorts
noreply at macports.org
Sat Feb 11 06:58:26 UTC 2023
#66886: clang-devel seems to be broken on macOS 12
--------------------------+----------------------
Reporter: catap | Owner: jeremyhu
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: clang-devel |
--------------------------+----------------------
Comment (by kencu):
working normally on MacOS 13 :
{{{
% clang++-mp-devel -v test.cc
clang version 16.0.0
Target: arm64-apple-darwin22.2.0
Thread model: posix
InstalledDir: /opt/local/libexec/llvm-devel/bin
"/opt/local/libexec/llvm-devel/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.cc -mrelocation-
model pic -pic-level 2 -mframe-pointer=non-leaf -ffp-contract=on -fno-
rounding-math -funwind-tables=1 -target-sdk-version=13.1 -fcompatibility-
qualified-id-block-type-checking -fvisibility-inlines-hidden-static-local-
var -target-cpu apple-m1 -target-feature +v8.5a -target-feature +crc
-target-feature +lse -target-feature +rdm -target-feature +crypto -target-
feature +dotprod -target-feature +fp-armv8 -target-feature +neon -target-
feature +fp16fml -target-feature +ras -target-feature +rcpc -target-
feature +zcm -target-feature +zcz -target-feature +fullfp16 -target-
feature +sm4 -target-feature +sha3 -target-feature +sha2 -target-feature
+aes -target-abi darwinpcs -mllvm -treat-scalable-fixed-error-as-warning
-debugger-tuning=lldb -target-linker-version 820.1 -v -fcoverage-
compilation-dir=/Users/Shared -resource-dir /opt/local/libexec/llvm-
devel/lib/clang/16 -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-devel/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-devel/lib/clang/16/include
-internal-externc-isystem
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
-fdeprecated-macro -fdebug-compilation-dir=/Users/Shared -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/97/nn3swcb52bg003_4bctdbyd80000gn/T/test-84bac6.o -x c++
test.cc
clang -cc1 version 16.0.0 based upon LLVM 16.0.0git default target arm64
-apple-darwin22.2.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-devel/bin/../include/c++/v1
/opt/local/libexec/llvm-devel/lib/clang/16/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-devel/bin/ld" -demangle -lto_library
/opt/local/libexec/llvm-devel/lib/libLTO.dylib -no_deduplicate -dynamic
-arch arm64 -platform_version macos 13.0.0 13.1 -syslibroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
-o a.out -L/usr/local/lib /var/folders/97/nn3swcb52bg003_4bctdbyd80000gn/T
/test-84bac6.o -lc++ -lSystem /opt/local/libexec/llvm-
devel/lib/clang/16/lib/darwin/libclang_rt.osx.a
}}}
if you use the "-v" option we might spot what is going wrong on your
system. My first guess is it is not finding your MacOSX.sdk anywhere, but
we shall see...
--
Ticket URL: <https://trac.macports.org/ticket/66886#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list