[LLVMbugs] [Bug 8375] New: Symbol is undefined when LLVM built by CMake

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Oct 14 05:05:30 PDT 2010


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

           Summary: Symbol is undefined when LLVM built by CMake
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: System Library
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: oroppas at gmail.com
                CC: llvmbugs at cs.uiuc.edu


I built LLVM from trunk using CMake and everything went all well.
Next, I successfully built dragonegg from trunk.
Then, re-building dragonegg itself using dragonegg plugin ended up with the
error:

cc1plus: error: Cannot load plugin ./dragonegg.so
/usr/lib/libLLVMSystem.so: undefined symbol: pthread_mutex_trylock

Should llvm/lib/System/CMakeLists.txt have the lines like

if( HAVE_LIBPTHREAD )
  target_link_libraries(LLVMSystem pthread)
endif( HAVE_LIBPTHREAD )

?

-- 
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