[MacPorts] #70341: g++ fails to compile when -libstd=libc++ is set

MacPorts noreply at macports.org
Thu Jul 18 19:13:50 UTC 2024


#70341: g++ fails to compile when -libstd=libc++ is set
--------------------------------+--------------------
  Reporter:  mouse07410         |      Owner:  (none)
      Type:  defect             |     Status:  new
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:
Resolution:                     |   Keywords:
      Port:  gcc12 gcc13 gcc14  |
--------------------------------+--------------------

Comment (by cjones051073):

 OK, so yes it is correct a number of SDKROOT headers get pulled in when
 you build, this is true regardless of if you are using libc++ or the GCC
 default stdlibc++. So if a future Xcode/CLT update adds the declarations
 currently missing that would include fix the issue.

 Of course, that only helps if you are using this future hypothetical
 Xcode/CLT, so by contraction will only help with the newest OSes that
 support that Xcode.

 That is also only true until the next incompatibility hits you, as you see
 above. In short, as long as support libc++ with GCC remains a 'side
 project' as it currently would seem to be, support is going to always be
 very patchy.

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


More information about the macports-tickets mailing list