View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013745CMakeCMakepublic2012-11-27 04:252016-06-10 14:31
ReporterMahendra Ladhe 
Assigned ToKitware Robot 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformLinuxOSLinux RedHat 5.6OS Version5.6
Product VersionCMake 2.8.4 
Target VersionFixed in Version 
Summary0013745: CHECK_C_COMPILER_FLAG doesn't work with -march=xlr option with a MIPS gcc cross compiler
DescriptionI 've a CMakeLists.txt file as below.

CHECK_C_COMPILER_FLAG (-march=xlr FLAG_xlr)
CHECK_C_COMPILER_FLAG (-march=xlp FLAG_xlp)

I'm using a gcc MIPS cross compiler. Using this cross compiler I'm able to
compile a simple C program using both -march=xlr and -march=xlp compiler
options. The size of a.out differs with these two options (just to show that
-march option is acted upon by the compiler)

When I invoke cmake on above CMakeLists.txt file, I get the following.

-- Performing Test FLAG_xlr
-- Performing Test FLAG_xlr - Failed
-- Performing Test FLAG_xlp
-- Performing Test FLAG_xlp - Success

It says Test FLAG_xlr failed, but it shouldn't fail since the cross compiler
does support -march=xlr option.
Steps To ReproduceAs described above.
I cannot provide the gcc cross compiler used since it's not publicly available.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0042158)
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.

 Issue History
Date Modified Username Field Change
2012-11-27 04:25 Mahendra Ladhe New Issue
2016-06-10 14:28 Kitware Robot Note Added: 0042158
2016-06-10 14:28 Kitware Robot Status new => 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


Copyright © 2000 - 2018 MantisBT Team