View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0013222 | CMake | CMake | public | 2012-05-15 10:35 | 2016-06-10 14:31 | ||||
Reporter | sobigboy | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | Sun | OS | Solaris | OS Version | 5.10 | ||||
Product Version | CMake 2.8.7 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0013222: The CMake functions: check_function_exists(), the check_library_exists(), and the find_package() fail | ||||||||
Description | The check_function_exists(), the check_library_exists(), and the find_package() all fail if they are preceded by set(CMAKE_C_FLAGS “-Mfilename”). | ||||||||
Steps To Reproduce | 1. Ensure the server has both CC and cc compilers installed. 2. Create a CMakeLists.txt file that contains the statement: set(CMAKE_C_FLAGS “-Mfilename”) 3. After this statement add one or more of the above functions. 4. Execute the build and observe that CMake reports the search fails. 5. Remove the set(CMAKE_C_FLAGS “-Mfilename”) statement. 6. Execute the build again and observe that CMake reports the search is successful. | ||||||||
Additional Information | I used the rt library and Threads package for testing. CMake recognizes both the CC and cc compilers, but only the CC compiler is used for the build (all source files are .h and .cpp). According to man ld, the –M switch “reads mapfile as a text file of directives to ld.” All three functions fail regardless of the contents of the mapfile, whether the mapfile exists or not, or even when a filename is not specified. Surprisingly, set(CMAKE_CXX_FLAGS “-Mfilename”) does not cause the three functions to fail. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0029483) sobigboy (reporter) 2012-05-16 14:59 |
This issue may be related to ID 0013208. |
(0029485) Antonio Ospite (reporter) 2012-05-16 16:04 edited on: 2012-05-16 16:09 |
sogiboy, what's in CMakeFiles/CMakeError.log ? |
(0029487) sobigboy (reporter) 2012-05-16 17:28 |
make: Fatal Error: Command failed for target 'CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o' ... make: Fatal Error: Command failed for target 'cmTryCompileExec/fast' |
(0030418) David Cole (manager) 2012-08-11 21:35 |
Sending old, never assigned issues to the backlog. (The age of the bug, plus the fact that it's never been assigned to anyone means that nobody is actively working on it...) If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^] It's easy to re-activate a bug here if you can find a CMake developer who has the bandwidth to take it on, and ferry a fix through to our 'next' branch for dashboard testing. |
(0042048) Kitware Robot (administrator) 2016-06-10 14:28 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2012-05-15 10:35 | sobigboy | New Issue | |
2012-05-16 14:59 | sobigboy | Note Added: 0029483 | |
2012-05-16 16:04 | Antonio Ospite | Note Added: 0029485 | |
2012-05-16 16:09 | Antonio Ospite | Note Edited: 0029485 | |
2012-05-16 17:28 | sobigboy | Note Added: 0029487 | |
2012-08-11 21:35 | David Cole | Status | new => backlog |
2012-08-11 21:35 | David Cole | Note Added: 0030418 | |
2016-06-10 14:28 | Kitware Robot | Note Added: 0042048 | |
2016-06-10 14:28 | Kitware Robot | Status | backlog => resolved |
2016-06-10 14:28 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot |
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |