MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0009798 | CMake | CMake | public | 2009-10-29 15:49 | 2009-12-01 14:26 | |||||
Reporter | Shane Dixon | |||||||||
Assigned To | Alex Neundorf | |||||||||
Priority | normal | Severity | minor | Reproducibility | always | |||||
Status | closed | Resolution | fixed | |||||||
Platform | OS | OS Version | ||||||||
Product Version | CMake-2-8 | |||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0009798: when setting toolchain.cmake, try_compile fails for gcc-fm where -rdynamic fails but -shared works | |||||||||
Description | In toolchain.cmake: INCLUDE( CMakeForceCompiler ) SET( CMAKE_SYSTEM_NAME Linux ) CMAKE_FORCE_C_COMPILER( gcc-fm GNU ) CMAKE_FORCE_CXX_COMPILER( g++-fm GNU ) SET( CMAKE_FIND_ROOT_PATH "C:/gcc-fm" "$ENV{ProgramFiles}/Eracom/ProtectProcessing Orange SDK" "$ENV{ProgramFiles}/Eracom/ProtectToolkit C SDK" ) SET( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER ) SET( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY ) SET( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY ) Setting CMAKE_C_COMPILER doesn't work. I get an error saying #doesn't work, get error about -rdynamic not working SET( CMAKE_C_COMPILER gcc-fm ) SET( CMAKE_CXX_COMPILER g++-fm ) # works CMAKE_FORCE_C_COMPILER( gcc-fm GNU ) CMAKE_FORCE_CXX_COMPILER( g++-fm GNU ) A small test program shows that "gcc-fm -rdynamic main.c" doesn't work, but "gcc-fm -shared main.c" does work. | |||||||||
Steps To Reproduce | ||||||||||
Additional Information | See notes in this closed bug for more details: http://public.kitware.com/Bug/view.php?id=9796 [^] Pastebin of error message: http://pastebin.com/m185e1316 [^] I was advised by Alex to put in a bug report for this issue. | |||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | Linux.cmake (3,279) 2009-11-22 12:44 https://public.kitware.com/Bug/file/2688/Linux.cmake | |||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2009-10-29 15:49 | Shane Dixon | New Issue | ||||||||
2009-10-29 16:38 | Alex Neundorf | Status | new => assigned | |||||||
2009-10-29 16:38 | Alex Neundorf | Assigned To | => Alex Neundorf | |||||||
2009-11-22 12:32 | Alex Neundorf | Note Added: 0018530 | ||||||||
2009-11-22 12:33 | Alex Neundorf | Note Added: 0018531 | ||||||||
2009-11-22 12:44 | Alex Neundorf | File Added: Linux.cmake | ||||||||
2009-11-22 12:45 | Alex Neundorf | Note Added: 0018532 | ||||||||
2009-12-01 14:23 | Brad King | Relationship added | child of 0009985 | |||||||
2009-12-01 14:24 | Brad King | Relationship replaced | related to 0009985 | |||||||
2009-12-01 14:26 | Brad King | Note Added: 0018626 | ||||||||
2009-12-01 14:26 | Brad King | Status | assigned => closed | |||||||
2009-12-01 14:26 | Brad King | Resolution | open => fixed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|