Robotics StackExchange | Archived questions

cartographer_ros compiling error

Hi,

I'm trying to install cartographer in ROS melodic on my raspberry pi 4 by following this guide https://google-cartographer-ros.readthedocs.io/en/latest/compilation.html

catkin_make_isolated --install --use-ninja stop prematurely when it reaches cartographer_ros package

The following is a clearer view of the error:

error output

CMakeLists.txt from /usr/src/googletest/googlemock/

CMakeList.txt from /usr/src/googletest/googletest/

This issue is similar to this https://github.com/googlecartographer/cartographer_ros/issues/845

Any help would be appreciated. Thank you

==> Processing catkin package: 'cartographerros' ==> Creating build directory: 'buildisolated/cartographerros' ==> Building with env: '/home/pi/roscatkinws/installisolated/env.sh' ==> cmake /home/pi/roscatkinws/src/cartographerros/cartographerros -DCATKINDEVELPREFIX=/home/pi/roscatkinws/develisolated/cartographerros -DCMAKEINSTALLPREFIX=/home/pi/roscatkinws/installisolated -G Ninja in '/home/pi/roscatkinws/buildisolated/cartographerros' -- The C compiler identification is GNU 8.3.0 -- The CXX compiler identification is GNU 8.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found installed version of Eigen: /usr/lib/cmake/eigen3 -- Found required Ceres dependency: Eigen version 3.3.7 in /usr/include/eigen3 -- Found required Ceres dependency: glog -- Found installed version of gflags: /usr/lib/arm-linux-gnueabihf/cmake/gflags -- Detected gflags version: 2.2.2 -- Found required Ceres dependency: gflags -- Found Ceres version: 1.13.0 installed in: /home/pi/roscatkinws/installisolated with components: [LAPACK, SuiteSparse, SparseLinearAlgebraLibrary, CXSparse, SchurSpecializations, OpenMP] -- Build type: Release Files /home/pi/roscatkinws/buildisolated/cartographerros/AllFiles.cmake and - differ CMake Warning at /usr/src/googletest/googlemock/CMakeLists.txt:40 (project): VERSION keyword not followed by a value or was followed by a value that expanded to nothing.

CMake Warning at /usr/src/googletest/googletest/CMakeLists.txt:47 (project): VERSION keyword not followed by a value or was followed by a value that expanded to nothing.

