CMU-cabot/cabot

Failure of pre build

Closed this issue · 2 comments

@tatsuya-ishihara

I'm not sure this is related to the last PR, but could you check this?
#8

# build nvidia-cuda11.1-cudnn8-devel-glvnd-runtime-ros-base-realsense-ubuntu20.04
~/src/cabot/docker/prebuild/realsense ~/src/cabot/docker
[+] Building 2.9s (12/12) FINISHED                                                                                                                                                                                                                                
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                         0.0s
 => => transferring dockerfile: 2.75kB                                                                                                                                                                                                                       0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                            0.0s
 => => transferring context: 2B                                                                                                                                                                                                                              0.0s
 => [internal] load metadata for docker.io/library/nvidia-cuda11.1-cudnn8-devel-glvnd-runtime-ros-base-ubuntu20.04:latest                                                                                                                                    0.0s
 => [1/8] FROM docker.io/library/nvidia-cuda11.1-cudnn8-devel-glvnd-runtime-ros-base-ubuntu20.04                                                                                                                                                             0.0s
 => [internal] load build context                                                                                                                                                                                                                            0.0s
 => => transferring context: 6.06kB                                                                                                                                                                                                                          0.0s
 => CACHED [2/8] RUN apt update &&  apt-get install -y  libopencv-dev  python3-pip  python3-vcstool  software-properties-common  unzip  usbutils  wget  &&  apt-key adv --keyserver keys.gnupg.net --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE ||    0.0s
 => CACHED [3/8] RUN mkdir -p /opt/underlay_ws/src                                                                                                                                                                                                           0.0s
 => CACHED [4/8] WORKDIR /opt/underlay_ws                                                                                                                                                                                                                    0.0s
 => CACHED [5/8] RUN cd src &&  wget https://github.com/IntelRealSense/realsense-ros/archive/2.2.22.zip &&  unzip 2.2.22.zip &&  cd .. &&  apt update &&  rosdep install --from-paths ./src --ignore-src --rosdistro noetic -y &&  rm -rf /var/lib/apt/list  0.0s
 => CACHED [6/8] COPY ./rs_aligned_depth_1280x720_30fps.launch /opt/underlay_ws/src/realsense-ros-2.2.22/realsense2_camera/launch/                                                                                                                           0.0s
 => CACHED [7/8] WORKDIR /opt/underlay_ws/                                                                                                                                                                                                                   0.0s
 => ERROR [8/8] RUN . /opt/ros/noetic/setup.sh &&  catkin_make install &&  sed -i 's:ros/$ROS_DISTRO:underlay_ws/install:g' /ros_entrypoint.sh                                                                                                               2.7s
------                                                                                                                                                                                                                                                            
 > [8/8] RUN . /opt/ros/noetic/setup.sh &&      catkin_make install &&  sed -i 's:ros/$ROS_DISTRO:underlay_ws/install:g' /ros_entrypoint.sh:                                                                                                                      
