voxblox
voxblox copied to clipboard
catkin build error in ubuntu 18.04
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
^~~~~~~
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.
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.
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!