MantisBT - CMake
View Issue Details
0014257CMake(No Category)public2013-06-28 17:462016-06-10 14:31
thefirstdude02 
Kitware Robot 
normaltrivialhave not tried
closedmoved 
LinuxOpenSUSE12.3
CMake 2.8.10.2 
 
0014257: The compilation progress indicator always shows 38%
We had a large project which repeatedly hit a compiler or linker error at 38%. The build is managed by CMake, and worked correctly before we introduced the bugs that caused the aforementioned compiler/linker errors. We finally fixed the bugs in our code, then re-ran CMake (clearing its cache), ran make clean, and then ran make. We were very confused to see the progress indicator always read 38% throughout the compile and link process. We terminated compilation and did another make clean. We then allowed make to run all the way through --- and the build ran successfully from start to finish. However, at every single step along the way, the progress was reported as 38%.

The build works completely fine, just the progress indicator only ever reads 38%.
Not known?
No tags attached.
Issue History
2013-06-28 17:46thefirstdude02New Issue
2013-06-28 18:49Brad KingNote Added: 0033404
2013-06-28 18:49Brad KingStatusnew => backlog
2016-06-10 14:29Kitware RobotNote Added: 0042306
2016-06-10 14:29Kitware RobotStatusbacklog => 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
(0033404)
Brad King   
2013-06-28 18:49   
The progress indicator is approximate and based on the expected total number of actions and some progress stamp files left behind by some build rules because the make tool does not really support progress. Sometimes it gets confused when interrupted because the stamp files are left in an inconsistent state.

Removing the CMakeCache.txt and running "make clean" is not enough to produce a fresh build tree. You also need to remove CMakeFiles. The simplest method is to always use out-of-source build so you can wipe out the entire directory.

I suggest using the Ninja generator if you want native progress support and a more modern build tool. Its builds tend to be faster too.
(0042306)
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.