[MacPorts] #42506: sparsehash: configuration error

MacPorts noreply at macports.org
Thu Nov 7 00:28:41 UTC 2019


#42506: sparsehash: configuration error
-------------------------+------------------------
  Reporter:  jwhowse4    |      Owner:  ryandesign
      Type:  defect      |     Status:  accepted
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.2.1
Resolution:              |   Keywords:
      Port:  sparsehash  |
-------------------------+------------------------
Changes (by ryandesign):

 * owner:  macports-tickets@… => ryandesign
 * status:  assigned => accepted


Comment:

 tr1 is an old implementation of features which eventually became
 standardized in C++11. libstdc++, which was the default C++ standard
 library on OS X 10.8 and earlier and is also used by g++ and llvm-g++ on
 any OS version, supports tr1. Apple's old libstdc++ does not support
 C++11. Newer versions of libstdc++ used by newer versions of g++ do
 support C++11. libc++, a new C++ standard library which is the default on
 OS X 10.9 and later and is used by clang by default on OS X 10.9 and
 later, supports C++11 and does not support tr1.

 The way that the sparsehash port had configured itself was correct for
 your C++ standard library. The problem, from your log, is that
 kdevplatform was trying to build using libc++, even though that was not
 the correct C++ standard library to use on your OS version. It is unclear
 why kdevplatform is doing this, since it did not indicate that it required
 C++11, which would be the only reason I know of for requiring libc++ on
 macOS.

 See also #55773 for another manifestation of this problem with textmate
 which also requires the use of libc++, and
 https://github.com/sparsehash/sparsehash/issues/145 for my unanswered plea
 to the developers to change how they handle this.

 As of MacPorts 2.6.0, we now default to libc++ on 10.6-10.8 instead of
 libstdc++. We deleted and are in the process of rebuilding all archives
 that were linked with libc++, but we did not notice that sparsehash also
 needs to be rebuilt, since it does not have any compiled files and is a
 header-only library. I will increase its revision to rebuild it.

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


More information about the macports-tickets mailing list