#49867: py-bob-core, py-bob-io-base: build fails on 10.8, fatal error: 'type_traits' file not found -----------------------------------------+----------------------------- Reporter: devans@… | Owner: tiago.pereira@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-bob-core py-bob-io-base | -----------------------------------------+----------------------------- Comment (by devans@…): After testing I found that both py-bob-core and py-bob-io-base are effected my this build error. The error occurs on platforms that use libstdc++ with boost 1.59.0 and include directly or indirectly `boost/thread/detail/move.hpp`. The workaround is to assert -DBOOST_NO_CXX11_RVALUE_REFERENCES which can be seen by inspection of move.hpp to disable the inclusion of <type_traits> which is not libstdc++ compatible. The questionable side effect is that boost will then avoid using rvalue references throughout even though Apple libstdc++ does support them. We've seen this with a number of ports that use boost now so I'm reporting this issue upstream to the boost developers. Attached are patches for the two modules that assert -DBOOST_NO_CXX11_RVALUE_REFERENCES if libstdc++ is being used. I had some difficulty figuring out how to get your build system to add -DBOOST_NO_CXX11_RVALUE_REFERENCES to the appropriate build commands so you may be able to suggest a more elegant approach. Let me know if these are ok to commit. -- Ticket URL: <https://trac.macports.org/ticket/49867#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X