uzh-rpg / agile_autonomy

Repository Containing the Code associated with the Paper: "Learning High-Speed Flight in the Wild"
GNU General Public License v3.0
608 stars 165 forks source link

CMake Error at agile_autonomy while running catkin build #55

Closed Amos-Chen98 closed 2 years ago

Amos-Chen98 commented 2 years ago

Environment: Ubuntu 18.04 ROS melodic gcc/g++ version 11.1.0 cmake version 3.23.2

When I was running catkin build, 70 of 71 packages succeeded, but cmake error occurred in package agile_autonomy.

Would appreciate any help.

chen@chen:~/ros_ws/agile_autonomy/catkin_aa$ catkin build
--------------------------------------------------------------------------------
Profile:                     default
Extending:        [explicit] /opt/ros/melodic
Workspace:                   /home/chen/ros_ws/agile_autonomy/catkin_aa
--------------------------------------------------------------------------------
Build Space:        [exists] /home/chen/ros_ws/agile_autonomy/catkin_aa/build
Devel Space:        [exists] /home/chen/ros_ws/agile_autonomy/catkin_aa/devel
Install Space:      [unused] /home/chen/ros_ws/agile_autonomy/catkin_aa/install
Log Space:          [exists] /home/chen/ros_ws/agile_autonomy/catkin_aa/logs
Source Space:       [exists] /home/chen/ros_ws/agile_autonomy/catkin_aa/src
DESTDIR:            [unused] None
--------------------------------------------------------------------------------
Devel Space Layout:          merged
Install Space Layout:        None
--------------------------------------------------------------------------------
Additional CMake Args:       -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=-fdiagnostics-color
Additional Make Args:        None
Additional catkin Make Args: None
Internal Make Job Server:    True
Cache Job Environments:      False
--------------------------------------------------------------------------------
Buildlisted Packages:        None
Skiplisted Packages:         None
--------------------------------------------------------------------------------
Workspace configuration appears valid.
--------------------------------------------------------------------------------
[build] Found '71' packages in 0.0 seconds.                                    
[build] Package table is up to date.                                           
Starting  >>> catkin_boost_python_buildtool                                    
Starting  >>> catkin_simple                                                    
Starting  >>> decomp_util                                                      
Starting  >>> mav_msgs                                                         
Starting  >>> mav_state_machine_msgs                                           
Starting  >>> mav_system_msgs                                                  
Starting  >>> motion_primitive_library                                         
Starting  >>> open3d_conversions                                               
Starting  >>> rotors_comm                                                      
Starting  >>> rotors_description                                               
Starting  >>> rotors_evaluation                                                
Starting  >>> rqt_rotors                                                       
Finished  <<< open3d_conversions                                [ 0.2 seconds ]
Finished  <<< rotors_comm                                       [ 0.2 seconds ]
Finished  <<< rotors_description                                [ 0.1 seconds ]
Finished  <<< mav_msgs                                          [ 0.2 seconds ]
Starting  >>> mav_planning_msgs                                                
Starting  >>> rotors_control                                                   
Starting  >>> rotors_hil_interface                                             
Starting  >>> rotors_joy_interface                                             
Finished  <<< catkin_boost_python_buildtool                     [ 0.1 seconds ]
Finished  <<< catkin_simple                                     [ 0.1 seconds ]
Starting  >>> assimp_catkin                                                    
Starting  >>> catkin_boost_python_buildtool_test                               
Starting  >>> decomp_ros_msgs                                                  
Starting  >>> eigen_catkin                                                     
Starting  >>> flightrender                                                     
Starting  >>> gflags_catkin                                                    
Finished  <<< mav_state_machine_msgs                            [ 0.1 seconds ]
Starting  >>> minimum_jerk_trajectories                                        
Finished  <<< rotors_evaluation                                 [ 0.1 seconds ]
Starting  >>> planning_ros_msgs                                                
Finished  <<< rqt_rotors                                        [ 0.1 seconds ]
Finished  <<< mav_system_msgs                                   [ 0.2 seconds ]
Starting  >>> quad_launch_files                                                
Starting  >>> quadrotor_msgs                                                   
Finished  <<< motion_primitive_library                          [ 0.3 seconds ]
Starting  >>> rpg_single_board_io                                              
Finished  <<< decomp_util                                       [ 0.2 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Starting  >>> mpl_external_planner                                                                                                                                                                                                                                                                                                                                                                                                      
Finished  <<< catkin_boost_python_buildtool_test                [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< flightrender                                      [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< gflags_catkin                                     [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< eigen_catkin                                      [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< rotors_joy_interface                              [ 0.5 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< assimp_catkin                                     [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< mav_planning_msgs                                 [ 0.7 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< rotors_control                                    [ 0.6 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< decomp_ros_msgs                                   [ 0.2 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< minimum_jerk_trajectories                         [ 0.2 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< planning_ros_msgs                                 [ 0.2 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Starting  >>> decomp_ros_utils                                                                                                                                                                                                                                                                                                                                                                                                          
Starting  >>> glog_catkin                                                                                                                                                                                                                                                                                                                                                                                                               
Starting  >>> mav_comm                                                                                                                                                                                                                                                                                                                                                                                                                  
Starting  >>> numpy_eigen                                                                                                                                                                                                                                                                                                                                                                                                               
Starting  >>> planning_ros_utils                                                                                                                                                                                                                                                                                                                                                                                                        
Starting  >>> rotors_gazebo_plugins                                                                                                                                                                                                                                                                                                                                                                                                     
Starting  >>> rpgq_msgs                                                                                                                                                                                                                                                                                                                                                                                                                 
Finished  <<< rotors_hil_interface                              [ 0.8 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< quad_launch_files                                 [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< quadrotor_msgs                                    [ 0.2 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Starting  >>> agile_autonomy_msgs                                                                                                                                                                                                                                                                                                                                                                                                       
Starting  >>> quadrotor_common                                                                                                                                                                                                                                                                                                                                                                                                          
Starting  >>> rqt_quad_gui                                                                                                                                                                                                                                                                                                                                                                                                              
Starting  >>> vbat_thrust_calibration                                                                                                                                                                                                                                                                                                                                                                                                   
Finished  <<< rpg_single_board_io                               [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< glog_catkin                                       [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Starting  >>> eigen_checks                                                                                                                                                                                                                                                                                                                                                                                                              
Finished  <<< mpl_external_planner                              [ 0.2 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< numpy_eigen                                       [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< mav_comm                                          [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< rotors_gazebo_plugins                             [ 0.3 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Starting  >>> rotors_gazebo                                                                                                                                                                                                                                                                                                                                                                                                             
Finished  <<< rpgq_msgs                                         [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Starting  >>> rpgq_common                                                                                                                                                                                                                                                                                                                                                                                                               
Finished  <<< planning_ros_utils                                [ 0.3 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< vbat_thrust_calibration                           [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< decomp_ros_utils                                  [ 0.2 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Starting  >>> decomp_test_node                                                                                                                                                                                                                                                                                                                                                                                                          
Finished  <<< rqt_quad_gui                                      [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< agile_autonomy_msgs                               [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< quadrotor_common                                  [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Starting  >>> polynomial_trajectories                                                                                                                                                                                                                                                                                                                                                                                                   
Starting  >>> position_controller                                                                                                                                                                                                                                                                                                                                                                                                       
Starting  >>> sbus_bridge                                                                                                                                                                                                                                                                                                                                                                                                               
Starting  >>> state_predictor                                                                                                                                                                                                                                                                                                                                                                                                           
Starting  >>> trajectory_visualizer                                                                                                                                                                                                                                                                                                                                                                                                     
Finished  <<< eigen_checks                                      [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Starting  >>> minkindr                                                                                                                                                                                                                                                                                                                                                                                                                  
Finished  <<< rotors_gazebo                                     [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Starting  >>> rotors_simulator                                                                                                                                                                                                                                                                                                                                                                                                          
Finished  <<< rpgq_common                                       [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Starting  >>> rpgq_command_bridge                                                                                                                                                                                                                                                                                                                                                                                                       
Starting  >>> rpgq_components                                                                                                                                                                                                                                                                                                                                                                                                           
Finished  <<< decomp_test_node                                  [ 0.2 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< trajectory_visualizer                             [ 0.2 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< position_controller                               [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< sbus_bridge                                       [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Starting  >>> manual_flight_assistant                                                                                                                                                                                                                                                                                                                                                                                                   
Finished  <<< state_predictor                                   [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< polynomial_trajectories                           [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< minkindr                                          [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Starting  >>> minkindr_conversions                                                                                                                                                                                                                                                                                                                                                                                                      
Starting  >>> minkindr_python                                                                                                                                                                                                                                                                                                                                                                                                           
Starting  >>> rpg_common                                                                                                                                                                                                                                                                                                                                                                                                                
Finished  <<< rotors_simulator                                  [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< rpgq_components                                   [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< rpgq_command_bridge                               [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Starting  >>> rpgq_simulator                                                                                                                                                                                                                                                                                                                                                                                                            
Finished  <<< manual_flight_assistant                           [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< minkindr_python                                   [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< rpg_common                                        [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Starting  >>> rpg_rotors_interface                                                                                                                                                                                                                                                                                                                                                                                                      
Starting  >>> trajectory_generation_helper                                                                                                                                                                                                                                                                                                                                                                                              
Finished  <<< minkindr_conversions                              [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< rpgq_simulator                                    [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Starting  >>> example_pcd                                                                                                                                                                                                                                                                                                                                                                                                               
Starting  >>> example_vision                                                                                                                                                                                                                                                                                                                                                                                                            
Starting  >>> example_vison                                                                                                                                                                                                                                                                                                                                                                                                             
Finished  <<< trajectory_generation_helper                      [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Starting  >>> autopilot                                                                                                                                                                                                                                                                                                                                                                                                                 
Finished  <<< rpg_rotors_interface                              [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< example_vision                                    [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< example_pcd                                       [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< example_vison                                     [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< autopilot                                         [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Starting  >>> agile_autonomy_utils                                                                                                                                                                                                                                                                                                                                                                                                      
Starting  >>> example_control                                                                                                                                                                                                                                                                                                                                                                                                           
Starting  >>> planner_learning                                                                                                                                                                                                                                                                                                                                                                                                          
Starting  >>> rpg_mpc                                                                                                                                                                                                                                                                                                                                                                                                                   
Starting  >>> rpg_quadrotor_integration_test                                                                                                                                                                                                                                                                                                                                                                                            
Finished  <<< planner_learning                                  [ 0.1 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< example_control                                   [ 0.2 seconds ]                                                                                                                                                                                                                                                                                                                                                         
Finished  <<< agile_autonomy_utils                              [ 0.1 seconds ]
Starting  >>> mpl_test_node                                                    
Finished  <<< rpg_quadrotor_integration_test                    [ 0.1 seconds ]
Finished  <<< rpg_mpc                                           [ 0.2 seconds ]
Starting  >>> agile_autonomy                                                   
Starting  >>> traj_sampler                                                     
Finished  <<< mpl_test_node                                     [ 0.2 seconds ]                                                                                                                                   
Finished  <<< traj_sampler                                      [ 0.2 seconds ]                                                                                                                                   
__________________________________________________________________________________________________________________________________________________________________________________________________________________
Errors     << agile_autonomy:make /home/chen/ros_ws/agile_autonomy/catkin_aa/logs/agile_autonomy/build.make.004.log                                                                                               
CMake Error at sgm_gpu_generated_costs.cu.o.Release.cmake:220 (message):
  Error generating
  /home/chen/ros_ws/agile_autonomy/catkin_aa/build/agile_autonomy/CMakeFiles/sgm_gpu.dir/src/sgm_gpu/./sgm_gpu_generated_costs.cu.o

make[2]: *** [CMakeFiles/sgm_gpu.dir/src/sgm_gpu/sgm_gpu_generated_costs.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMake Error at sgm_gpu_generated_hamming_cost.cu.o.Release.cmake:220 (message):
  Error generating
  /home/chen/ros_ws/agile_autonomy/catkin_aa/build/agile_autonomy/CMakeFiles/sgm_gpu.dir/src/sgm_gpu/./sgm_gpu_generated_hamming_cost.cu.o

CMake Error at sgm_gpu_generated_sgm_gpu.cu.o.Release.cmake:220 (message):
  Error generating
  /home/chen/ros_ws/agile_autonomy/catkin_aa/build/agile_autonomy/CMakeFiles/sgm_gpu.dir/src/sgm_gpu/./sgm_gpu_generated_sgm_gpu.cu.o

make[2]: *** [CMakeFiles/sgm_gpu.dir/src/sgm_gpu/sgm_gpu_generated_hamming_cost.cu.o] Error 1
make[2]: *** [CMakeFiles/sgm_gpu.dir/src/sgm_gpu/sgm_gpu_generated_sgm_gpu.cu.o] Error 1
CMake Error at sgm_gpu_generated_left_right_consistency.cu.o.Release.cmake:220 (message):
  Error generating
  /home/chen/ros_ws/agile_autonomy/catkin_aa/build/agile_autonomy/CMakeFiles/sgm_gpu.dir/src/sgm_gpu/./sgm_gpu_generated_left_right_consistency.cu.o

make[2]: *** [CMakeFiles/sgm_gpu.dir/src/sgm_gpu/sgm_gpu_generated_left_right_consistency.cu.o] Error 1
CMake Error at sgm_gpu_generated_median_filter.cu.o.Release.cmake:220 (message):
  Error generating
  /home/chen/ros_ws/agile_autonomy/catkin_aa/build/agile_autonomy/CMakeFiles/sgm_gpu.dir/src/sgm_gpu/./sgm_gpu_generated_median_filter.cu.o

make[2]: *** [CMakeFiles/sgm_gpu.dir/src/sgm_gpu/sgm_gpu_generated_median_filter.cu.o] Error 1
make[1]: *** [CMakeFiles/sgm_gpu.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2
cd /home/chen/ros_ws/agile_autonomy/catkin_aa/build/agile_autonomy; catkin build --get-env agile_autonomy | catkin env -si  /usr/bin/make --jobserver-fds=3,4 -j; cd -

..................................................................................................................................................................................................................
Failed     << agile_autonomy:make                               [ Exited with code 2 ]                                                                                                                            
Failed    <<< agile_autonomy                                    [ 0.1 seconds ]                                                                                                                                   
[build] Summary: 70 of 71 packages succeeded.                                                                                                                                                                     
[build]   Ignored:   None.                                                                                                                                                                                        
[build]   Warnings:  None.                                                                                                                                                                                        
[build]   Abandoned: None.                                                                                                                                                                                        
[build]   Failed:    1 packages failed.                                                                                                                                                                           
[build] Runtime: 4.8 seconds total.
Amos-Chen98 commented 2 years ago

Problem solved!

I changed gcc/g++ version to 7.5.0 and everything went well.