uzh-rpg / fault_tolerant_control

Vision-based quadrotor fault-tolerant flight controller.
GNU General Public License v3.0
154 stars 32 forks source link

Built fails #7

Open architjaiswal opened 2 years ago

architjaiswal commented 2 years ago
Starting  >>> rotors_gazebo                                                    
Finished  <<< opengv                                            [ 1 minute and 47.3 seconds ]
_______________________________________________________________________________
Errors     << ze_common:make /home/archit/catkin_ws/logs/ze_common/build.make.000.log
In file included from /usr/include/c++/9/map:61,
                 from /home/archit/catkin_ws/src/fault_tolerant_control/vio_estimator/common/ze_common/include/ze/common/buffer.hpp:28,
                 from /home/archit/catkin_ws/src/fault_tolerant_control/vio_estimator/common/ze_common/include/ze/common/csv_trajectory.hpp:28,
                 from /home/archit/catkin_ws/src/fault_tolerant_control/vio_estimator/common/ze_common/src/csv_trajectory.cpp:26:
/usr/include/c++/9/bits/stl_map.h: In instantiation of ‘class std::map<long int, Eigen::Matrix<double, 3, 1>, std::less<long int>, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 1> > >’:
/home/archit/catkin_ws/src/fault_tolerant_control/vio_estimator/common/ze_common/include/ze/common/buffer-inl.hpp:204:53:   required from ‘class ze::Buffer<double, 3>/home/archit/catkin_ws/src/fault_tolerant_control/vio_estimator/common/ze_common/include/ze/common/csv_trajectory.hpp:73:21:   required from here
/usr/include/c++/9/bits/stl_map.h:122:71: error: static assertion failed: std::map must have the same value_type as its allocator
  122 |       static_assert(is_same<typename _Alloc::value_type, value_type>::value,
      |                                                                       ^~~~~
/usr/include/c++/9/bits/stl_map.h: In instantiation of ‘class std::map<long int, Eigen::Matrix<double, 7, 1>, std::less<long int>, Eigen::aligned_allocator<Eigen::Matrix<double, 7, 1> > >’:
/home/archit/catkin_ws/src/fault_tolerant_control/vio_estimator/common/ze_common/include/ze/common/buffer-inl.hpp:204:53:   required from ‘class ze::Buffer<double, 7>/home/archit/catkin_ws/src/fault_tolerant_control/vio_estimator/common/ze_common/include/ze/common/csv_trajectory.hpp:91:21:   required from here
/usr/include/c++/9/bits/stl_map.h:122:71: error: static assertion failed: std::map must have the same value_type as its allocator
make[2]: *** [CMakeFiles/ze_common.dir/build.make:63: CMakeFiles/ze_common.dir/src/csv_trajectory.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:2109: CMakeFiles/ze_common.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
cd /home/archit/catkin_ws/build/ze_common; catkin build --get-env ze_common | catkin env -si  /usr/bin/make --jobserver-auth=3,4; cd -

...............................................................................
Failed     << ze_common:make                                    [ Exited with code 2 ]
Failed    <<< ze_common                                         [ 12.5 seconds ]
Abandoned <<< rotors_simulator                                  [ Unrelated job failed ]
Abandoned <<< ceres_catkin                                      [ Unrelated job failed ]
Abandoned <<< imp_core                                          [ Unrelated job failed ]
Abandoned <<< imp_bridge_opencv                                 [ Unrelated job failed ]
Abandoned <<< imp_bridge_ros                                    [ Unrelated job failed ]
Abandoned <<< imp_imgproc                                       [ Unrelated job failed ]
Abandoned <<< ze_cameras                                        [ Unrelated job failed ]
Abandoned <<< imp_features                                      [ Unrelated job failed ]
Abandoned <<< ze_geometry                                       [ Unrelated job failed ]
Abandoned <<< imp_correspondence                                [ Unrelated job failed ]
Abandoned <<< ze_imu                                            [ Unrelated job failed ]
Abandoned <<< ze_ros                                            [ Unrelated job failed ]
Abandoned <<< ze_visualization                                  [ Unrelated job failed ]
Abandoned <<< ze_vio_common                                     [ Unrelated job failed ]
Abandoned <<< ze_ceres_backend                                  [ Unrelated job failed ]
Abandoned <<< ze_data_provider                                  [ Unrelated job failed ]
Abandoned <<< ze_vio_frontend                                   [ Unrelated job failed ]
Abandoned <<< ze_vio_ceres                                      [ Unrelated job failed ]
Finished  <<< rotors_gazebo                                     [ 6.7 seconds ]
_______________________________________________________________________________
Warnings   << suitesparse:make /home/archit/catkin_ws/logs/suitesparse/build.make.000.log
--2022-02-08 09:58:53--  https://github.com/ethz-asl/thirdparty_library_binaries/raw/master/SuiteSparse-4.2.1.tar.gz
Resolving github.com (github.com)... 140.82.112.4
Connecting to github.com (github.com)|140.82.112.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/ethz-asl/thirdparty_library_binaries/master/SuiteSparse-4.2.1.tar.gz [following]
--2022-02-08 09:58:53--  https://raw.githubusercontent.com/ethz-asl/thirdparty_library_binaries/master/SuiteSparse-4.2.1.tar.gz
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8002::154, 2606:50c0:8001::154, 2606:50c0:8003::154, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8002::154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 22541409 (21M) [application/octet-stream]
Saving to: ‘SuiteSparse-4.2.1.tar.gz’

SuiteSparse-4.2.1.t   0%[                    ]       0  --.-KB/s               
SuiteSparse-4.2.1.t  19%[==>                 ]   4.16M  20.7MB/s               
SuiteSparse-4.2.1.t  43%[=======>            ]   9.39M  23.4MB/s               
SuiteSparse-4.2.1.t  68%[============>       ]  14.62M  24.3MB/s               
SuiteSparse-4.2.1.t  92%[=================>  ]  19.83M  24.7MB/s               
SuiteSparse-4.2.1.t 100%[===================>]  21.50M  24.8MB/s    in 0.9s    

2022-02-08 09:58:55 (24.8 MB/s) - ‘SuiteSparse-4.2.1.tar.gz’ saved [22541409/22541409]

make[3]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
ar: creating libcerbla.a
ar: creating libsuitesparseconfig.a
ar: creating libamd.a
ar: creating libbtf.a
ar: creating libcamd.a
ar: creating libccolamd.a
ar: creating libcolamd.a
ar: creating libcholmod.a
ar: creating libklu.a
ar: creating libldl.a
ar: creating libumfpack.a
ar: creating libcsparse.a
ar: creating libcxsparse.a
ar: creating libspqr.a
ar: creating librbio.a
make[3]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
cd /home/archit/catkin_ws/build/suitesparse; catkin build --get-env suitesparse | catkin env -si  /usr/bin/make --jobserver-auth=3,4; cd -

...............................................................................
Finished  <<< suitesparse                                       [ 2 minutes and 11.8 seconds ]
[build] Summary: 38 of 57 packages succeeded.                                  
[build]   Ignored:   None.                                                     
[build]   Warnings:  8 packages succeeded with warnings.                       
[build]   Abandoned: 18 packages were abandoned.                               
[build]   Failed:    1 packages failed.                                        
[build] Runtime: 2 minutes and 14.7 seconds total.                             
[build] Note: Workspace packages have changed, please re-source setup files to use them.
afure commented 1 year ago

Starting >>> rotors_gazebo
Finished <<< opengv [ 1 minute and 47.3 seconds ]


Errors << ze_common:make /home/archit/catkin_ws/logs/ze_common/build.make.000.log In file included from /usr/include/c++/9/map:61, from /home/archit/catkin_ws/src/fault_tolerant_control/vio_estimator/common/ze_common/include/ze/common/buffer.hpp:28, from /home/archit/catkin_ws/src/fault_tolerant_control/vio_estimator/common/ze_common/include/ze/common/csv_trajectory.hpp:28, from /home/archit/catkin_ws/src/fault_tolerant_control/vio_estimator/common/ze_common/src/csv_trajectory.cpp:26: /usr/include/c++/9/bits/stl_map.h: In instantiation of ‘class std::map<long int, Eigen::Matrix<double, 3, 1>, std::less, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 1> > >’: /home/archit/catkin_ws/src/fault_tolerant_control/vio_estimator/common/ze_common/include/ze/common/buffer-inl.hpp:204:53: required from ‘class ze::Buffer<double, 3>’ /home/archit/catkin_ws/src/fault_tolerant_control/vio_estimator/common/ze_common/include/ze/common/csv_trajectory.hpp:73:21: required from here /usr/include/c++/9/bits/stl_map.h:122:71: error: static assertion failed: std::map must have the same value_type as its allocator 122 | static_assert(is_same<typename _Alloc::value_type, value_type>::value, | ^~~~~ /usr/include/c++/9/bits/stl_map.h: In instantiation of ‘class std::map<long int, Eigen::Matrix<double, 7, 1>, std::less, Eigen::aligned_allocator<Eigen::Matrix<double, 7, 1> > >’: /home/archit/catkin_ws/src/fault_tolerant_control/vio_estimator/common/ze_common/include/ze/common/buffer-inl.hpp:204:53: required from ‘class ze::Buffer<double, 7>’ /home/archit/catkin_ws/src/fault_tolerant_control/vio_estimator/common/ze_common/include/ze/common/csv_trajectory.hpp:91:21: required from here /usr/include/c++/9/bits/stl_map.h:122:71: error: static assertion failed: std::map must have the same value_type as its allocator make[2]: [CMakeFiles/ze_common.dir/build.make:63: CMakeFiles/ze_common.dir/src/csv_trajectory.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... make[1]: [CMakeFiles/Makefile2:2109: CMakeFiles/ze_common.dir/all] Error 2 make: [Makefile:141: all] Error 2 cd /home/archit/catkin_ws/build/ze_common; catkin build --get-env ze_common | catkin env -si /usr/bin/make --jobserver-auth=3,4; cd -

............................................................................... Failed << ze_common:make [ Exited with code 2 ] Failed <<< ze_common [ 12.5 seconds ] Abandoned <<< rotors_simulator [ Unrelated job failed ] Abandoned <<< ceres_catkin [ Unrelated job failed ] Abandoned <<< imp_core [ Unrelated job failed ] Abandoned <<< imp_bridge_opencv [ Unrelated job failed ] Abandoned <<< imp_bridge_ros [ Unrelated job failed ] Abandoned <<< imp_imgproc [ Unrelated job failed ] Abandoned <<< ze_cameras [ Unrelated job failed ] Abandoned <<< imp_features [ Unrelated job failed ] Abandoned <<< ze_geometry [ Unrelated job failed ] Abandoned <<< imp_correspondence [ Unrelated job failed ] Abandoned <<< ze_imu [ Unrelated job failed ] Abandoned <<< ze_ros [ Unrelated job failed ] Abandoned <<< ze_visualization [ Unrelated job failed ] Abandoned <<< ze_vio_common [ Unrelated job failed ] Abandoned <<< ze_ceres_backend [ Unrelated job failed ] Abandoned <<< ze_data_provider [ Unrelated job failed ] Abandoned <<< ze_vio_frontend [ Unrelated job failed ] Abandoned <<< ze_vio_ceres [ Unrelated job failed ] Finished <<< rotors_gazebo [ 6.7 seconds ]


Warnings << suitesparse:make /home/archit/catkin_ws/logs/suitesparse/build.make.000.log --2022-02-08 09:58:53-- https://github.com/ethz-asl/thirdparty_library_binaries/raw/master/SuiteSparse-4.2.1.tar.gz Resolving github.com (github.com)... 140.82.112.4 Connecting to github.com (github.com)|140.82.112.4|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/ethz-asl/thirdparty_library_binaries/master/SuiteSparse-4.2.1.tar.gz [following] --2022-02-08 09:58:53-- https://raw.githubusercontent.com/ethz-asl/thirdparty_library_binaries/master/SuiteSparse-4.2.1.tar.gz Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8002::154, 2606:50c0:8001::154, 2606:50c0:8003::154, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8002::154|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 22541409 (21M) [application/octet-stream] Saving to: ‘SuiteSparse-4.2.1.tar.gz’

SuiteSparse-4.2.1.t 0%[ ] 0 --.-KB/s
SuiteSparse-4.2.1.t 19%[==> ] 4.16M 20.7MB/s
SuiteSparse-4.2.1.t 43%[=======> ] 9.39M 23.4MB/s
SuiteSparse-4.2.1.t 68%[============> ] 14.62M 24.3MB/s
SuiteSparse-4.2.1.t 92%[=================> ] 19.83M 24.7MB/s
SuiteSparse-4.2.1.t 100%[===================>] 21.50M 24.8MB/s in 0.9s

2022-02-08 09:58:55 (24.8 MB/s) - ‘SuiteSparse-4.2.1.tar.gz’ saved [22541409/22541409]

make[3]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. ar: creating libcerbla.a ar: creating libsuitesparseconfig.a ar: creating libamd.a ar: creating libbtf.a ar: creating libcamd.a ar: creating libccolamd.a ar: creating libcolamd.a ar: creating libcholmod.a ar: creating libklu.a ar: creating libldl.a ar: creating libumfpack.a ar: creating libcsparse.a ar: creating libcxsparse.a ar: creating libspqr.a ar: creating librbio.a make[3]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. cd /home/archit/catkin_ws/build/suitesparse; catkin build --get-env suitesparse | catkin env -si /usr/bin/make --jobserver-auth=3,4; cd -

............................................................................... Finished <<< suitesparse [ 2 minutes and 11.8 seconds ] [build] Summary: 38 of 57 packages succeeded.
[build] Ignored: None.
[build] Warnings: 8 packages succeeded with warnings.
[build] Abandoned: 18 packages were abandoned.
[build] Failed: 1 packages failed.
[build] Runtime: 2 minutes and 14.7 seconds total.
[build] Note: Workspace packages have changed, please re-source setup files to use them.

Hey, did you fix this issue? This problem seems occured by different gcc version. I tested successfully in 18.04, but failed in 20.04

architjaiswal commented 1 year ago

it's still unresolved for 20.04

afure commented 1 year ago

it's still unresolved for 20.04

Hey, I have found a way to fix this issue. As I said, the error occurred by GCC version. So you just install multi-verison gcc, the error will disappear. I used gcc-7.5 and g++ 7.5 by using sudo update-alternatives --config gcc