CARET colcon build: option --editable not recognized
I flashed disk to install ubuntu 22.04.5, and then 'setup' autoware universe 2025.04 and caret v0.6.2. But when I built caret, the following editable error shows.
As I know, this would related to ros2 colcon build for old format python-written node code.
$ colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release [0.322s] WARNING:colcon.colcon_core.package_selection:Some selected packages are already built in one or more underlay workspaces: 'rcl_lifecycle' is in: /opt/ros/humble 'rclcpp_lifecycle' is in: /opt/ros/humble 'rcl_action' is in: /opt/ros/humble 'rclcpp' is in: /opt/ros/humble 'rcl_yaml_param_parser' is in: /opt/ros/humble 'tracetools' is in: /opt/ros/humble 'rclcpp_action' is in: /opt/ros/humble 'rcl' is in: /opt/ros/humble 'rclcpp_components' is in: /opt/ros/humble If a package in a merged underlay workspace is overridden and it installs headers, then all packages in the overlay must sort their include directories by workspace order. Failure to do so may result in build failures or undefined behavior at run time. If the overridden package is used by another package in any underlay, then the overriding package in the overlay must be API and ABI compatible or undefined behavior at run time may occur.
If you understand the risks and want to override a package anyways, add the following to the command line: --allow-overriding rcl rcl_action rcl_lifecycle rcl_yaml_param_parser rclcpp rclcpp_action rclcpp_components rclcpp_lifecycle tracetools
This may be promoted to an error in a future release of colcon-override-check.
Starting >>> rcl_yaml_param_parser
Starting >>> tracetools
Starting >>> tracetools_trace
Starting >>> tracetools_read
Starting >>> caret_analyze_cpp_impl
Starting >>> caret_msgs
Starting >>> caret_lint_common
Starting >>> cyclonedds
Starting >>> topic_tools_interfaces
/home/aga_pc1a/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'tests_require'
warnings.warn(msg)
/home/aga_pc1a/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'tests_require'
warnings.warn(msg)
Finished <<< caret_lint_common [0.68s]
Finished <<< tracetools [1.60s]
Finished <<< rcl_yaml_param_parser [1.68s]
Starting >>> rcl
--- stderr: tracetools_trace
/home/aga_pc1a/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'tests_require'
warnings.warn(msg)
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: option --editable not recognized
Failed <<< tracetools_trace [5.07s, exited with code 1]
Aborted <<< tracetools_read [5.91s]
Aborted <<< rcl [10.7s]
Aborted <<< caret_msgs [13.5s]
Aborted <<< topic_tools_interfaces [13.8s]
Aborted <<< caret_analyze_cpp_impl [26.1s]
Aborted <<< cyclonedds [28.1s]
Summary: 3 packages finished [28.3s] 1 package failed: tracetools_trace 6 packages aborted: caret_analyze_cpp_impl caret_msgs cyclonedds rcl topic_tools_interfaces tracetools_read 4 packages had stderr output: caret_analyze_cpp_impl cyclonedds tracetools_read tracetools_trace 15 packages not processed