Hi,
When I try to build an analysis code using cmake, I get an error shown below,
/opt/root/include/root/ThreadLocalStorage.h:228:4: error: thread-local storage
is not supported for the current target
TTHREAD_TLS(T*) ptr = NULL;
^
/opt/root/include/root/ThreadLocalStorage.h:103:29: note: expanded from macro
’TTHREAD_TLS’
define TTHREAD_TLS(type) thread_local type
^
/opt/root/include/root/ThreadLocalStorage.h:229:4: error: thread-local storage
is not supported for the current target
TTHREAD_TLS(Bool_t) isInit(kFALSE);
^
/opt/root/include/root/ThreadLocalStorage.h:103:29: note: expanded from macro
’TTHREAD_TLS’
define TTHREAD_TLS(type) thread_local type
^
/opt/root/include/root/ThreadLocalStorage.h:239:4: error: thread-local storage
is not supported for the current target
TTHREAD_TLS(Array*) ptr = NULL;
^
/opt/root/include/root/ThreadLocalStorage.h:103:29: note: expanded from macro
’TTHREAD_TLS’
define TTHREAD_TLS(type) thread_local type
^
/opt/root/include/root/ThreadLocalStorage.h:240:4: error: thread-local storage
is not supported for the current target
TTHREAD_TLS(Bool_t) isInit(kFALSE);
^
I am using ROOT v 5.34.34 and Mac OS X El Capitan version 10.11.5 (clang v 703.0.31) and Xcode 7.3.1
Any idea how to resolve this problem?
-Thanks