Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-6524

thread-local storage is unsupported for clang Apple 6.0

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • High
    • Resolution: Fixed
    • 5.34/00
    • None
    • Core Libraries
    • None
    • Mac OSX 10.9, clang Apple LLVM version 6.0 (clang-600.0.41.2) (based on LLVM 3.5svn)
      Same error happen also with clang 5.0 from Apple

    Description

      clang++ -m64 -pipe -Wshadow -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Iinclude -DR__HAVE_CONFIG -std=c+11 -stdlib=libc+ -pthread -I. -o core/base/src/ManualBase4.o -c /Users/uhlig/software/fair/fairsoft/source/jul14/tools/root/core/base/src/ManualBase4.cxx
      In file included from /Users/uhlig/software/fair/fairsoft/source/jul14/tools/root/core/base/src/ManualBase4.cxx:18:
      include/TClass.h:213:11: error: thread-local storage is unsupported for the current target
      static TTHREAD_TLS(enum ENewType) fgCallingNew; //Intent of why/how TClass::New() is called
      ^
      include/ThreadLocalStorage.h:72:29: note: expanded from macro 'TTHREAD_TLS'

      1. define TTHREAD_TLS(type) thread_local type
        ^
        1 error generated.
        make: *** [core/base/src/ManualBase4.o] Error 1

      This is according to information found doing some web search a problem related to the Apple version of clang

      http://stackoverflow.com/questions/23791060/c-thread-local-storage-clang-503-0-40-mac-osx

      Using a clang version 3.4 compiled from sources the code can be compiled on the same Mac system.

      Attachments

        Activity

          People

            pcanal Philippe Canal
            fuhlig Florian Uhlig
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: