voxblox icon indicating copy to clipboard operation
voxblox copied to clipboard

catkin build error in ubuntu 18.04

Open VimalRathod opened this issue 5 years ago • 2 comments

Hi,

I have tried to build the voxblox files many times and I keep getting the same error. Hope you guys could help.

[``` build] Found '13' packages in 0.0 seconds.
[build] Updating package table.
Starting >>> catkin_simple
Finished <<< catkin_simple [ 7.2 seconds ]
Starting >>> eigen_catkin
Starting >>> gflags_catkin
Starting >>> protobuf_catkin
Starting >>> voxblox_msgs
Finished <<< eigen_catkin [ 3.9 seconds ]
Finished <<< protobuf_catkin [ 4.6 seconds ]
Finished <<< voxblox_msgs [ 26.1 seconds ]


Warnings << gflags_catkin:make /home/vimal/catkin_ws/logs/gflags_catkin/build.make.000.log
make[3]: warning: -jN forced in submake: disabling jobserver mode. make[3]: warning: -jN forced in submake: disabling jobserver mode. cd /home/vimal/catkin_ws/build/gflags_catkin; catkin build --get-env gflags_catkin | catkin env -si /usr/bin/make --jobserver-fds=6,7 -j; cd - ........................................................................................................................................................................................................... Finished <<< gflags_catkin [ 33.4 seconds ]
Starting >>> glog_catkin


Warnings << glog_catkin:make /home/vimal/catkin_ws/logs/glog_catkin/build.make.000.log
configure.ac:19: installing './compile' configure.ac:13: installing './missing' Makefile.am: installing './depcomp' parallel-tests: installing './test-driver' make[3]: warning: -jN forced in submake: disabling jobserver mode. In file included from src/logging_unittest.cc:58:0: src/googletest.h:579:33: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] void* operator new(size_t size) throw(std::bad_alloc) { ^~~~~ src/googletest.h:586:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] void* operator new[](size_t size) throw(std::bad_alloc) { ^~~~~ src/logging_unittest.cc: In function ‘void TestDCHECK()’: src/logging_unittest.cc:568:3: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] auto_ptr sptr(new int64); ^~~~~~~~ In file included from /usr/include/c++/7/bits/locale_conv.h:41:0, from /usr/include/c++/7/locale:43, from /usr/include/c++/7/iomanip:43, from src/logging_unittest.cc:44: /usr/include/c++/7/bits/unique_ptr.h:51:28: note: declared here template class auto_ptr; ^~~~~~~~ In file included from /usr/include/c++/7/ext/hash_set:60:0, from src/glog/stl_logging.h:73, from src/stl_logging_unittest.cc:62: /usr/include/c++/7/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp] #warning
^~~~~~~ In file included from src/symbolize_unittest.cc:41:0: src/googletest.h:579:33: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] void* operator new(size_t size) throw(std::bad_alloc) { ^~~~~ src/googletest.h:586:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] void* operator new[](size_t size) throw(std::bad_alloc) { ^~~~~ In file included from src/demangle_unittest.cc:41:0: src/googletest.h:579:33: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] void* operator new(size_t size) throw(std::bad_alloc) { ^~~~~ src/googletest.h:586:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] void* operator new[](size_t size) throw(std::bad_alloc) { ^~~~~ In file included from src/utilities_unittest.cc:32:0: src/googletest.h:579:33: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] void* operator new(size_t size) throw(std::bad_alloc) { ^~~~~ src/googletest.h:586:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] void* operator new[](size_t size) throw(std::bad_alloc) { ^~~~~ In file included from src/stl_logging_unittest.cc:63:0: src/googletest.h:579:33: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] void* operator new(size_t size) throw(std::bad_alloc) { ^~~~~ src/googletest.h:586:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] void* operator new[](size_t size) throw(std::bad_alloc) { ^~~~~ ar: u' modifier ignored since D' is the default (see `U') make[3]: warning: -jN forced in submake: disabling jobserver mode. cd /home/vimal/catkin_ws/build/glog_catkin; catkin build --get-env glog_catkin | catkin env -si /usr/bin/make --jobserver-fds=6,7 -j; cd - ........................................................................................................................................................................................................... Finished <<< glog_catkin [ 38.2 seconds ]
Starting >>> eigen_checks
Finished <<< eigen_checks [ 2.5 seconds ]
Starting >>> minkindr
Finished <<< minkindr [ 2.2 seconds ]
Starting >>> minkindr_conversions
Starting >>> voxblox
Finished <<< minkindr_conversions [ 4.6 seconds ]


Warnings << voxblox:make /home/vimal/catkin_ws/logs/voxblox/build.make.000.log
/home/vimal/catkin_ws/build/voxblox/compiled_proto/voxblox/Layer.pb.cc: In member function ‘virtual google::protobuf::uint8* voxblox::LayerProto::InternalSerializeWithCachedSizesToArray(bool, google::protobuf::uint8*) const’: /home/vimal/catkin_ws/build/voxblox/compiled_proto/voxblox/Layer.pb.cc:298:10: warning: unused parameter ‘deterministic’ [-Wunused-parameter] bool deterministic, ::google::protobuf::uint8* target) const { ^~~~~~~~~~~~~ /home/vimal/catkin_ws/build/voxblox/compiled_proto/voxblox/Block.pb.cc: In member function ‘virtual google::protobuf::uint8* voxblox::BlockProto::InternalSerializeWithCachedSizesToArray(bool, google::protobuf::uint8*) const’: /home/vimal/catkin_ws/build/voxblox/compiled_proto/voxblox/Block.pb.cc:404:10: warning: unused parameter ‘deterministic’ [-Wunused-parameter] bool deterministic, ::google::protobuf::uint8* target) const { ^~~~~~~~~~~~~ cd /home/vimal/catkin_ws/build/voxblox; catkin build --get-env voxblox | catkin env -si /usr/bin/make --jobserver-fds=6,7 -j; cd - ........................................................................................................................................................................................................... Finished <<< voxblox [ 39.3 seconds ]
Starting >>> voxblox_rviz_plugin
Finished <<< voxblox_rviz_plugin [ 36.5 seconds ]
Starting >>> voxblox_ros


Errors << voxblox_ros:make /home/vimal/catkin_ws/logs/voxblox_ros/build.make.000.log
c++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-7/README.Bugs for instructions. make[2]: *** [CMakeFiles/voxblox_ros.dir/src/simulation_server.cc.o] Error 4 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [CMakeFiles/voxblox_ros.dir/all] Error 2 make: *** [all] Error 2 cd /home/vimal/catkin_ws/build/voxblox_ros; catkin build --get-env voxblox_ros | catkin env -si /usr/bin/make --jobserver-fds=6,7 -j; cd - ........................................................................................................................................................................................................... Failed << voxblox_ros:make [ Exited with code 2 ]
Failed <<< voxblox_ros [ 4 minutes and 9.7 seconds ]
[build] Summary: 11 of 12 packages succeeded.
[build] Ignored: 1 packages were skipped or are blacklisted.
[build] Warnings: 3 packages succeeded with warnings.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 7 minutes and 0.3 seconds total.
[build] Note: Workspace packages have changed, please re-source setup files to use them.

VimalRathod avatar Jun 03 '20 04:06 VimalRathod

c++: internal compiler error: Killed (program cc1plus)

That seems to indicate it to be a bug in the compiler itself and not the package it is trying to compile.

dave992 avatar Jun 18 '20 15:06 dave992

I have seen that error before. In my case, it has been caused by running out of ram. Catkin doesn't do anything smart to watch ram usage, but you can reduce the number of concurrent threads it's allowed to use with the -jN flag. For example, to limit it to one core pass -j1 to the call to catkin. Hope that helps!

kgreenek avatar Jun 18 '20 16:06 kgreenek