[LLVMbugs] [Bug 13238] New: unittests fail to build when cmake is passed -DLLVM_ENABLE_THREADS=false

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jun 29 05:15:12 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13238

             Bug #: 13238
           Summary: unittests fail to build when cmake is passed
                    -DLLVM_ENABLE_THREADS=false
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: baldrick at free.fr
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Linking CXX executable Debug/VMCoreTests
../../lib/libgtest.a(gtest.cc.o): In function `~ThreadLocal':
llvm/utils/unittest/googletest/include/gtest/internal/gtest-port.h:1341:
undefined reference to `pthread_getspecific'
llvm/utils/unittest/googletest/include/gtest/internal/gtest-port.h:1345:
undefined reference to `pthread_key_delete'
llvm/utils/unittest/googletest/include/gtest/internal/gtest-port.h:1341:
undefined reference to `pthread_getspecific'
llvm/utils/unittest/googletest/include/gtest/internal/gtest-port.h:1345:
undefined reference to `pthread_key_delete'
../../lib/libgtest.a(gtest.cc.o): In function
`testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo,
std::allocator<testing::internal::TraceInfo> > >::GetOrCreateValue() const':
llvm/utils/unittest/googletest/include/gtest/internal/gtest-port.h:1377:
undefined reference to `pthread_getspecific'
llvm/utils/unittest/googletest/include/gtest/internal/gtest-port.h:1384:
undefined reference to `pthread_setspecific'
../../lib/libgtest.a(gtest.cc.o): In function
`testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::CreateKey()':
llvm/utils/unittest/googletest/include/gtest/internal/gtest-port.h:1370:
undefined reference to `pthread_key_create'
../../lib/libgtest.a(gtest.cc.o): In function
`testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo,
std::allocator<testing::internal::TraceInfo> > >::CreateKey()':
llvm/utils/unittest/googletest/include/gtest/internal/gtest-port.h:1370:
undefined reference to `pthread_key_create'
../../lib/libgtest.a(gtest.cc.o): In function
`testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::GetOrCreateValue()
const':
llvm/utils/unittest/googletest/include/gtest/internal/gtest-port.h:1377:
undefined reference to `pthread_getspecific'
llvm/utils/unittest/googletest/include/gtest/internal/gtest-port.h:1384:
undefined reference to `pthread_setspecific'
collect2: ld returned 1 exit status

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list