[llvm-bugs] [Bug 40212] New: Missing #include "pthread.h" in tils/unittest/googletest/include/gtest/
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jan 3 04:03:06 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=40212
Bug ID: 40212
Summary: Missing #include "pthread.h" in
tils/unittest/googletest/include/gtest/
Product: new-bugs
Version: 7.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: dilyan.palauzov at aegee.org
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
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
--
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/20190103/eafa207e/attachment.html>
More information about the llvm-bugs
mailing list