[MacPorts] #63402: ccache @ 4.4_0 error: static_assert failed "unique_ptr constructed with null function pointer deleter"

MacPorts noreply at macports.org
Fri Oct 1 19:50:45 UTC 2021


#63402: ccache @ 4.4_0 error: static_assert failed "unique_ptr constructed with
null function pointer deleter"
-----------------------+---------------------------------
  Reporter:  thetrial  |      Owner:  ryandesign
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.7.1
Resolution:            |   Keywords:  elcapitan legacy-os
      Port:  ccache    |
-----------------------+---------------------------------

Comment (by kencu):

 the usual drill is to force a newer clang compiler on these mid-range
 systems.

 Most of the systems <= 10.9 are forced to clang-9.0 or newer for builds
 that fail with the system clang already.

 Systems 10.10 to 10.13 "used to usually work" with the system clang, but
 now newer versions of software use newer features of compilers, so things
 that used to work no longer do.

 For a quick test, install clang-9.0 and force the build to that:
 {{{
 sudo port clean ccache
 sudo port -v -N install clang-9.0
 sudo port -v install ccache configure.compiler=macports-clang-9.0
 }}}

 and if that works, report back.

 Sometimes, if it is an important bootstrapping port, somebody might spend
 the time to find a way to fix the build using the older system compiler. I
 did that recently for cmake, for example, on 10.7 through 10.9.

 Most of the time, that is a total waste of effort, and just blacklisting
 the old system clang is a much more efficient use of your limited time
 resources.

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


More information about the macports-tickets mailing list