MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0015447 | CMake | CMake | public | 2015-03-14 12:13 | 2015-11-02 09:13 |
Reporter | azrdev | ||||
Assigned To | |||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | Linux | OS | Archlinux | OS Version | rolling |
Product Version | CMake 3.1 | ||||
Target Version | Fixed in Version | ||||
Summary | 0015447: libpthreads not found on cmake >= 3.1 | ||||
Description | Originally this popped up when trying to update the AUR tulip packet to 4.6.1 (<https://aur.archlinux.org/packages/tulip/> [^]) The CMakeLists.txt for that software contains the line: FIND_PACKAGE(Threads) Which started to break after installing cmake 3.1 (or higher): Running cmake yields -- Looking for include file pthread.h -- Looking for include file pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE CMake Error at CMakeLists.txt:111 (SET_TARGET_PROPERTIES): INTERFACE_LIBRARY targets may only have whitelisted properties. The property "INSTALL_RPATH" is not allowed. Call Stack (most recent call first): /usr/share/cmake-3.1/Modules/FindThreads.cmake:207 (add_library) CMakeLists.txt:234 (FIND_PACKAGE) CMakeError.txt contains the log for "Determining if the pthread_create exist" especially the line /usr/bin/ld: cannot find -lpthreads According to manual tests, that argument should read -lpthread (without the s). Please tell if you need any other information. The CMakeError.log is attached. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://public.kitware.com/Bug/file/5403/CMakeError.log | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2015-03-14 12:13 | azrdev | New Issue | |||
2015-03-14 12:13 | azrdev | File Added: CMakeError.log | |||
2015-03-16 17:00 | Brad King | Note Added: 0038226 | |||
2015-03-16 17:00 | Brad King | Status | new => resolved | ||
2015-03-16 17:00 | Brad King | Resolution | open => no change required | ||
2015-11-02 09:13 | Robert Maynard | Note Added: 0039732 | |||
2015-11-02 09:13 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|