[MacPorts] #53040: py27-wxpython-3.0 @3.0.2.0 fatal error: 'type_traits' file not found on systems upgraded to libc++

MacPorts noreply at macports.org
Mon Dec 12 07:45:42 CET 2016


#53040: py27-wxpython-3.0 @3.0.2.0 fatal error: 'type_traits' file not found on
systems upgraded to libc++
------------------------------+----------------------------
  Reporter:  kencu            |      Owner:  jyrkiwahlstedt
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:
Resolution:                   |   Keywords:
      Port:  py-wxpython-3.0  |
------------------------------+----------------------------

Comment (by mojca):

 [http://en.cppreference.com/w/cpp/header/type_traits type_traits] is part
 of C++11 standard.

 The libstdc++ as shipped on OS X (I think it's version 2 or something)
 doesn't support C++11. If you want C++11, you need to switch to libc++ (or
 to gcc 4.7+ which then using its own libstdc++ version 3). In theory you
 would also need to add something like `-std=c++11` to compiler flags, but
 on OS X you would automatically get (some?) C++11 features just by
 switching to libc++.

 The problem you are experiencing is because wxWidgets' configure checks
 whether particular features are available and when you build it on a
 "libc++" installation, it would find the C++11 features and use them, but
 then during the linking the flag is apparently missing and it won't be
 able to find the features it found earlier.

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


More information about the macports-tickets mailing list