-- Found PythonInterp: /usr/bin/python (found version "2.7.16") -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthreadcreate -- Looking for pthreadcreate - not found -- Check if compiler accepts -pthread -- Check if compiler accepts -pthread - yes -- Found Threads: TRUE
-- Found GMock: gmockmain;-pthread
-- Using CATKIN
DEVELPREFIX: /home/pi/roscatkinws/develisolated/cartographerros -- Using CMAKEPREFIXPATH: /home/pi/roscatkinws/installisolated;/home/pi/catkinws/devel;/opt/ros/melodic -- This workspace overlays: /home/pi/roscatkinws/installisolated;/home/pi/catkinws/devel;/opt/ros/melodic -- Found PythonInterp: /usr/bin/python (found suitable version "2.7.16", minimum required is "2") -- Using PYTHONEXECUTABLE: /usr/bin/python -- Using Debian Python package layout -- Using empy: /usr/bin/empy -- Using CATKINENABLETESTING: ON -- Call enabletesting() -- Using CATKINTESTRESULTSDIR: /home/pi/roscatkinws/buildisolated/cartographerros/testresults -- Found gtest: gtests will be built -- Using Python nosetests: /usr/bin/nosetests-2.7 -- catkin 0.7.19 -- BUILDSHAREDLIBS is off -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29") -- Found Lua: /usr/lib/arm-linux-gnueabihf/liblua5.2.so;/usr/lib/arm-linux-gnueabihf/libm.so (found version "5.2.4") -- Checking for module 'eigen3' -- Found eigen3, version 3.3.7 -- Found Eigen: /usr/include/eigen3
-- Eigen found (include: /usr/include/eigen3, version: 3.3.7) -- Boost version: 1.67.0 -- Found the following Boost libraries: -- system -- filesystem -- thread -- date
time -- iostreams -- serialization -- chrono -- atomic -- regex -- looking for PCLCOMMON -- Found PCLCOMMON: /usr/lib/arm-linux-gnueabihf/libpclcommon.so
-- Found PCL: pcl
common;/usr/lib/arm-linux-gnueabihf/libboostsystem.so;/usr/lib/arm-linux-gnueabihf/libboostfilesystem.so;/usr/lib/arm-linux-gnueabihf/libboostthread.so;-pthread;/usr/lib/arm-linux-gnueabihf/libboostdatetime.so;/usr/lib/arm-linux-gnueabihf/libboostiostreams.so;/usr/lib/arm-linux-gnueabihf/libboostserialization.so;/usr/lib/arm-linux-gnueabihf/libboostchrono.so;/usr/lib/arm-linux-gnueabihf/libboostatomic.so;/usr/lib/arm-linux-gnueabihf/libboostregex.so
-- Boost version: 1.67.0 -- Found the following Boost libraries: -- system -- iostreams -- regex -- Configuring done -- Generating done -- Build files have been written to: /home/pi/roscatkinws/buildisolated/cartographerros ==> ninja -j4 -l4 in '/home/pi/roscatkinws/buildisolated/cartographerros' [4/41] Building CXX object CMakeFiles/...dir/cartographerros/playablebag.cc.o In file included from /usr/include/c++/8/vector:69, from /usr/include/c++/8/queue:61, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/playablebag.h:20, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/playablebag.cc:17: /usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<Tp, _Alloc>::Mreallocinsert(std::vector<Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {cartographerros::PlayableBag}; Tp = cartographerros::PlayableBag; Alloc = std::allocator<cartographerros::PlayableBag>]’: /usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector::iterator’ {aka ‘gnu_cxx::normaliterator<cartographerros::PlayableBag, std::vector >’} changed in GCC 7.1 vector<Tp, _Alloc>:: ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/8/bits/vector.tcc: In member function ‘void cartographerros::PlayableBagMultiplexer::AddPlayableBag(cartographerros::PlayableBag)’: /usr/include/c++/8/bits/vector.tcc:109:4: note: parameter passing for argument of type ‘gnucxx::_normaliterator<cartographer_ros::PlayableBag, std::vector >’ changed in GCC 7.1 Mreallocinsert(end(), std::forward<Args>(args)...); ^~~~~~~~~~~~~~~~~ [6/41] Building CXX object CMakeFiles/...ir/cartographerros/sensorbridge.cc.o In file included from /usr/include/c++/8/map:60, from /home/pi/roscatkinws/installisolated/include/cartographer/common/luaparameterdictionary.h:20, from /home/pi/roscatkinws/installisolated/include/cartographer/mapping/trajectorybuilderinterface.h:24, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/sensorbridge.h:23, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/sensorbridge.cc:17: /usr/include/c++/8/bits/stltree.h: In member function ‘std::Rbtree<Key, Val, _KeyOfValue, _Compare, _Alloc>::iterator std::Rbtree<Key, Val, _KeyOfValue, _Compare, _Alloc>::Memplacehintunique(std::Rbtree<Key, Val, _KeyOfValue, _Compare, _Alloc>::constiterator, Args&& ...) [with _Args = {const std::piecewiseconstruct_t&, std::tuple<const std::cxx11::basicstring<char, std::chartraits, std::allocator >&>, std::tuple<>}; Key = std::cxx11::basicstring; Val = std::pair<const std::cxx11::basicstring, std::chrono::timepointcartographer::common::UniversalTimeScaleClock >; _KeyOfValue = std::Select1st, std::chrono::timepointcartographer::common::UniversalTimeScaleClock > >; _Compare = std::less<std::cxx11::basicstring >; Alloc = std::allocator<std::pair<const std::cxx11::basicstring, std::chrono::timepointcartographer::common::UniversalTimeScaleClock > >]’: /usr/include/c++/8/bits/stltree.h:2411:7: note: parameter passing for argument of type ‘std::Rbtreestd::__cxx11::basic_string<char, std::pair, std::chrono::timepointcartographer::common::UniversalTimeScaleClock >, std::Select1st, std::chrono::timepointcartographer::common::UniversalTimeScaleClock > >, std::less<std::cxx11::basicstring >, std::allocator, std::chrono::timepointcartographer::common::UniversalTimeScaleClock > > >::constiterator’ {aka ‘std::Rbtreeconstiterator, std::chrono::timepointcartographer::common::UniversalTimeScaleClock > >’} changed in GCC 7.1 _Rbtree<Key, _Val, _KeyOfValue, _Compare, _Alloc>:: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/8/map:61, from /home/pi/roscatkinws/installisolated/include/cartographer/common/luaparameterdictionary.h:20, from /home/pi/roscatkinws/installisolated/include/cartographer/mapping/trajectorybuilderinterface.h:24, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/sensorbridge.h:23, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/sensorbridge.cc:17: /usr/include/c++/8/bits/stlmap.h: In member function ‘void cartographerros::SensorBridge::HandleLaserScan(const string&, cartographer::common::Time, const string&, const cartographer::sensor::PointCloudWithIntensities&)’: /usr/include/c++/8/bits/stlmap.h:499:8: note: parameter passing for argument of type ‘std::Rbtreestd::__cxx11::basic_string<char, std::pair, std::chrono::timepointcartographer::common::UniversalTimeScaleClock >, std::Select1st, std::chrono::timepointcartographer::common::UniversalTimeScaleClock > >, std::less<std::cxx11::basicstring >, std::allocator, std::chrono::timepointcartographer::common::UniversalTimeScaleClock > > >::constiterator’ {aka ‘std::Rbtreeconstiterator, std::chrono::timepointcartographer::common::UniversalTimeScaleClock > >’} changed in GCC 7.1 _i = Mt.Memplacehintunique(i, std::piecewiseconstruct, [9/41] Building CXX object CMakeFiles/...herros.dir/cartographerros/node.cc.o FAILED: CMakeFiles/cartographerros.dir/cartographerros/node.cc.o /usr/bin/c++ -DGFLAGSISADLL=0 -DROSCONSOLEBACKENDLOG4CXX -DROSPACKAGENAME=\"cartographerros\" -DURDFDOMHEADERSHASSHAREDPTRDEFS -I. -I/home/pi/roscatkinws/src/cartographerros/cartographerros -I/usr/src/googletest/googlemock/gtest/include -isystem /usr/include/lua5.2 -isystem /usr/include/pcl-1.9 -isystem /usr/include/eigen3 -isystem /home/pi/roscatkinws/installisolated/include -isystem /home/pi/roscatkinws/installisolated/share/orocoskdl/cmake/../../../include -isystem /home/pi/roscatkinws/installisolated/share/xmlrpcpp/cmake/../../../include/xmlrpcpp -isystem /usr/include/vtk-7.1 -isystem /usr/include/freetype2 -isystem /usr/include/arm-linux-gnueabihf -isystem /usr/lib/arm-linux-gnueabihf/openmpi/include/openmpi -isystem /usr/lib/arm-linux-gnueabihf/openmpi/include -isystem /usr/include/python3.7m -isystem /usr/include/hdf5/openmpi -isystem /usr/include/jsoncpp -isystem /usr/include/libxml2 -isystem /usr/include/tcl -isystem /usr/include/cairo -isystem /usr/include/glib-2.0 -isystem /usr/lib/arm-linux-gnueabihf/glib-2.0/include -isystem /usr/include/pixman-1 -isystem /usr/include/uuid -isystem /usr/include/libpng16 -isystem /usr/local/include -DFILEOFFSETBITS=64 -O3 -DNDEBUG -pthread -std=c++11 -fPIC -Wall -Wpedantic -Werror=format-security -Werror=missing-braces -Werror=reorder -Werror=return-type -Werror=switch -Werror=uninitialized -O3 -DNDEBUG -MD -MT CMakeFiles/cartographerros.dir/cartographerros/node.cc.o -MF CMakeFiles/cartographerros.dir/cartographerros/node.cc.o.d -o CMakeFiles/cartographerros.dir/cartographerros/node.cc.o -c /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/node.cc In file included from /home/pi/roscatkinws/installisolated/include/tf2eigen/tf2eigen.h:32, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/node.cc:43: /home/pi/roscatkinws/installisolated/include/tf2/transformfunctions.h:71:20: error: redefinition of ‘template const ros::Time& tf2::getTimestamp(const tf2::Stamped&)’ const ros::Time& getTimestamp(const tf2::Stamped

& t) ^~~~~~~~~~~~ In file included from /home/pi/roscatkinws/installisolated/include/tf2ros/bufferinterface.h:40, from /home/pi/roscatkinws/installisolated/include/tf2ros/buffer.h:35, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/tfbridge.h:23, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/sensorbridge.h:28, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/mapbuilderbridge.h:30, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/node.h:31, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/node.cc:17: /home/pi/roscatkinws/installisolated/include/tf2/convert.h:75:20: note: ‘template const ros::Time& tf2::getTimestamp(const tf2::Stamped&)’ previously declared here const ros::Time& getTimestamp(const tf2::Stamped

& t) ^~~~~~~~~~~~ In file included from /home/pi/roscatkinws/installisolated/include/tf2eigen/tf2eigen.h:32, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/node.cc:43: /home/pi/roscatkinws/installisolated/include/tf2/transformfunctions.h:78:22: error: redefinition of ‘template const string& tf2::getFrameId(const tf2::Stamped&)’ const std::string& getFrameId(const tf2::Stamped

& t) ^~~~~~~~~~ In file included from /home/pi/roscatkinws/installisolated/include/tf2ros/bufferinterface.h:40, from /home/pi/roscatkinws/installisolated/include/tf2ros/buffer.h:35, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/tfbridge.h:23, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/sensorbridge.h:28, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/mapbuilderbridge.h:30, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/node.h:31, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/node.cc:17: /home/pi/roscatkinws/installisolated/include/tf2/convert.h:82:22: note: ‘template const string& tf2::getFrameId(const tf2::Stamped&)’ previously declared here const std::string& getFrameId(const tf2::Stamped

& t) ^~~~~~~~~~ [10/41] Building CXX object CMakeFiles...dir/cartographerros/offlinenode.cc.o In file included from /usr/include/c++/8/vector:69, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/offlinenode.h:23, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/offlinenode.cc:17: /usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<Tp, _Alloc>::Mreallocinsert(std::vector<Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const cartographerros::TrajectoryOptions&}; Tp = cartographerros::TrajectoryOptions; Alloc = std::allocator<cartographerros::TrajectoryOptions>]’: /usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector::iterator’ {aka ‘gnucxx::normaliterator >’} changed in GCC 7.1 vector<Tp, _Alloc>:: ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/8/vector:64, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/offlinenode.h:23, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/offlinenode.cc:17: /usr/include/c++/8/bits/stlvector.h: In function ‘void cartographerros::RunOfflineNode(const MapBuilderFactory&)’: /usr/include/c++/8/bits/stlvector.h:1085:4: note: parameter passing for argument of type ‘gnu_cxx::normaliterator<cartographerros::TrajectoryOptions, std::vector >’ changed in GCC 7.1 Mreallocinsert(end(), _x); ^~~~~~~~~~~~~~~~~ [11/41] Building CXX object CMakeFiles...rros.dir/cartographerros/submap.cc.o In file included from /usr/include/c++/8/vector:69, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/submap.h:22, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/submap.cc:17: /usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<Tp, _Alloc>::Mreallocinsert(std::vector<Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {cartographer::io::SubmapTexture}; _Tp = cartographer::io::SubmapTexture; _Alloc = std::allocatorcartographer::io::SubmapTexture]’: /usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vectorcartographer::io::SubmapTexture::iterator’ {aka ‘gnucxx::_normaliterator<cartographer::io::SubmapTexture, std::vectorcartographer::io::SubmapTexture >’} changed in GCC 7.1 vector<Tp, _Alloc>:: ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/8/bits/vector.tcc: In function ‘std::uniqueptrcartographer::io::SubmapTextures cartographerros::FetchSubmapTextures(const cartographer::mapping::SubmapId&, ros::ServiceClient*)’: /usr/include/c++/8/bits/vector.tcc:109:4: note: parameter passing for argument of type ‘gnucxx::normaliterator >’ changed in GCC 7.1 _Mreallocinsert(end(), std::forward<Args>(args)...); ^~~~~~~~~~~~~~~~~ [12/41] Building CXX object CMakeFiles...rtographerros/mapbuilderbridge.cc.o In file included from /usr/include/c++/8/vector:69, from /home/pi/roscatkinws/installisolated/include/cartographer/mapping/mapbuilderinterface.h:22, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/mapbuilderbridge.h:26, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/mapbuilderbridge.cc:17: /usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<Tp, _Alloc>::Mreallocinsert(std::vector<Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const visualizationmsgs::Markerstd::allocator<void >&}; _Tp = visualizationmsgs::Markerstd::allocator<void >; _Alloc = std::allocator<visualizationmsgs::Markerstd::allocator<void > >]’: /usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<visualizationmsgs::Markerstd::allocator<void > >::iterator’ {aka ‘gnucxx::normaliterator<visualizationmsgs::Markerstd::allocator<void >*, std::vector<visualizationmsgs::Markerstd::allocator<void > > >’} changed in GCC 7.1 vector<Tp, Alloc>:: ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/8/vector:64, from /home/pi/roscatkinws/installisolated/include/cartographer/mapping/mapbuilderinterface.h:22, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/mapbuilderbridge.h:26, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/mapbuilderbridge.cc:17: /usr/include/c++/8/bits/stlvector.h: In member function ‘void std::vector<Tp, Alloc>::pushback(const valuetype&) [with _Tp = visualizationmsgs::Markerstd::allocator<void >; _Alloc = std::allocator<visualizationmsgs::Markerstd::allocator<void > >]’: /usr/include/c++/8/bits/stlvector.h:1085:4: note: parameter passing for argument of type ‘gnucxx::normaliterator >, std::vector > > >’ changed in GCC 7.1 Mreallocinsert(end(), _x); ^~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/8/vector:69, from /home/pi/roscatkinws/installisolated/include/cartographer/mapping/mapbuilderinterface.h:22, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/mapbuilderbridge.h:26, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/mapbuilderbridge.cc:17: /usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<Tp, Alloc>::Mreallocinsert(std::vector<Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {}; _Tp = cartographerrosmsgs::SubmapTexturestd::allocator<void >; Alloc = std::allocator<cartographerrosmsgs::SubmapTexturestd::allocator<void > >]’: /usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector >, std::allocator > > >::iterator’ {aka ‘gnu_cxx::normaliterator<cartographerrosmsgs::SubmapTexturestd::allocator<void >, std::vector >, std::allocator > > > >’} changed in GCC 7.1 vector<Tp, _Alloc>:: ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<Tp, Alloc>::Mreallocinsert(std::vector<Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const cartographerrosmsgs::SubmapEntrystd::allocator<void >&}; Tp = cartographerrosmsgs::SubmapEntrystd::allocator<void >; Alloc = std::allocator<cartographerrosmsgs::SubmapEntrystd::allocator<void > >]’: /usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector >, std::allocator > > >::iterator’ {aka ‘gnu_cxx::normaliterator<cartographerrosmsgs::SubmapEntrystd::allocator<void >, std::vector >, std::allocator > > > >’} changed in GCC 7.1 /usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<Tp, _Alloc>::Mreallocinsert(std::vector<Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const geometrymsgs::Pointstd::allocator<void >&}; _Tp = geometrymsgs::Pointstd::allocator<void >; _Alloc = std::allocator<geometrymsgs::Pointstd::allocator<void > >]’: /usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<geometrymsgs::Pointstd::allocator<void >, std::allocator<geometrymsgs::Pointstd::allocator<void > > >::iterator’ {aka ‘gnucxx::_normaliterator >, std::vector >, std::allocator > > > >’} changed in GCC 7.1 In file included from /usr/include/c++/8/vector:64, from /home/pi/roscatkinws/installisolated/include/cartographer/mapping/mapbuilderinterface.h:22, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/mapbuilderbridge.h:26, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/mapbuilderbridge.cc:17: /usr/include/c++/8/bits/stlvector.h: In member function ‘void std::vector<Tp, _Alloc>::pushback(const valuetype&) [with _Tp = geometrymsgs::Pointstd::allocator<void >; _Alloc = std::allocator<geometrymsgs::Pointstd::allocator<void > >]’: /usr/include/c++/8/bits/stlvector.h:1085:4: note: parameter passing for argument of type ‘gnu_cxx::normaliterator<geometrymsgs::Pointstd::allocator<void >*, std::vector<geometrymsgs::Pointstd::allocator<void >, std::allocator<geometrymsgs::Pointstd::allocator<void > > > >’ changed in GCC 7.1 _Mreallocinsert(end(), _x); ^~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/8/vector:69, from /home/pi/roscatkinws/installisolated/include/cartographer/mapping/mapbuilderinterface.h:22, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/mapbuilderbridge.h:26, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/mapbuilderbridge.cc:17: /usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<Tp, Alloc>::Mreallocinsert(std::vector<Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {visualizationmsgs::Markerstd::allocator<void >}; _Tp = visualizationmsgs::Markerstd::allocator<void >; _Alloc = std::allocator<visualizationmsgs::Markerstd::allocator<void > >]’: /usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<visualizationmsgs::Markerstd::allocator<void > >::iterator’ {aka ‘gnucxx::normaliterator<visualizationmsgs::Markerstd::allocator<void >*, std::vector<visualizationmsgs::Markerstd::allocator<void > > >’} changed in GCC 7.1 vector<Tp, Alloc>:: ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<Tp, Alloc>::Mreallocinsert(std::vector<Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {geometrymsgs::Pointstd::allocator<void >}; _Tp = geometrymsgs::Pointstd::allocator<void >; _Alloc = std::allocator<geometrymsgs::Pointstd::allocator<void > >]’: /usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<geometrymsgs::Pointstd::allocator<void >, std::allocator<geometrymsgs::Point_std::allocator<void > > >::iterator’ {aka ‘gnucxx::normaliterator >, std::vector >, std::allocator > > > >’} changed in GCC 7.1 /usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<Tp, _Alloc>::emplaceback(Args&& ...) [with _Args = {geometrymsgs::Pointstd::allocator<void >}; _Tp = geometrymsgs::Pointstd::allocator<void >; _Alloc = std::allocator<geometrymsgs::Pointstd::allocator<void > >]’: /usr/include/c++/8/bits/vector.tcc:109:4: note: parameter passing for argument of type ‘gnucxx::_normaliterator >, std::vector >, std::allocator > > > >’ changed in GCC 7.1 Mreallocinsert(end(), std::forward<Args>(args)...); ^~~~~~~~~~~~~~~~~ /usr/include/c++/8/bits/vector.tcc: In member function ‘visualizationmsgs::MarkerArray cartographerros::MapBuilderBridge::GetLandmarkPosesList()’: /usr/include/c++/8/bits/vector.tcc:109:4: note: parameter passing for argument of type ‘gnucxx::normaliterator >, std::vector > > >’ changed in GCC 7.1 Mreallocinsert(end(), std::forward<Args>(args)...); ^~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/8/vector:64, from /home/pi/roscatkinws/installisolated/include/cartographer/mapping/mapbuilderinterface.h:22, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/mapbuilderbridge.h:26, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/mapbuilderbridge.cc:17: /usr/include/c++/8/bits/stlvector.h: In member function ‘visualizationmsgs::MarkerArray cartographerros::MapBuilderBridge::GetTrajectoryNodeList()’: /usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for argument of type ‘gnucxx::normaliterator >, std::vector >, std::allocator > > > >’ changed in GCC 7.1 Mreallocinsert(end(), _x); ^~~~~~~~~~~~~~~~~ /usr/include/c++/8/bits/stlvector.h: In member function ‘cartographerrosmsgs::SubmapList cartographerros::MapBuilderBridge::GetSubmapList()’: /usr/include/c++/8/bits/stlvector.h:1085:4: note: parameter passing for argument of type ‘gnucxx::normaliterator<cartographerrosmsgs::SubmapEntrystd::allocator<void >*, std::vector >, std::allocator > > > >’ changed in GCC 7.1 Mreallocinsert(end(), _x); ^~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/8/vector:69, from /home/pi/roscatkinws/installisolated/include/cartographer/mapping/mapbuilderinterface.h:22, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/mapbuilderbridge.h:26, from /home/pi/roscatkinws/src/cartographerros/cartographerros/cartographerros/mapbuilderbridge.cc:17: /usr/include/c++/8/bits/vector.tcc: In member function ‘void cartographerros::MapBuilderBridge::HandleSubmapQuery(cartographerrosmsgs::SubmapQuery::Request&, cartographerrosmsgs::SubmapQuery::Response&)’: /usr/include/c++/8/bits/vector.tcc:109:4: note: parameter passing for argument of type ‘gnucxx::normaliterator >*, std::vector >, std::allocator > > > >’ changed in GCC 7.1 Mreallocinsert(end(), std::forward<Args>(_args)...); ^~~~~~~~~~~~~~~~~ ninja: build stopped: subcommand failed. <== Failed to process package 'cartographerros': Command '['/home/pi/roscatkinws/install_isolated/env.sh', 'ninja', '-j4', '-l4']' returned non-zero exit status 1

Reproduce this error by running: ==> cd /home/pi/roscatkinws/buildisolated/cartographerros && /home/pi/roscatkinws/install_isolated/env.sh ninja -j4 -l4

Command failed, exiting.

Asked by qazqwert on 2019-12-12 10:52:58 UTC

Comments

Answers