- changed title to Unable to compile on Mac OS X
- edited description
Unable to compile on Mac OS X
Issue #5
resolved
$ 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)
-
reporter -
repo owner This is a bug in Apple's clang. See here: http://stackoverflow.com/a/29929949
According to that page it should be fixed in XCode 8.
Is updating to XCode 8 an option? Can you confirm that it is indeed fixed?
-
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
-
reporter - changed status to closed
Issue with clang fixed in XCode 8. Closing
-
repo owner - changed status to resolved
Fixes for GCC 12. Fixes
#5→ <<cset 673bdac99864>>
- Log in to comment