#12 0.535 -- The C compiler identification is GNU 9.3.0                                                                                                                                                                                                           
#12 0.603 -- The CXX compiler identification is GNU 9.3.0                                                                                                                                                                                                         
#12 0.611 -- Check for working C compiler: /usr/bin/cc                                                                                                                                                                                                            
#12 0.680 -- Check for working C compiler: /usr/bin/cc -- works                                                                                                                                                                                                   
#12 0.681 -- Detecting C compiler ABI info
#12 0.750 -- Detecting C compiler ABI info - done
#12 0.766 -- Detecting C compile features
#12 0.767 -- Detecting C compile features - done
#12 0.771 -- Check for working CXX compiler: /usr/bin/c++
#12 0.853 -- Check for working CXX compiler: /usr/bin/c++ -- works
#12 0.854 -- Detecting CXX compiler ABI info
#12 0.937 -- Detecting CXX compiler ABI info - done
#12 0.954 -- Detecting CXX compile features
#12 0.955 -- Detecting CXX compile features - done
#12 1.120 -- Using CATKIN_DEVEL_PREFIX: /opt/underlay_ws/devel
#12 1.120 -- Using CMAKE_PREFIX_PATH: /opt/ros/noetic
#12 1.120 -- This workspace overlays: /opt/ros/noetic
#12 1.138 -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.5", minimum required is "3") 
#12 1.138 -- Using PYTHON_EXECUTABLE: /usr/bin/python3
#12 1.138 -- Using Debian Python package layout
#12 1.171 -- Found PY_em: /usr/lib/python3/dist-packages/em.py  
#12 1.171 -- Using empy: /usr/lib/python3/dist-packages/em.py
#12 1.298 -- Using CATKIN_ENABLE_TESTING: ON
#12 1.298 -- Call enable_testing()
#12 1.300 -- Using CATKIN_TEST_RESULTS_DIR: /opt/underlay_ws/build/test_results
#12 1.603 -- Forcing gtest/gmock from source, though one was otherwise available.
#12 1.603 -- Found gtest sources under '/usr/src/googletest': gtests will be built
#12 1.603 -- Found gmock sources under '/usr/src/googletest': gmock will be built
#12 1.623 -- Found PythonInterp: /usr/bin/python3 (found version "3.8.5") 
#12 1.626 -- Found Threads: TRUE  
#12 1.634 -- Using Python nosetests: /usr/bin/nosetests3
#12 1.695 -- catkin 0.8.9
#12 1.695 -- BUILD_SHARED_LIBS is on
#12 1.824 -- BUILD_SHARED_LIBS is on
#12 2.144 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 2.144 -- ~~  traversing 2 packages in topological order:
#12 2.144 -- ~~  - realsense2_description
#12 2.145 -- ~~  - realsense2_camera
#12 2.145 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#12 2.145 -- +++ processing catkin package: 'realsense2_description'
#12 2.145 -- ==> add_subdirectory(realsense-ros-2.2.22/realsense2_description)
#12 2.315 -- +++ processing catkin package: 'realsense2_camera'
#12 2.315 -- ==> add_subdirectory(realsense-ros-2.2.22/realsense2_camera)
#12 2.328 -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
#12 2.685 CMake Warning at realsense-ros-2.2.22/realsense2_camera/CMakeLists.txt:44 (find_package):
#12 2.685   Could not find a configuration file for package "realsense2" that is
#12 2.685   compatible with requested version "2.42.0".
#12 2.685 
#12 2.685   The following configuration files were considered but not accepted:
#12 2.685 
#12 2.685     /opt/ros/noetic/lib/x86_64-linux-gnu/cmake/realsense2/realsense2Config.cmake, version: 2.41.0
#12 2.685     /usr/lib/x86_64-linux-gnu/cmake/realsense2/realsense2Config.cmake, version: 2.41.0
#12 2.685     /lib/x86_64-linux-gnu/cmake/realsense2/realsense2Config.cmake, version: 2.41.0
#12 2.685 
#12 2.685 
#12 2.685 
#12 2.685 CMake Error at realsense-ros-2.2.22/realsense2_camera/CMakeLists.txt:48 (message):
#12 2.685   
#12 2.685 
#12 2.685   
#12 2.685 
#12 2.685    Intel RealSense SDK 2.0 is missing, please install it from https://github.com/IntelRealSense/librealsense/releases
#12 2.685 
#12 2.685   
#12 2.685 
#12 2.685 
#12 2.685 
#12 2.688 -- Configuring incomplete, errors occurred!
#12 2.688 See also "/opt/underlay_ws/build/CMakeFiles/CMakeOutput.log".
#12 2.688 See also "/opt/underlay_ws/build/CMakeFiles/CMakeError.log".
#12 2.694 Base path: /opt/underlay_ws
#12 2.694 Source space: /opt/underlay_ws/src
#12 2.694 Build space: /opt/underlay_ws/build
#12 2.694 Devel space: /opt/underlay_ws/devel
#12 2.694 Install space: /opt/underlay_ws/install
#12 2.694 Creating symlink "/opt/underlay_ws/src/CMakeLists.txt" pointing to "/opt/ros/noetic/share/catkin/cmake/toplevel.cmake"
#12 2.694 ####
#12 2.694 #### Running command: "cmake /opt/underlay_ws/src -DCATKIN_DEVEL_PREFIX=/opt/underlay_ws/devel -DCMAKE_INSTALL_PREFIX=/opt/underlay_ws/install -G Unix Makefiles" in "/opt/underlay_ws/build"
#12 2.694 ####
#12 2.694 Invoking "cmake" failed
------
executor failed running [/bin/sh -c . /opt/ros/$ROS_DISTRO/setup.sh && 	catkin_make install && 	sed -i 's:ros/$ROS_DISTRO:underlay_ws/install:g' /ros_entrypoint.sh]: exit code: 1

I think build cache should be removed before running prebuild.
librealsense 2.41.0 is installed in this line previously, but that is not compatible with RealSense ROS 2.2.22.

https://github.com/CMU-cabot/cabot/blob/main/docker/prebuild/realsense/Dockerfile#L29

Currently, librealsense 2.42.0 will be installed in this line, and it will work with RealSense ROS 2.2.22.

I see, thanks!
I will try to build without cache