[Llvm-bgq-discuss] Does bgclang++11 implement thread_local

Patrick E Gartung gartung at fnal.gov
Tue Jul 12 23:25:54 CDT 2016


Hi 

I am trying to link code that uses thread_local and I get this error:

/soft/compilers/bgclang/nightly/wbin/bgclang++11   -g -fPIC -fno-vectorize -fno-slp-vectorize -std=c++11 -std=c++14  -dynamic -lsupc++ CMakeFiles/TBBDemo.dir/main.cpp.o  -o ../BuildProducts/bin/TBBDemo -rdynamic ../BuildProducts/lib64/libTBBFrameworkCore.a ../BuildProducts/lib64/libTBBTestModules.so ../BuildProducts/lib64/libTBBFrameworkCore.a /home/gartung/tbb44_20160526oss/build/linux_bg_clang_cc4.4.7_libc2.12_kernel2.6.32_release/libtbbmalloc.a /home/gartung/tbb44_20160526oss/build/linux_bg_clang_cc4.4.7_libc2.12_kernel2.6.32_release/libtbb.a -Wl,-rpath,/home/gartung/build/BuildProducts/lib64: 
../BuildProducts/lib64/libTBBFrameworkCore.a(ModuleThreadStack.cpp.o): In function `demo::ModuleThreadStack::privateStack()':
/home/gartung/toy-mt-framework/TBBProcessingDemo/TBBFrameworkCore/ModuleThreadStack.cpp:21: undefined reference to `__cxa_thread_atexit’

This is line 21 of ModuleThreadStack.cpp

    thread_local std::vector<TransitionModuleID> s_stack;

Does bgclang++11 implement thread_local?

Patrick Gartung


More information about the llvm-bgq-discuss mailing list