Unable to compile on Mac OS X

Issue #5 resolved
Pradeep Gowda created an issue
$ git log -1
commit 19b5a0ea71ae04d270aa3f2040d78f67707bd221
Author: tkatchev <tkatchev@gmail.com>
Date:   Mon Sep 26 12:42:39 2016 +0300

    Fixed clang warnings.

$ CXX=clang++ make
clang++ -std=c++11 -O3 -Wall -Iaxe -pthread -lm tab.cc help.cc -o tab
In file included from tab.cc:4:
In file included from ./tab.h:13:
In file included from ./funcs.h:8:
./funcs/index.h:159:12: error: thread-local storage is not supported for the current target
    static thread_local obj::Tuple* key = new obj::Tuple;
           ^
In file included from tab.cc:4:
In file included from ./tab.h:13:
In file included from ./funcs.h:15:
./funcs/cutgrep.h:176:12: error: thread-local storage is not supported for the current target
    static thread_local RegexCache cache;
           ^
In file included from tab.cc:4:
In file included from ./tab.h:13:
In file included from ./funcs.h:26:
./funcs/rand.h:5:12: error: thread-local storage is not supported for the current target
    static thread_local std::mt19937_64 ret(seed);
           ^
In file included from tab.cc:23:
./threaded.h:13:16: error: thread-local storage is not supported for the current target
        static thread_local obj::String ret;
               ^
4 errors generated.
make: *** [tab] Error 1
$ clang++ --version
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Comments (5)

  1. Pradeep Gowda reporter

    Appears to be fixed in XCode 8

    $ CXX=clang++ make
    clang++ -std=c++11 -O3 -Wall -Iaxe -pthread -lm tab.cc help.cc -o tab
    
    $ clang++ --version
    Apple LLVM version 8.0.0 (clang-800.0.38)
    Target: x86_64-apple-darwin15.6.0
    Thread model: posix
    InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
    
  2. Log in to comment