Robotics StackExchange | Archived questions

Error 1 package failed : turtlesim after "colcon build" on Ubuntu20

Hi guys, I'm learning ROS2 and after using the tutorials I found an error when I was on 5. Build the workspace with colcon in Beginner: Client librairies/ Creating a workspace in ROS2 Foxy tutorials. I entered "colcon build" and my console provided this: "Starting >>> cpppubsub Starting >>> examplesrclcppminimalactionclient Starting >>> examplesrclcppminimalactionserver
Starting >>> examples
rclcppminimalclient Starting >>> examplesrclcppminimalcomposition Starting >>> examplesrclcppminimalpublisher
Starting >>> examplesrclcppminimalservice Starting >>> examplesrclcppminimalsubscriber
Finished <<< cpppubsub [1.25s]
Finished <<< examples
rclcppminimalactionserver [1.32s] Starting >>> examplesrclcppminimaltimer Starting >>> examplesrclcppmultithreadedexecutor Finished <<< examplesrclcppminimalclient [1.42s] Finished <<< examplesrclcppminimalactionclient [1.61s] Starting >>> examplesrclpyexecutors Finished <<< examplesrclcppminimalpublisher [1.54s] Starting >>> examplesrclpyminimalactionclient Starting >>> examplesrclpyminimalactionserver /home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/dist.py:770: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'scriptdir' instead warnings.warn( /home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/dist.py:770: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'installscripts' instead warnings.warn( /home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/dist.py:770: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'scriptdir' instead warnings.warn( /home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/dist.py:770: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'installscripts' instead warnings.warn( /home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/dist.py:770: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'scriptdir' instead warnings.warn( /home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/dist.py:770: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'installscripts' instead warnings.warn( Finished <<< examplesrclcppminimalservice [4.48s] Finished <<< examplesrclcppminimalsubscriber [4.51s] Finished <<< examplesrclcppminimalcomposition [4.70s] Starting >>> examplesrclpyminimalclient Starting >>> examplesrclpyminimalpublisher Starting >>> examplesrclpyminimalservice /home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/dist.py:770: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'scriptdir' instead warnings.warn( /home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/dist.py:770: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'installscripts' instead warnings.warn( /home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/dist.py:770: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'scriptdir' instead warnings.warn( /home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/dist.py:770: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'installscripts' instead warnings.warn( /home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/dist.py:770: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'scriptdir' instead warnings.warn( /home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/dist.py:770: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'installscripts' instead warnings.warn( Finished <<< examplesrclcppminimaltimer [7.15s] Starting >>> examplesrclpyminimalsubscriber Finished <<< examplesrclcppmultithreadedexecutor [7.33s] Starting >>> turtlesim /home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/dist.py:770: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'scriptdir' instead warnings.warn( /home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/dist.py:770: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'installscripts' instead warnings.warn( --- stderr: examplesrclpyminimalactionclient
/home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/dist.py:770: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead warnings.warn( /home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.

warnings.warn(

Finished <<< examplesrclpyminimalactionclient [9.15s] --- stderr: examplesrclpyexecutors
/home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/dist.py:770: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead warnings.warn( /home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.

warnings.warn(

Finished <<< examplesrclpyexecutors [9.43s] --- stderr: examplesrclpyminimalactionserver /home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/dist.py:770: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead warnings.warn( /home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.

warnings.warn(

Finished <<< examplesrclpyminimalactionserver [9.31s] --- stderr: examplesrclpyminimalclient
/home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/dist.py:770: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script
dir' instead warnings.warn( /home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.

warnings.warn(

Finished <<< examplesrclpyminimalclient [9.23s] --- stderr: examplesrclpyminimalpublisher /home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/dist.py:770: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead warnings.warn( /home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.

warnings.warn(

Finished <<< examplesrclpyminimalpublisher [9.44s] --- stderr: examplesrclpyminimalservice /home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/dist.py:770: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead warnings.warn( /home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.

warnings.warn(

Finished <<< examplesrclpyminimalservice [9.61s] --- stderr: examplesrclpyminimalsubscriber /home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/dist.py:770: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead warnings.warn( /home/adrien/anaconda3/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.

warnings.warn(

Finished <<< examplesrclpyminimalsubscriber [7.57s] --- stderr: turtlesim
/usr/bin/ld: /home/adrien/anaconda3/lib/libQt5Core.so.5.15.2: undefined reference to `std::
exceptionptr::exceptionptr::Mrelease()@CXXABI1.3.13' /usr/bin/ld: /home/adrien/anaconda3/lib/libQt5Widgets.so.5.15.2: undefined reference to std::__throw_bad_array_new_length()@GLIBCXX_3.4.29' /usr/bin/ld: /home/adrien/anaconda3/lib/libQt5Core.so.5.15.2: undefined reference tostd::_exceptionptr::exceptionptr::Maddref()@CXXABI1.3.13' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/turtlesimnode.dir/build.make:207: turtlesimnode] Error 1 make[1]: *** [CMakeFiles/Makefile2:367: CMakeFiles/turtlesim_node.dir/all] Error 2

make: *** [Makefile:141: all] Error 2

Failed <<< turtlesim [7.75s, exited with code 2]

Summary: 17 packages finished [17.4s] 1 package failed: turtlesim 8 packages had stderr output: examplesrclpyexecutors examplesrclpyminimalactionclient examplesrclpyminimalactionserver examplesrclpyminimalclient examplesrclpyminimalpublisher examplesrclpyminimalservice examplesrclpyminimalsubscriber turtlesim " I don't understand what I have to do so as to solve it. Help me please.

Thanks in advance for your answer.

Asked by Adriien on 2023-05-22 08:24:51 UTC

Comments

Answers