[MacPorts] #66352: clang-15: fatal error: '*.h' file not found

MacPorts noreply at macports.org
Mon Nov 28 16:47:20 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):

 {{{
 clang version 15.0.5
 Target: x86_64-apple-darwin22.1.0
 Thread model: posix
 InstalledDir: /opt/local/libexec/llvm-15/bin
  (in-process)
  "/opt/local/libexec/llvm-15/bin/clang" -cc1 -triple x86_64-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=all -ffp-contract=on -fno-rounding-
 math -funwind-tables=2 -fcompatibility-qualified-id-block-type-checking
 -fvisibility-inlines-hidden-static-local-var -target-cpu penryn -tune-cpu
 generic -mllvm -treat-scalable-fixed-error-as-warning -debugger-
 tuning=lldb -target-linker-version 820.1 -v -fcoverage-compilation-
 dir=/Users/judaew -resource-dir
 /opt/local/libexec/llvm-15/lib/clang/15.0.5 -I/opt/local/include
 -I/Library/Java/JavaVirtualMachines/jdk17/Contents/Home/include
 -stdlib=libc++ -internal-isystem
 /opt/local/libexec/llvm-15/bin/../include/c++/v1 -internal-isystem
 /usr/local/include -internal-isystem
 /opt/local/libexec/llvm-15/lib/clang/15.0.5/include -internal-externc-
 isystem /usr/include -fdeprecated-macro -fdebug-compilation-
 dir=/Users/judaew -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 test.o -x c++ test.cpp
 clang -cc1 version 15.0.5 based upon LLVM 15.0.5 default target x86_64
 -apple-darwin22.1.0
 ignoring nonexistent directory "/usr/include"
 #include "..." search starts here:
 #include <...> search starts here:
  /opt/local/include
  /Library/Java/JavaVirtualMachines/jdk17/Contents/Home/include
  /opt/local/libexec/llvm-15/bin/../include/c++/v1
  /usr/local/include
  /opt/local/libexec/llvm-15/lib/clang/15.0.5/include
  /System/Library/Frameworks (framework directory)
  /Library/Frameworks (framework directory)
 End of search list.
 In file included from test.cpp:1:
 In file included from
 /opt/local/libexec/llvm-15/bin/../include/c++/v1/iostream:41:
 In file included from
 /opt/local/libexec/llvm-15/bin/../include/c++/v1/ios:220:
 In file included from
 /opt/local/libexec/llvm-15/bin/../include/c++/v1/__ios/fpos.h:14:
 In file included from
 /opt/local/libexec/llvm-15/bin/../include/c++/v1/iosfwd:99:
 In file included from
 /opt/local/libexec/llvm-15/bin/../include/c++/v1/__mbstate_t.h:29:
 /opt/local/libexec/llvm-15/bin/../include/c++/v1/wchar.h:123:15: fatal
 error: 'wchar.h' file not found
 #include_next <wchar.h>
               ^~~~~~~~~
 1 error generated.
 }}}

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


More information about the macports-tickets mailing list