[LLVMbugs] [Bug 4476] New: cmake fails to find pthread_rwlock_init and pthread_getspecific using check_symbol_exists when they exists
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Jun 29 06:27:08 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4476
Summary: cmake fails to find pthread_rwlock_init and
pthread_getspecific using check_symbol_exists when they
exists
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: xerxes at zafena.se
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3134)
--> (http://llvm.org/bugs/attachment.cgi?id=3134)
workaround fix: change implementation from check_symbol_exists to
check_library_exists .patch
cd llvm
svn up
cd ..
mkdir llvm-build
cd llvm-build
cmake ../llvm
...
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
...
-- Looking for pthread_mutex_lock
-- Looking for pthread_mutex_lock - found
-- Looking for pthread_rwlock_init
-- Looking for pthread_rwlock_init - not found.
-- Looking for pthread_getspecific
-- Looking for pthread_getspecific - not found.
The problem are that pthread_rwlock_init and pthread_getspecific are not found
on a system that should have them.
The attached patch includes a workaround that changes the implementation of
these tests to use check_library_exists instead of check_symbol_exists.
with this change the output from cmake are:
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Looking for pthread_getspecific in pthread
-- Looking for pthread_getspecific in pthread - found
-- Looking for pthread_rwlock_init in pthread
-- Looking for pthread_rwlock_init in pthread - found
...
-- Looking for pthread_mutex_lock
-- Looking for pthread_mutex_lock - found
There are one open cmake check_symbol_exists bugs on the cmake mantis
bugtracker this might be related:
http://www.cmake.org/Bug/view.php?id=8758 - CheckSymbolExists does not find a
symbol although it exists
--
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