[MacPorts] #70750: C++ headers are not found after updating to CLTs version 16.0

MacPorts noreply at macports.org
Thu Sep 19 17:05:04 UTC 2024


#70750: C++ headers are not found after updating to CLTs version 16.0
-----------------------+----------------------------
  Reporter:  SaintBol  |      Owner:  (none)
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:  sequoia sonoma
      Port:            |
-----------------------+----------------------------

Comment (by shpokas):

 Replying to [comment:54 SaintBol]:
 > But does it work with Xcode installed and up-to-date, and
 CommandLineTools removed ?

 No, it does not.
 1. removed CLT with
 {{{
 rm -fr /Library/Developer/CommandLineTools
 }}}


 2. Installed Xcode
 3. Verified I have Xcode active (also accepted license in the process)

 {{{
 $ clang --version
 Apple clang version 16.0.0 (clang-1600.0.26.3)
 Target: arm64-apple-darwin24.0.0
 Thread model: posix
 InstalledDir:
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
 $ xcode-select -p
 /Applications/Xcode.app/Contents/Developer
 }}}


 4. Got the same error while building **db48**


 {{{
 :info:build ./libtool --mode=compile /usr/bin/clang++ -stdlib=libc++ -c
 -I. -I../dist/.. -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -pipe -Os
 -stdlib=libc++ -is
 ysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -arch arm64
 ../dist/../cxx/cxx_logc.cpp
 :info:build In file included from ../dist/../cxx/cxx_db.cpp:13:
 :info:build ./db_cxx.h:59:10: fatal error: 'iostream.h' file not found
 :info:build    59 | #include <iostream.h>
 :info:build       |          ^~~~~~~~~~~~
 }}}

 iostream.h file is there:


 {{{
 $ find /Applications/Xcode.app -iname iostream.h
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/IOKit/stream/IOStream.h
 }}}

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


More information about the macports-tickets mailing list