tfoote / rosidl_typesupport_protobuf

Middleware agnostic ros2 static typesupport which uses Protobuf for serialization/deserialization.
Apache License 2.0
0 stars 0 forks source link

Benchmark builds fail to build on the first clean bulid rosidl_generator_py when rosidl_typesupport_protobuf is present #22

Open tfoote opened 4 months ago

tfoote commented 4 months ago

The following error occurs in rosidl_generator_py when this repository is present. I found this when generating the benchmark for #21

If you build it a second time it will pass.

My workaround is in https://github.com/tfoote/build_benchmark/commit/dde2d6b51c109be8bc9c9f2a5ab5eb7ca1bd0e31

This is the failure:

Starting >>> rosidl_generator_py
--- stderr: rosidl_generator_py
CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE)
Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.22/Modules/FindPythonInterp.cmake:169 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  /tmp/benchmark/protobuf.repos-src/install/rosidl_adapter_proto/share/rosidl_adapter_proto/cmake/rosidl_adapt_proto_interfaces.cmake:19 (find_package)
  /tmp/benchmark/protobuf.repos-src/install/rosidl_adapter_proto/share/rosidl_adapter_proto/cmake/rosidl_adapter_proto-extras.cmake:31 (include)
  /tmp/benchmark/protobuf.repos-src/install/rosidl_adapter_proto/share/rosidl_adapter_proto/cmake/rosidl_adapter_protoConfig.cmake:41 (include)
  /tmp/benchmark/protobuf.repos-src/install/rosidl_typesupport_protobuf_c/share/rosidl_typesupport_protobuf_c/cmake/rosidl_typesupport_protobuf_c_generate_interfaces.cmake:21 (find_package)
  /tmp/benchmark/protobuf.repos-src/install/ament_cmake_core/share/ament_cmake_core/cmake/core/ament_execute_extensions.cmake:48 (include)
  /tmp/benchmark/protobuf.repos-src/install/rosidl_cmake/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:280 (ament_execute_extensions)
  CMakeLists.txt:50 (rosidl_generate_interfaces)

---
Failed   <<< rosidl_generator_py [3.32s, exited with code 1]

Summary: 88 packages finished [4min 14s]
  1 package failed: rosidl_generator_py
  24 packages had stderr output: ament_copyright ament_cppcheck ament_cpplint ament_flake8 ament_index_python ament_lint ament_lint_cmake ament_mypy ament_package ament_pep257 ament_pycodestyle ament_uncrustify ament_xmllint domain_coordinator google_benchmark_vendor launch launch_testing launch_xml launch_yaml osrf_pycommon rosidl_cli rosidl_generator_py rosidl_pycommon rpyutils
  21 packages not processed
tfoote commented 4 months ago

This may be obsolete after #17 is reimplemented.

gonzodepedro commented 4 months ago

This may be fixed