[llvm-bugs] [Bug 39697] New: condition_variable.cpp fails to compile due to __thread_local_data

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Nov 16 18:35:44 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=39697

            Bug ID: 39697
           Summary: condition_variable.cpp fails to compile due to
                    __thread_local_data
           Product: libc++
           Version: 7.0
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: noloader at gmail.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

I'm working on GCC112 from the compile farm. GCC112 is ppc64-le. I believe it
is now CentOS 7.

Building LLVM from sources using 7.0 release tarballs results in:

cd /home/noloader/llvm_build/projects/compiler-rt/lib/lsan && /usr/bin/c++ 
-D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS -I/home/noloader/llvm_build/projects/compiler-rt/lib/lsan
-I/home/noloader/llvm_source/llvm/projects/compiler-rt/lib/lsan
-I/home/noloader/llvm_build/include -I/home/noloader/llvm_source/llvm/include
-I/home/noloader/llvm_source/llvm/projects/compiler-rt/lib/lsan/..  -fPIC
-fvisibility-inlines-hidden -std=c++11 -Wall -Wextra -Wno-unused-parameter
-Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic
-Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment
-Wall -std=c++11 -Wno-unused-parameter -g    -m64 -fno-function-sections
-fno-lto -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer
-funwind-tables -fno-stack-protector -fvisibility=hidden -fno-lto -O3 -g
-Wno-variadic-macros -Wno-non-virtual-dtor -fno-rtti -o
CMakeFiles/clang_rt.lsan-powerpc64le.dir/lsan_linux.cc.o -c
/home/noloader/llvm_source/llvm/projects/compiler-rt/lib/lsan/lsan_linux.cc
/home/noloader/llvm_source/llvm/projects/libcxx/src/condition_variable.cpp: In
function ‘void
std::__1::notify_all_at_thread_exit(std::__1::condition_variable&,
std::__1::unique_lock<std::__1::mutex>)’:
/home/noloader/llvm_source/llvm/projects/libcxx/src/condition_variable.cpp:82:40:
error: ‘__thread_local_data’ was not declared in this scope
     auto& tl_ptr = __thread_local_data();
                                        ^
/home/noloader/llvm_source/llvm/projects/libcxx/src/condition_variable.cpp:86:32:
error: expected type-specifier before ‘__thread_struct’
         tl_ptr.set_pointer(new __thread_struct);
                                ^

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181117/b58ba9f7/attachment.html>


More information about the llvm-bugs mailing list