Skip to content

Failed Build using Humble (ROS2) and Noetic (ROS1) #453

@DanielChaseButterfield

Description

@DanielChaseButterfield

Operating System:

Linux aellnar08116l 6.5.0-44-generic #44~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Jun 18 14:36:16 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

ROS version or commit hash:

humble & noetic

RMW implementation (if applicable):

rmw_fastrtps_cpp

RMW Configuration (if applicable):

No response

Client library (if applicable):

No response

'ros2 doctor --report' output

ros2 doc --report
root@aellnar08116l:/opt/rosBagConversions/ros_ws_1&2# ros2 doctor --report
/opt/ros/humble/build/ros2doctor/ros2doctor/api/__init__.py: 154: UserWarning: Fail to call PackageReport class functions.

   NETWORK CONFIGURATION
inet         : 127.0.0.1
inet4        : ['127.0.0.1']
inet6        : ['::1']
netmask      : 255.0.0.0
device       : lo
flags        : 73<LOOPBACK,UP,RUNNING>
mtu          : 65536
inet         : 192.168.1.252
inet4        : ['192.168.1.252']
ether        : d4:f3:2d:48:53:aa
inet6        : ['fe80::1b9e:590b:7d6f:b824%wlp0s20f3']
netmask      : 255.255.255.0
device       : wlp0s20f3
flags        : 4163<BROADCAST,UP,MULTICAST,RUNNING>
mtu          : 1500
broadcast    : 192.168.1.255
inet         : 172.17.0.1
inet4        : ['172.17.0.1']
ether        : 92:60:6a:55:17:be
inet6        : ['fe80::9060:6aff:fe55:17be%docker0']
netmask      : 255.255.0.0
device       : docker0
flags        : 4099<BROADCAST,UP,MULTICAST>
mtu          : 1500
broadcast    : 172.17.255.255
ether        : d0:46:0c:d2:cf:c9
device       : enp0s31f6
flags        : 4099<BROADCAST,UP,MULTICAST>
mtu          : 1500

   PLATFORM INFORMATION
system           : Linux
platform info    : Linux-6.5.0-44-generic-x86_64-with-glibc2.29
release          : 6.5.0-44-generic
processor        : x86_64

   QOS COMPATIBILITY LIST
compatibility status    : No publisher/subscriber pairs found

   RMW MIDDLEWARE
middleware name    : rmw_fastrtps_cpp

   ROS 2 INFORMATION
distribution name      : humble
distribution type      : ros2
distribution status    : active
release platforms      : {'rhel': ['8'], 'ubuntu': ['jammy']}

   TOPIC LIST
topic               : none
publisher count     : 0
subscriber count    : 0

Steps to reproduce issue

  1. Made a custom Docker environment using a DockerFile with FROM ubuntu:20.04. The rest of these commands were run inside that environment.
  2. Install ROS1 Noetic according to documentation here: https://wiki.ros.org/noetic/Installation/Ubuntu . I followed all steps except for 1.5, as I manually sourced later. For 1.4, I downloaded 'Desktop-Full Install'.
  3. Install ROS2 Humble from source according to documentation here: https://docs.ros.org/en/humble/Installation/Alternatives/Ubuntu-Development-Setup.html#install-dependencies-using-rosdep . I skipped "Environment Setup" here as well as I did it later.
  4. Sourced my ROS2 installation, and then my ROS1 installation in a seperate terminal.
  5. Run colcon build --symlink-install --packages-select ros1_bridge --cmake-force-configure

Expected behavior

The build process should hopefully complete successfully.

Actual behavior

However, I get the following errors:

Starting >>> ros1_bridge
--- stderr: ros1_bridge                            
/bin/sh: 1: 2/build/ros1_bridge/generated: not found
make[2]: *** [CMakeFiles/ros1_bridge.dir/build.make:68: generated/get_factory.cpp] Error 127
make[1]: *** [CMakeFiles/Makefile2:291: CMakeFiles/ros1_bridge.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/bin/sh: 1: 2/src/ros1_bridge/ros1_bridge: not found
/bin/sh: 1: 2/build/ros1_bridge/ament_cmake_python/ros1_bridge/ros1_bridge: not found
make[2]: *** [CMakeFiles/ament_cmake_python_symlink_ros1_bridge.dir/build.make:57: CMakeFiles/ament_cmake_python_symlink_ros1_bridge] Error 127
make[1]: *** [CMakeFiles/Makefile2:238: CMakeFiles/ament_cmake_python_symlink_ros1_bridge.dir/all] Error 2
CMake Error: cmake version 3.16.3
Usage: /usr/bin/cmake -E <command> [arguments...]
Available commands: 
  capabilities              - Report capabilities built into cmake in JSON format
  chdir dir cmd [args...]   - run command in a given directory
  compare_files [--ignore-eol] file1 file2
                              - check if file1 is same as file2
  copy <file>... destination  - copy files to destination (either file or directory)
  copy_directory <dir>... destination   - copy content of <dir>... directories to 'destination' directory
  copy_if_different <file>... destination  - copy files if it has changed
  echo [<string>...]        - displays arguments as text
  echo_append [<string>...] - displays arguments as text but no new line
  env [--unset=NAME]... [NAME=VALUE]... COMMAND [ARG]...
                            - run command in a modified environment
  environment               - display the current environment
  make_directory <dir>...   - create parent and <dir> directories
  md5sum <file>...          - create MD5 checksum of files
  sha1sum <file>...         - create SHA1 checksum of files
  sha224sum <file>...       - create SHA224 checksum of files
  sha256sum <file>...       - create SHA256 checksum of files
  sha384sum <file>...       - create SHA384 checksum of files
  sha512sum <file>...       - create SHA512 checksum of files
  remove [-f] <file>...     - remove the file(s), use -f to force it
  remove_directory <dir>... - remove directories and their contents
  rename oldname newname    - rename a file or directory (on one volume)
  server                    - start cmake in server mode
  sleep <number>...         - sleep for given number of seconds
  tar [cxt][vf][zjJ] file.tar [file/dir1 file/dir2 ...]
                            - create or extract a tar or zip archive
  time command [args...]    - run command and display elapsed time
  touch <file>...           - touch a <file>.
  touch_nocreate <file>...  - touch a <file> but do not create it.
  create_symlink old new    - create a symbolic link new -> old
  true                      - do nothing with an exit code of 0
  false                     - do nothing with an exit code of 1

make: *** [Makefile:141: all] Error 2
usage: ros1_bridge_generate_factories
       [-h]
       --output-path
       OUTPUT_PATH
       --template-dir
       TEMPLATE_DIR
ros1_bridge_generate_factories: error: the following arguments are required: --template-dir
---
Failed   <<< ros1_bridge [8.58s, exited with code 2]

Summary: 0 packages finished [8.86s]
  1 package failed: ros1_bridge
  1 package had stderr output: ros1_bridge

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions