[MacPorts] #57513: bazel @0.18.0: error: no type named 'unique_ptr' in namespace 'std'

MacPorts noreply at macports.org
Mon Nov 5 18:19:14 UTC 2018


#57513: bazel @0.18.0: error: no type named 'unique_ptr' in namespace 'std'
-------------------------+--------------------------
  Reporter:  ryandesign  |      Owner:  RootFunction
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:  bazel       |
-------------------------+--------------------------

Comment (by ryandesign):

 Sorry, you're right, I didn't look at the portfile, only at the error
 message.

 The cxx11 1.1 portgroup can only work if the portfile uses the compiler
 and cxxflags that MacPorts tells it to. Looks like bazel might not be
 passing `configure.cxxflags` on to the build—that's where the `-stdlib`
 flag that tells it what C++ library to use would be found. The default C++
 library on 10.9 and later supports C++11 while the one on 10.8 and earlier
 doesn't.

 I haven't found there to be any particular difference between specifying
 c++0x or c++11, but maybe in some cases there is.

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


More information about the macports-tickets mailing list