ros2 / ros2/rclcpp

cannot link mimick : /usr/bin/ld: cannot find -lmimick

Open
#2,306 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug help wanted
Dominant language
C++
Stars
805
Forks
564
Avg merge
1d 17h
Merged PRs (30d)
27

Description

Bug report

Required Info:

  • Operating System:
    • Ubuntu22.04
  • Installation type:
    • ros2 from binaries, but i want to compile "rclcpp" from source
  • Version or commit hash:
    • iron
Steps to reproduce issue
colcon build --allow-overriding rclcpp rclcpp_action rclcpp_components rclcpp_lifecycle
Actual behavior
Starting >>> rclcpp  
--- stderr: rclcpp                               
/usr/bin/ld: cannot find -lmimick: No such file or directory
/usr/bin/ld: cannot find -lmimick: No such file or directory
/usr/bin/ld: cannot find -lmimick: No such file or directory
/usr/bin/ld: cannot find -lmimick: No such file or directory
/usr/bin/ld: cannot find -lmimick: No such file or directory
collect2: error: ld returned 1 exit status
gmake[2]: *** [test/rclcpp/CMakeFiles/test_expand_topic_or_service_name.dir/build.make:168: test/rclcpp/test_expand_topic_or_service_name] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1437: test/rclcpp/CMakeFiles/test_expand_topic_or_service_name.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
collect2: error: ld returned 1 exit status
gmake[2]: *** [test/rclcpp/CMakeFiles/test_exceptions.dir/build.make:168: test/rclcpp/test_exceptions] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1185: test/rclcpp/CMakeFiles/test_exceptions.dir/all] Error 2
collect2: error: ld returned 1 exit status
gmake[2]: *** [test/rclcpp/CMakeFiles/test_loaned_message.dir/build.make:192: test/rclcpp/test_loaned_message] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1632: test/rclcpp/CMakeFiles/test_loaned_message.dir/all] Error 2
collect2: error: ld returned 1 exit status
gmake[2]: *** [test/rclcpp/CMakeFiles/test_client.dir/build.make:192: test/rclcpp/test_client] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1325: test/rclcpp/CMakeFiles/test_client.dir/all] Error 2
collect2: error: ld returned 1 exit status
gmake[2]: *** [test/rclcpp/CMakeFiles/test_node.dir/build.make:192: test/rclcpp/test_node] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1716: test/rclcpp/CMakeFiles/test_node.dir/all] Error 2
/usr/bin/ld: cannot find -lmimick: No such file or directory
/usr/bin/ld: cannot find -lmimick: No such file or directory
/usr/bin/ld: cannot find -lmimick: No such file or directory
/usr/bin/ld: cannot find -lmimick: No such file or directory
collect2: error: ld returned 1 exit status
gmake[2]: *** [test/rclcpp/CMakeFiles/test_node_interfaces__node_timers.dir/build.make:168: test/rclcpp/test_node_interfaces__node_timers] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1940: test/rclcpp/CMakeFiles/test_node_interfaces__node_timers.dir/all] Error 2
collect2: error: ld returned 1 exit status
gmake[2]: *** [test/rclcpp/CMakeFiles/test_node_interfaces__node_interfaces.dir/build.make:168: test/rclcpp/test_node_interfaces__node_interfaces] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1856: test/rclcpp/CMakeFiles/test_node_interfaces__node_interfaces.dir/all] Error 2
collect2: error: ld returned 1 exit status
gmake[2]: *** [test/rclcpp/CMakeFiles/test_node_interfaces__node_parameters.dir/build.make:168: test/rclcpp/test_node_interfaces__node_parameters] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1884: test/rclcpp/CMakeFiles/test_node_interfaces__node_parameters.dir/all] Error 2
collect2: error: ld returned 1 exit status
gmake[2]: *** [test/rclcpp/CMakeFiles/test_node_interfaces__node_services.dir/build.make:168: test/rclcpp/test_node_interfaces__node_services] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1912: test/rclcpp/CMakeFiles/test_node_interfaces__node_services.dir/all] Error 2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the provided colcon build command on Ubuntu 22.04 and inspect the generated test/rclcpp targets, including test/rclcpp/test_expand_topic_or_service_name and test/rclcpp/test_exceptions. Trace why those targets link with -lmimick; done means the listed rclcpp tests link and the build completes without the missing-library error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.