[MacPorts] #66352: clang-15: fatal error: '*.h' file not found
MacPorts
noreply at macports.org
Mon Nov 28 21:44:59 UTC 2022
#66352: clang-15: fatal error: '*.h' file not found
-----------------------+-----------------------------
Reporter: judaew | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.0
Resolution: | Keywords: ventura, x86_64
Port: clang-15 |
-----------------------+-----------------------------
Comment (by judaew):
On macOS 13 I have only CTL, but no Xcode. Is there any way to fix this
problem without installing Xcode?
If I use Clang from CTL, then the building works correctly. Why doesn't
clang from MacPorts set `-isysroot` by default?
{{{
/usr/bin/clang++ -v test2.cpp
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: x86_64-apple-darwin22.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
"/Library/Developer/CommandLineTools/usr/bin/clang" -cc1 -triple x86_64
-apple-macosx13.0.0 -Wundef-prefix=TARGET_OS_ -Wdeprecated-objc-isa-usage
-Werror=deprecated-objc-isa-usage -Werror=implicit-function-declaration
-emit-obj -mrelax-all --mrelax-relocations -disable-free -clear-ast-
before-backend -disable-llvm-verifier -discard-value-names -main-file-name
test2.cpp -mrelocation-model pic -pic-level 2 -mframe-pointer=all -fno-
strict-return -fno-rounding-math -funwind-tables=2 -target-sdk-
version=13.0 -fvisibility-inlines-hidden-static-local-var -target-cpu
penryn -tune-cpu generic -debugger-tuning=lldb -target-linker-version
820.1 -v -resource-dir
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0 -isysroot
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/opt/local/include
-I/Library/Java/JavaVirtualMachines/jdk17/Contents/Home/include
-I/usr/local/include -cxx-isystem
/opt/local/libexec/llvm-15/include/c++/v1/ -cxx-isystem
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
-stdlib=libc++ -internal-isystem
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1
-internal-isystem
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/local/include
-internal-isystem
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include
-internal-externc-isystem
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -internal-
externc-isystem /Library/Developer/CommandLineTools/usr/include -Wno-
reorder-init-list -Wno-implicit-int-float-conversion -Wno-c99-designator
-Wno-final-dtor-non-final-class -Wno-extra-semi-stmt -Wno-misleading-
indentation -Wno-quoted-include-in-framework-header -Wno-implicit-
fallthrough -Wno-enum-enum-conversion -Wno-enum-float-conversion -Wno-
elaborated-enum-base -Wno-reserved-identifier -Wno-gnu-folding-constant
-Wno-cast-function-type -Wno-bitwise-instead-of-logical -fdeprecated-macro
-fdebug-compilation-dir=/Users/judaew -ferror-limit 19 -stack-protector 1
-fstack-check -mdarwin-stkchk-strong-link -fblocks -fencode-extended-
block-signature -fregister-global-dtors-with-atexit -fgnuc-version=4.2.1
-fno-cxx-modules -fcxx-exceptions -fexceptions -fmax-type-align=16
-fcommon -fcolor-diagnostics -clang-vendor-
feature=+messageToSelfInClassMethodIdReturnType -clang-vendor-
feature=+disableInferNewAvailabilityFromInit -clang-vendor-
feature=+disableNonDependentMemberExprInCurrentInstantiation -fno-odr-
hash-protocols -clang-vendor-feature=+enableAggressiveVLAFolding -clang-
vendor-feature=+revert09abecef7bbf -clang-vendor-feature=+thisNoAlignAttr
-clang-vendor-feature=+thisNoNullAttr -mllvm -disable-aligned-alloc-
awareness=1 -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o
/var/folders/wf/1v73g2h55x32pt1n0njr27v00000gn/T/test2-f60f97.o -x c++
test2.cpp
clang -cc1 version 14.0.0 (clang-1400.0.29.202) default target x86_64
-apple-darwin22.1.0
ignoring nonexistent directory
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/local/include"
ignoring nonexistent directory
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/Library/Frameworks"
ignoring duplicate directory
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include"
#include "..." search starts here:
#include <...> search starts here:
/opt/local/include
/Library/Java/JavaVirtualMachines/jdk17/Contents/Home/include
/usr/local/include
/opt/local/libexec/llvm-15/include/c++/v1
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include
/Library/Developer/CommandLineTools/usr/include
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks
(framework directory)
End of search list.
"/Library/Developer/CommandLineTools/usr/bin/ld" -demangle -lto_library
/Library/Developer/CommandLineTools/usr/lib/libLTO.dylib -no_deduplicate
-dynamic -arch x86_64 -platform_version macos 13.0.0 13.0 -syslibroot
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -o a.out
-L/usr/local/lib
/var/folders/wf/1v73g2h55x32pt1n0njr27v00000gn/T/test2-f60f97.o -lc++
-lSystem
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/lib/darwin/libclang_rt.osx.a
}}}
--
Ticket URL: <https://trac.macports.org/ticket/66352#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list