MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0013419 | CMake | CMake | public | 2012-07-18 10:51 | 2013-03-04 08:38 |
Reporter | Andy Piper | ||||
Assigned To | Brad King | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | x86_64 | OS | OpenSuSE Linux | OS Version | all |
Product Version | CMake 2.8.8 | ||||
Target Version | CMake 2.8.10 | Fixed in Version | CMake 2.8.10 | ||
Summary | 0013419: Path mangled when searchign for lib64 directories | ||||
Description | When searching for "lib64" directories, all elements in the search-path that end with "lib" are changed to "lib64". This makes it impossible for CMake to find the libraries. | ||||
Steps To Reproduce | 1. Start up a OpenSUSE or SLES machine 2. Create a directory /var/lib/myproject/lib64 2a (optional, if you don't want to be root): # chown -R <youruser>:users /var/lib/myproject ...then do the remaining steps as <youruser> 3. Copy /usr/lib64/libz.so to /var/lib/myproject/lib64/ 4. Create the file /var/lib/myproject/CMakeLists.txt with this content: cmake_minimum_required(VERSION 2.8) project(lib64bug) set(CMAKE_FIND_ROOT_PATH ${CMAKE_SOURCE_DIR}) find_library(MYZLIB NAMES libz.so ONLY_CMAKE_FIND_ROOT_PATH) if(MYZLIB STREQUAL "MYZLIB-NOTFOUND") message(FATAL_ERROR "Did not find zlib under ${CMAKE_SOURCE_DIR}") endif() message(STATUS "Found zlib: ${MYZLIB}") 5. Create the directory /var/lib/myproject/build and cd into it 6. Run "cmake .." - The expected CMake output should end with "-- Found zlib: /var/myproject/lib64/libz.so" - The actual CMake output is : "CMake Error at CMakeLists.txt:7 (message): Did not find zlib under /var/lib/myproject -- Configuring incomplete, errors occurred!" 7. To see the bug in action, run this command (under bash or sh): strace cmake .. 2>&1 | grep myproject/lib64 ...the output will show the path /var/lib/myproject being mangled to /var/lib64/myproject | ||||
Additional Information | /var/lib/jenkins/workspace is the default workspace-root for Jenkins CI installations on OpenSUSE (and possibly other Linux distributions). This exposes all jenkins projects to this bug. | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-07-18 10:51 | Andy Piper | New Issue | |||
2012-07-18 11:01 | Brad King | Note Added: 0030073 | |||
2012-07-18 11:03 | Brad King | Note Added: 0030074 | |||
2012-07-18 11:06 | Brad King | Note Added: 0030076 | |||
2012-07-18 11:08 | Brad King | Note Added: 0030077 | |||
2012-07-18 11:08 | Brad King | Status | new => backlog | ||
2012-07-18 12:15 | Andy Piper | Note Added: 0030078 | |||
2012-07-18 13:50 | Rolf Eike Beer | Note Added: 0030079 | |||
2012-07-18 14:46 | Brad King | Note Added: 0030081 | |||
2012-07-20 14:06 | Brad King | Assigned To | => Brad King | ||
2012-07-20 14:06 | Brad King | Status | backlog => assigned | ||
2012-07-20 14:24 | Brad King | Note Added: 0030098 | |||
2012-07-20 14:24 | Brad King | Status | assigned => resolved | ||
2012-07-20 14:24 | Brad King | Resolution | open => fixed | ||
2012-10-24 17:25 | David Cole | Fixed in Version | => CMake 2.8.10 | ||
2012-10-24 17:25 | David Cole | Target Version | => CMake 2.8.10 | ||
2013-03-04 08:38 | Robert Maynard | Note Added: 0032481 | |||
2013-03-04 08:38 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|