MantisBT - CMake
View Issue Details
0013270CMakeModulespublic2012-06-05 04:052012-08-09 19:36
raspy 
Alex Neundorf 
normalminoralways
closedfixed 
x86_64LinuxRHEL 5
CMake 2.8.8 
CMake 2.8.9CMake 2.8.9 
0013270: Remove "temporary" debug message for ASM compiler id
This is regarding commit 9071b8b87f0e63f10f1f77949246c1b4241cfb6c.

Please remove this "temporary" message. After over a year in code it is no longer temporary and its output is confusing users and is pure garbage in build log. We use TI assembler so it barfs out many times before it is detected.

Please also do not put such "temporary" "debug" messages in official release builds. It is confusing users and builders.
Set CMAKE_C_COMPILER in a toolchain file to cl6x and then set CMAKE_ASM_COMPILER to ${CMAKE_C_COMPILER}. Upon ASM configuration it barfs out all kind of compiler versions and usages.
Commit 4b40d4297aa7b984e9b5fa905cdee21960ec4f8a changed behavior for assembler (which I consider a breaking change when connected to this faulty commit 9071b8b87f0e63f10f1f77949246c1b4241cfb6c).

In cmake 2.8.8 (and 2.8.6 at least, but probably somewhere around 2.8.4/5) when CMAKE_ASM_COMPILER is not set it is taken from CMAKE_C_COMPILER (this is 4b40d4297aa7b984e9b5fa905cdee21960ec4f8a - a good thing). This is the only way to avoid this faulty behavior of 9071b8b87f0e63f10f1f77949246c1b4241cfb6c and to keep output silent when detecting ASM compiler id, so I need to remove setting CMAKE_ASM_COMPILER(_INIT)? from toolchain file. This however will no longer work with cmake 2.8.3 which does not have behavior from 4b40d4297aa7b984e9b5fa905cdee21960ec4f8a and it default to /usr/bin/as in such situation.
No tags attached.
Issue History
2012-06-05 04:05raspyNew Issue
2012-06-05 08:39Brad KingAssigned To => Alex Neundorf
2012-06-05 08:39Brad KingStatusnew => assigned
2012-06-12 16:31Alex NeundorfNote Added: 0029671
2012-06-12 16:31Alex NeundorfResolutionopen => fixed
2012-06-12 16:31Alex NeundorfCategory(No Category) => Modules
2012-06-12 16:31Alex NeundorfNote Edited: 0029671bug_revision_view_page.php?bugnote_id=29671#r670
2012-06-12 16:32Alex NeundorfStatusassigned => closed
2012-08-09 19:36David ColeFixed in Version => CMake 2.8.9
2012-08-09 19:36David ColeTarget Version => CMake 2.8.9

Notes
(0029671)
Alex Neundorf   
2012-06-12 16:31   
Thanks for pointing this out, this must have been left in accidentially.
Removed and merged into next.

If you have another problem with cl6x now, please open a separate bug report for this.

Thanks
Alex