ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

[SOLVED] catkin_make hangs forever

asked 2017-10-11 13:53:56 -0500

DHCustomPak gravatar image

updated 2018-01-09 16:14:44 -0500

ROS Indigo on Ubuntu 14.04 LTS

ROS Lunar on Ubuntu 16.04 LTS

catkin_make starts up and gets as far as BUILD_SHARED_LIBS is on and then hangs. There are no high cpu processes listed in top, and no output to dmesg at all.

What else can I check to investigate why it hangs?


A clean install of Lunar worked fine until today.

ps aux | grep cmake

automat+  1996  0.0  0.3 153344 14328 pts/17   S+   15:16   0:00 cmake /home/automation/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/automation/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/automation/catkin_ws/install -G Unix Makefiles
automat+  2078  0.1  0.4 276192 16644 pts/17   S+   15:16   0:00 /usr/bin/python /usr/bin/empy --raw-errors -F /home/automation/catkin_ws/build/catkin_generated/ -o /home/automation/catkin_ws/build/catkin_generated/order_packages.cmake /opt/ros/lunar/share/catkin/cmake/em/order_packages.cmake.em
automat+  2114  0.0  0.3  57160 14012 pts/17   S+   15:16   0:00 /usr/bin/python /usr/bin/empy --raw-errors -F /home/automation/catkin_ws/build/catkin_generated/ -o /home/automation/catkin_ws/build/catkin_generated/order_packages.cmake /opt/ros/lunar/share/catkin/cmake/em/order_packages.cmake.em
automat+  2115  0.0  0.3  56872 13940 pts/17   S+   15:16   0:00 /usr/bin/python /usr/bin/empy --raw-errors -F /home/automation/catkin_ws/build/catkin_generated/ -o /home/automation/catkin_ws/build/catkin_generated/order_packages.cmake /opt/ros/lunar/share/catkin/cmake/em/order_packages.cmake.em
automat+  2390  0.0  0.0  21292   988 pts/1    S+   15:28   0:00 grep --color=auto cmake
env | grep -i ros | sort (in an auto-sourced terminal)

Edit 10/19/17: apt-cache policy python-empy

  Installed: 3.3.2-1build1
  Candidate: 3.3.2-1build1
  Version table:
 * 3.3.2-1build1 500
        500 xenial/universe amd64 Packages
        500 xenial/universe i386 Packages
        100 /var/lib/dpkg/status
pip list | grep empy
empy (3.3.2)
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
automation@atc-nuc-ros:~$ pip install --upgrade pip
Collecting pip
  Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 470kB/s
Installing collected packages: pip
Successfully installed pip-8.1.1
You are using pip version 8.1.1, however version 9.0.1 is available.
You should ...
edit retag flag offensive close merge delete


Delete build and devel, and try running things as follows:

catkin_make VERBOSE=1

If things hang, see what it was doing.

Seeing the in that ps output: how many packages do you have, and what sort of machine is this?

gvdhoorn gravatar image gvdhoorn  ( 2017-10-18 02:43:04 -0500 )edit

Verbose output: Still hangs after BUILD_SHARE_LIBS is on.

We have one package with 8 nodes. This machine is an Intel NUC, we previously used a Surface Pro 3 that worked flawlessly for the past year or more, then recently stopped working.

DHCustomPak gravatar image DHCustomPak  ( 2017-10-18 08:25:33 -0500 )edit

Does catkin_tools work? That is not a solution, but just trying to get some more info.

gvdhoorn gravatar image gvdhoorn  ( 2017-10-18 08:32:08 -0500 )edit

catkin_tools: command not found

Is it a command I should be running? Do I need to have something else installed first? I did the ros-lunar-desktop-full install.

DHCustomPak gravatar image DHCustomPak  ( 2017-10-18 08:41:43 -0500 )edit
gvdhoorn gravatar image gvdhoorn  ( 2017-10-18 09:01:11 -0500 )edit

catkin build just ran for an hour and didn't get anywhere...

DHCustomPak gravatar image DHCustomPak  ( 2017-10-18 10:49:02 -0500 )edit

Let's take a step back: can you build an empty workspace (with catkin_make or catkin build, I don't care). So:

  1. open a new terminal (no auto sourcing anything)
  2. source /opt/ros/$distro/setup.bash
  3. mkdir -p /tmp/empty_ws/src
  4. cd /tmp/empty_ws
  5. catkin_make
gvdhoorn gravatar image gvdhoorn  ( 2017-10-18 10:52:38 -0500 )edit

I followed your instructions exactly and it behaves the same as before. Hangs after BUILD_SHARED_LIBS is on :(

Thank you for your help, I really appreciate it! We are definitely at our wit's end with this thing and none of the similar issues we found online had a working solution.

DHCustomPak gravatar image DHCustomPak  ( 2017-10-18 10:57:10 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2018-01-09 16:14:19 -0500

DHCustomPak gravatar image

There was a single package in our system that did not adhere to the naming conventions (package name contains capital letters). Catkin threw a warning and then hung on build until the package was removed/renamed.

It wasn't obvious that it was a fatal error considering the message was prefixed with "Warning" and not "Error".

edit flag offensive delete link more


Thanks for reporting back.

Not adhering to naming conventions should definitely not be a fatal error or cause Catkin to hang.

If you can create an MWE and report it here that would be great.

gvdhoorn gravatar image gvdhoorn  ( 2018-01-10 02:26:19 -0500 )edit

Question Tools



Asked: 2017-10-11 13:53:56 -0500

Seen: 5,341 times

Last updated: Jan 09 '18