catkin build warning: cannot symlink from devel/.private/pkg/local_setup.sh to existing /devel/local_setup.sh

asked 2020-02-19 14:12:00 -0500

Mrbl gravatar image

The warning seems pretty harmless but nonetheless it bothers me each time it shows up.

I have zero idea what is happening but basically there seems to be be duplicates of the same file. However their contents are different and one was placed under a .private folder.

Where they are located:

  • home/username/workspace/devel/local_setup.sh
  • home/username/workspace/devel/.private/aPkgInWS/local_setup.sh

What their differences are:

  • ${_CATKIN_SETUP_DIR:=/home/username/workspace/devel/.private/catkin_tools_prebuild}
  • ${_CATKIN_SETUP_DIR:=/home/username/workspace/devel/.private/aPkgInWS}

(Note: aPkgInWS = name of a package in the workspace)

Warning: Cannot symlink from /home/username/workspace/devel/.private/aPkgInWS/local_setup.sh to existing file /home/username/workspace/devel/local_setup.sh

I get a warning for every single package in the workspace. Please explain what is happening.

edit retag flag offensive close merge delete

Comments

1

Doing a little search it seems it was a catkin_tools, that is discussed here and here. Maybe you can check those issues and find more information.

Weasfas gravatar image Weasfas  ( 2020-02-20 07:26:19 -0500 )edit

I'm seeing the same warning but for cpython pyc files

Warning: Cannot symlink from /home/lucasw/catkin_ws/devel/.private/foo_pkg/lib/python3/dist-packages/foo_pkg/__pycache__/__init__.cpython-38.pyc to existing file /home/lucasw/catkin_ws/devel/lib/python3/dist-packages/foo_pkg/__pycache__/__init__.cpython-38.pyc

I'll look more into it later, the relevant code is in catkin_tools:

https://github.com/catkin/catkin_tool...

lucasw gravatar image lucasw  ( 2021-11-12 09:27:09 -0500 )edit