tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
gcc-4.8/c++ threads, please
Hi!
I'm trying to build supercollider from git.
git clone --recursive -b netbsd
https://github.com/supercollider/supercollider.git
I'm using 6.99.40/amd64 from 20140422.
Building fails with:
In file included from
/archive/foreign/supercollider/common/SC_SyncCondition.h:25:0,
from
/archive/foreign/supercollider/server/plugins/DiskIO_UGens.cpp:24:
/archive/foreign/supercollider/common/SC_Lock.h:30:9: error: ‘mutex’ in
namespace ‘std’ does not name a type
typedef std::mutex SC_Lock;
^
/archive/foreign/supercollider/common/SC_Lock.h:31:12: error: ‘std::mutex’ has
not been declared
using std::mutex;
^
/archive/foreign/supercollider/common/SC_Lock.h:32:12: error:
‘std::timed_mutex’ has not been declared
using std::timed_mutex;
^
/archive/foreign/supercollider/common/SC_Lock.h:35:12: error: ‘std::cv_status’
has not been declared
using std::cv_status;
^
/archive/foreign/supercollider/common/SC_Lock.h:36:9: error:
‘condition_variable_any’ in namespace ‘std’ does not name a type
typedef std::condition_variable_any condition_variable_any;
^
/archive/foreign/supercollider/common/SC_Lock.h:37:12: error: ‘std::thread’ has
not been declared
using std::thread;
^
/archive/foreign/supercollider/common/SC_Lock.h:38:30: error: ‘this_thread’ is
not a namespace-name
namespace this_thread = std::this_thread;
^
/archive/foreign/supercollider/common/SC_Lock.h:38:41: error: expected
namespace-name before ‘;’ token
namespace this_thread = std::this_thread;
^
/archive/foreign/supercollider/common/SC_Lock.h:41:9: error: ‘SC_Lock’ does not
name a type
typedef SC_Lock mutex;
^
Looking at /usr/include/g++/bits/x86_64/c++config.h, lots of threading
stuff is disabled:
/* Define to 1 if the target assembler supports thread-local storage. */
/* #undef _GLIBCXX_HAVE_CC_TLS */
/* Define to 1 if the target supports thread-local storage. */
/* #undef _GLIBCXX_HAVE_TLS */
/* Define to 1 if you have the `__cxa_thread_atexit_impl' function. */
/* #undef _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL */
/* Define if gthreads library is available. */
/* #undef _GLIBCXX_HAS_GTHREADS */
/* Define if pthreads_num_processors_np is available in <pthread.h>. */
/* #undef _GLIBCXX_USE_PTHREADS_NUM_PROCESSORS_NP */
/* Define to 1 if mutex_timedlock is available. */
#define _GTHREAD_USE_MUTEX_TIMEDLOCK 0
Can someone please add support for threads to g++?
Thanks,
Thomas
Home |
Main Index |
Thread Index |
Old Index