OSX+boost1.50.0 comboreduct action_reduction compile-time error

Bug #1068067 reported by David Hart
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenCog
New
Undecided
Unassigned

Bug Description

[ 56%] Building CXX object opencog/comboreduct/CMakeFiles/comboreduct.dir/reduct/action_rules.cc.o
/Users/dhart/opencog-r7751/opencog/comboreduct/reduct/action_reduction.cc: In function 'const opencog::reduct::rule& opencog::reduct::action_reduction()':
/Users/dhart/opencog-r7751/opencog/comboreduct/reduct/action_reduction.cc:49:12: error: 'mutex' in namespace 'std' does not name a type
/Users/dhart/opencog-r7751/opencog/comboreduct/reduct/action_reduction.cc:50:5: error: 'lock_guard' is not a member of 'std'
/Users/dhart/opencog-r7751/opencog/comboreduct/reduct/action_reduction.cc:50:5: note: suggested alternative:
/opt/local/include/boost/thread/locks.hpp:252:11: note: 'boost::lock_guard'
/Users/dhart/opencog-r7751/opencog/comboreduct/reduct/action_reduction.cc:50:21: error: 'mutex' is not a member of 'std'
/Users/dhart/opencog-r7751/opencog/comboreduct/reduct/action_reduction.cc:50:21: note: suggested alternative:
/opt/local/include/boost/thread/pthread/mutex.hpp:35:11: note: 'boost::mutex'
/Users/dhart/opencog-r7751/opencog/comboreduct/reduct/action_reduction.cc:50:50: error: 'm' was not declared in this scope
/Users/dhart/opencog-r7751/opencog/comboreduct/reduct/action_reduction.cc:50:51: error: 'static_ctor_lock' was not declared in this scope
make[2]: *** [opencog/comboreduct/CMakeFiles/comboreduct.dir/reduct/action_reduction.cc.o] Error 1

Revision history for this message
David Hart (dhart) wrote :

Note, the same compiles on Linux with boost 1.50.0 (OSX version is also 1.50.0; typo!)

Both use gcc-4.6.3.

summary: - OSX+boost1.50.1 comboreduct compile-time error
+ OSX+boost1.50.0 comboreduct compile-time error
summary: - OSX+boost1.50.0 comboreduct compile-time error
+ OSX+boost1.50.0 comboreduct action_reduction compile-time error
Revision history for this message
David Hart (dhart) wrote :

It seems this is an issue with MacPorts gcc46 and poor support for std::thread (and I presume, by extension, std::mutex). So, I'll try gcc47...

http://stackoverflow.com/questions/4636651/substituting-boost-for-c0x-library-features

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.