Kinetic Kame build very slow

asked 2016-10-14 13:12:47 -0600

JakeBaldwin gravatar image

I recently upgrade my machine from Ubuntu 14 to Ubuntu 16 and upgrade from ROS Jade to ROS Kinetic as well. I pulled my repository and built and every thing built just fine, tests seem to pass, however, the build is now about 5 times slower! Has anyone experienced this? Any idea what could be causing this and how to fix it?

edit retag flag offensive close merge delete

Comments

Are you referring to the actual build (ie: compilation, linking), or the output of the build (ie: binaries)? If the former, see if deleting your build and devel folders clears things up. If the latter, have you set the same CMAKE_BUILD_TYPE?

gvdhoorn gravatar image gvdhoorn  ( 2016-10-14 13:28:04 -0600 )edit

It is the former, the compilation and linking. Deleting the build/ and devel/ directories makes no difference. My build went from about 5 or 6 min to 30 min!

JakeBaldwin gravatar image JakeBaldwin  ( 2016-10-14 13:46:10 -0600 )edit

That is strange indeed. Any particular pkgs that you notice it to have become much slower?

gvdhoorn gravatar image gvdhoorn  ( 2016-10-15 06:11:34 -0600 )edit

I've just noticed the same thing! My first guess is that there are a lot of new warnings when building against ROS Kinetic...

jonfink gravatar image jonfink  ( 2016-10-26 12:40:07 -0600 )edit

After some further testing, I should add that I am comparing the performance of (Ubuntu 16.04 + ROS Kinetic + Clang-3.8) with (Ubuntu 14.04 + ROS Jade + Clang-3.4) and seeing an individual package build time go from 40 seconds with Jade/etc to 65 seconds with Kinetic/etc.

jonfink gravatar image jonfink  ( 2016-10-26 14:57:17 -0600 )edit

Is this with catkin_tools or catkin_make?

gvdhoorn gravatar image gvdhoorn  ( 2016-10-27 04:42:37 -0600 )edit

Catkin tools for me. Same version of catkin tools on both systems. Going to try with 'catkin_make' today.

jonfink gravatar image jonfink  ( 2016-10-27 05:59:09 -0600 )edit

Just curious if there would be a difference between the two.

My first guess is that there are a lot of new warnings when building against ROS Kinetic...

That is a possibility. Running catkin in verbose mode on both distributions should allow us to see whether that is the case.

gvdhoorn gravatar image gvdhoorn  ( 2016-10-27 06:41:12 -0600 )edit