MantisBT - CMake
View Issue Details
0014652CMakeCMakepublic2013-12-16 06:192016-06-10 14:31
Максим Прохоренко 
Kitware Robot 
normaltweakalways
closedmoved 
x86_64Fedora20
CMake 2.8.12 
 
0014652: Ninja generator add ASM file with wrong deps
Rebuils .s.o and relink all time.
unpack arc
cmake -G Ninja
make
make
make
No tags attached.
? cpu_info.tar.xz (67,268) 2013-12-16 06:19
https://public.kitware.com/Bug/file/5018/cpu_info.tar.xz
Issue History
2013-12-16 06:19Максим ПрохоренкоNew Issue
2013-12-16 06:19Максим ПрохоренкоFile Added: cpu_info.tar.xz
2013-12-18 11:23Brad KingAssigned To => Peter Kuemmel
2013-12-18 11:23Brad KingStatusnew => assigned
2013-12-18 11:23Brad KingNote Added: 0034788
2014-04-13 05:43Peter KuemmelAssigned ToPeter Kuemmel =>
2014-04-13 05:45Peter KuemmelAssigned To => Peter Kuemmel
2014-04-13 05:45Peter KuemmelStatusassigned => confirmed
2014-04-13 05:47Peter KuemmelAssigned ToPeter Kuemmel =>
2014-04-20 11:31Максим ПрохоренкоNote Added: 0035747
2016-06-10 14:29Kitware RobotNote Added: 0042451
2016-06-10 14:29Kitware RobotStatusconfirmed => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0034788)
Brad King   
2013-12-18 11:23   
After extracting the example I can reproduce this as follows:

$ cd cpu_info
$ rm -rf build
$ mkdir build
$ cd build
$ cmake .. -GNinja
$ ninja |cat
[1/5] Building C object CMakeFiles/cpu_info.dir/main.c.o
[2/5] Building ASM object CMakeFiles/cpu_info.dir/cpu-topology/get_cpuid_lix64.s.o
[3/5] Building C object CMakeFiles/cpu_info.dir/cpu-topology/cpu_topo.c.o
[4/5] Building C object CMakeFiles/cpu_info.dir/cpu-topology/util_os.c.o
[5/5] Linking C executable cpu_info

$ ninja |cat
[1/2] Building ASM object CMakeFiles/cpu_info.dir/cpu-topology/get_cpuid_lix64.s.o
[2/2] Linking C executable cpu_info

$ ninja |cat
[1/2] Building ASM object CMakeFiles/cpu_info.dir/cpu-topology/get_cpuid_lix64.s.o
[2/2] Linking C executable cpu_info
(0035747)
Максим Прохоренко   
2014-04-20 11:31   
I found two solutions to this problem

1. Try add get_cpuid_lix64.s.d file or
2. For gcc set (CMAKE_ASM_FLAGS "-x assembler-with-cpp"), and gcc generate .d file.
(0042451)
Kitware Robot   
2016-06-10 14:29   
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.