[MacPorts] #67125: ccache fails to build on 10.5

MacPorts noreply at macports.org
Mon Mar 20 17:06:39 UTC 2023


#67125: ccache fails to build on 10.5
-----------------------+-----------------------
  Reporter:  rmottola  |      Owner:  michaelld
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:  leopard
      Port:  ccache    |
-----------------------+-----------------------

Comment (by kencu):

 We haven't really crossed this bridge yet.

 On 10.5 using macports-libstdc++ as you are, the headers and libraries are
 coming from libgcc. On 10.5, that is currently libgcc 7.

 gcc7 did not have a full implementation of std_filesystem, although it
 apparently does exist in experimental:

 https://stackoverflow.com/questions/45867379/why-does-gcc-not-seem-to-
 have-the-filesystem-standard-library

 so if you changed the header to:

 {{{
 #include <experimental/filesystem>
 }}}

 and added the needed link library:

 {{{
 -lstdc++fs
 }}}

 you might likely find it works.

 Once we (someone) gets around to doing a proper upgrade of the libgcc
 ports on 10.4/10.5 default to gcc12, then std_filesystem should just be
 found automatically I would hope.

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


More information about the macports-tickets mailing list