<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - condition_variable.cpp fails to compile due to __thread_local_data"
   href="https://bugs.llvm.org/show_bug.cgi?id=39697">39697</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>condition_variable.cpp fails to compile due to __thread_local_data
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libc++
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>7.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>noloader@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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);
                                ^</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>