<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 - Missing #include "pthread.h" in tils/unittest/googletest/include/gtest/"
   href="https://bugs.llvm.org/show_bug.cgi?id=40212">40212</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Missing #include "pthread.h" in tils/unittest/googletest/include/gtest/
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

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

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>dilyan.palauzov@aegee.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Linking llvm 7.0.1 fails with

[ 59%] Built target LLVMX86Disassembler
[ 59%] Built target XCoreCommonTableGen
[ 59%] Built target LLVMXCoreInfo
[ 59%] Built target LLVMXCoreAsmPrinter
[ 59%] Built target LLVMXCoreDesc
[ 59%] Built target LLVMXCoreCodeGen
[ 59%] Built target LLVMXCoreDisassembler
[ 59%] Built target LLVMLineEditor
[ 59%] Built target LLVMCoverage
[ 59%] Built target DllOptionsTableGen
[ 59%] Built target LLVMDlltoolDriver
[ 59%] Built target LibOptionsTableGen
[ 59%] Built target LLVMLibDriver
[ 59%] Built target LLVMXRay
[ 59%] Linking CXX shared library ../../lib/libgtest.so
/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../x86_64-pc-linux-gnu/bin/ld:
/tmp/cczPzsUM.ltrans0.ltrans.o: in function
`testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::~ThreadLocal()':
/src/llvm/llvm-7.0.1.src/utils/unittest/googletest/include/gtest/internal/gtest-port.h:2049:
undefined reference to `pthread_getspecific'
/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../x86_64-pc-linux-gnu/bin/ld:
/src/llvm/llvm-7.0.1.src/utils/unittest/googletest/include/gtest/internal/gtest-port.h:2053:
undefined reference to `pthread_key_delete'
/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../x86_64-pc-linux-gnu/bin/ld:
/tmp/cczPzsUM.ltrans0.ltrans.o: in function
`testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo,
std::allocator<testing::internal::TraceInfo> > >::~ThreadLocal()':
/src/llvm/llvm-7.0.1.src/utils/unittest/googletest/include/gtest/internal/gtest-port.h:2049:
undefined reference to `pthread_getspecific'
/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../x86_64-pc-linux-gnu/bin/ld:
/src/llvm/llvm-7.0.1.src/utils/unittest/googletest/include/gtest/internal/gtest-port.h:2053:
undefined reference to `pthread_key_delete'
/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../x86_64-pc-linux-gnu/bin/ld:
/tmp/cczPzsUM.ltrans0.ltrans.o: in function
`testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo,
std::allocator<testing::internal::TraceInfo> > >::GetOrCreateValue() const':
/src/llvm/llvm-7.0.1.src/utils/unittest/googletest/include/gtest/internal/gtest-port.h:2086:
undefined reference to `pthread_getspecific'
/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../x86_64-pc-linux-gnu/bin/ld:
/src/llvm/llvm-7.0.1.src/utils/unittest/googletest/include/gtest/internal/gtest-port.h:2093:
undefined reference to `pthread_setspecific'
/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../x86_64-pc-linux-gnu/bin/ld:
/tmp/cczPzsUM.ltrans0.ltrans.o: in function
`testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::CreateKey()':
/src/llvm/llvm-7.0.1.src/utils/unittest/googletest/include/gtest/internal/gtest-port.h:2079:
undefined reference to `pthread_key_create'
/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../x86_64-pc-linux-gnu/bin/ld:
/tmp/cczPzsUM.ltrans0.ltrans.o: in function
`testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo,
std::allocator<testing::internal::TraceInfo> > >::CreateKey()':
/src/llvm/llvm-7.0.1.src/utils/unittest/googletest/include/gtest/internal/gtest-port.h:2079:
undefined reference to `pthread_key_create'
/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../x86_64-pc-linux-gnu/bin/ld:
/tmp/cczPzsUM.ltrans0.ltrans.o: in function
`testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::GetOrCreateValue()
const':
/src/llvm/llvm-7.0.1.src/utils/unittest/googletest/include/gtest/internal/gtest-port.h:2086:
undefined reference to `pthread_getspecific'
/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../x86_64-pc-linux-gnu/bin/ld:
/src/llvm/llvm-7.0.1.src/utils/unittest/googletest/include/gtest/internal/gtest-port.h:2093:
undefined reference to `pthread_setspecific'
/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../x86_64-pc-linux-gnu/bin/ld:
/tmp/cczPzsUM.ltrans0.ltrans.o: in function
`testing::internal::ThreadLocal<testing::Sequence*>::CreateKey()':
/src/llvm/llvm-7.0.1.src/utils/unittest/googletest/include/gtest/internal/gtest-port.h:2079:
undefined reference to `pthread_key_create'
/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../x86_64-pc-linux-gnu/bin/ld:
/tmp/cczPzsUM.ltrans0.ltrans.o: in function
`testing::internal::ThreadLocal<testing::Sequence*>::GetOrCreateValue() const':
/src/llvm/llvm-7.0.1.src/utils/unittest/googletest/include/gtest/internal/gtest-port.h:2086:
undefined reference to `pthread_getspecific'
/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../x86_64-pc-linux-gnu/bin/ld:
/src/llvm/llvm-7.0.1.src/utils/unittest/googletest/include/gtest/internal/gtest-port.h:2093:
undefined reference to `pthread_setspecific'
/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../x86_64-pc-linux-gnu/bin/ld:
/tmp/cczPzsUM.ltrans0.ltrans.o: in function
`testing::internal::ThreadLocal<testing::Sequence*>::~ThreadLocal()':
/src/llvm/llvm-7.0.1.src/utils/unittest/googletest/include/gtest/internal/gtest-port.h:2049:
undefined reference to `pthread_getspecific'
/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../x86_64-pc-linux-gnu/bin/ld:
/src/llvm/llvm-7.0.1.src/utils/unittest/googletest/include/gtest/internal/gtest-port.h:2053:
undefined reference to `pthread_key_delete'
collect2: error: ld returned 1 exit status
make[2]: *** [utils/unittest/CMakeFiles/gtest.dir/build.make:100:
lib/libgtest.so.7] Error 1
make[1]: *** [CMakeFiles/Makefile2:151872:
utils/unittest/CMakeFiles/gtest.dir/all] Error 2
make: *** [Makefile:152: all] Error 2</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>