Skip to content

Failed << pointmatcher_ros:make [ Exited with code 2 ] #8

Description

@AndrewWu1998

Thank you very much for your work. I have this problem when running catkin build icp_localization, and it seems to remain me that there are some system files that were missing, not sure where to go...

Here's part of the output information, running on Ubuntu20.04, and file path in:
~/carto_ws/src/icp_localization
~/carto_ws/src/libnabo
~/carto_ws/src/libpointmatcher
~/carto_ws/src/pointmatcher-ros
Terminal Output:
`..........................................................................................
Finished <<< libpointmatcher [ 1 minute and 6.1 seconds ]
Starting >>> pointmatcher_ros


Warnings << pointmatcher_ros:cmake /home/sim2real/carto_ws/logs/pointmatcher_ros/build.cmake.000.log
CMake Warning at /opt/cmake/share/cmake-3.14/Modules/FindBoost.cmake:896 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/opt/cmake/share/cmake-3.14/Modules/FindBoost.cmake:1018 (_Boost_COMPONENT_DEPENDENCIES)
/opt/cmake/share/cmake-3.14/Modules/FindBoost.cmake:1694 (_Boost_MISSING_DEPENDENCIES)
/usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:134 (find_package)
/usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:314 (find_boost)
/usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:551 (find_external_library)
CMakeLists.txt:30 (find_package)

CMake Warning at /opt/cmake/share/cmake-3.14/Modules/FindBoost.cmake:896 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/opt/cmake/share/cmake-3.14/Modules/FindBoost.cmake:1018 (_Boost_COMPONENT_DEPENDENCIES)
/opt/cmake/share/cmake-3.14/Modules/FindBoost.cmake:1694 (_Boost_MISSING_DEPENDENCIES)
/usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:134 (find_package)
/usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:314 (find_boost)
/usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:551 (find_external_library)
CMakeLists.txt:30 (find_package)

CMake Warning at /opt/cmake/share/cmake-3.14/Modules/FindBoost.cmake:896 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/opt/cmake/share/cmake-3.14/Modules/FindBoost.cmake:1018 (_Boost_COMPONENT_DEPENDENCIES)
/opt/cmake/share/cmake-3.14/Modules/FindBoost.cmake:1694 (_Boost_MISSING_DEPENDENCIES)
/usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:134 (find_package)
/usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:314 (find_boost)
/usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:551 (find_external_library)
CMakeLists.txt:30 (find_package)

CMake Warning at /opt/cmake/share/cmake-3.14/Modules/FindBoost.cmake:896 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/opt/cmake/share/cmake-3.14/Modules/FindBoost.cmake:1018 (_Boost_COMPONENT_DEPENDENCIES)
/opt/cmake/share/cmake-3.14/Modules/FindBoost.cmake:1694 (_Boost_MISSING_DEPENDENCIES)
/usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:134 (find_package)
/usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:314 (find_boost)
/usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:551 (find_external_library)
CMakeLists.txt:30 (find_package)

CMake Warning at /opt/cmake/share/cmake-3.14/Modules/FindBoost.cmake:896 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/opt/cmake/share/cmake-3.14/Modules/FindBoost.cmake:1018 (_Boost_COMPONENT_DEPENDENCIES)
/opt/cmake/share/cmake-3.14/Modules/FindBoost.cmake:1694 (_Boost_MISSING_DEPENDENCIES)
/usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:134 (find_package)
/usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:314 (find_boost)
/usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:551 (find_external_library)
CMakeLists.txt:30 (find_package)

** WARNING ** io features related to pcap will be disabled
** WARNING ** io features related to png will be disabled
** WARNING ** io features related to libusb-1.0 will be disabled
cd /home/sim2real/carto_ws/build/pointmatcher_ros; catkin build --get-env pointmatcher_ros | catkin env -si /usr/local/bin/cmake /home/sim2real/carto_ws/src/pointmatcher-ros --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/sim2real/carto_ws/devel/.private/pointmatcher_ros -DCMAKE_INSTALL_PREFIX=/home/sim2real/carto_ws/install; cd -

..........................................................................................


Errors << pointmatcher_ros:make /home/sim2real/carto_ws/logs/pointmatcher_ros/build.make.000.log
In file included from /usr/include/c++/9/complex:44,
from /usr/include/eigen3/Eigen/Core:96,
from /usr/include/eigen3/Eigen/StdVector:14,
from /home/sim2real/carto_ws/src/libpointmatcher/pointmatcher/PointMatcher.h:47,
from /home/sim2real/carto_ws/src/pointmatcher-ros/include/pointmatcher_ros/serialization.h:5,
from /home/sim2real/carto_ws/src/pointmatcher-ros/src/serialization.cpp:3:
/usr/include/c++/9/cmath:45:15: fatal error: math.h: No such file or directory
45 | #include_next <math.h>
| ^~~~~~~~
In file included from /usr/include/c++/9/complex:44,
from /usr/include/eigen3/Eigen/Core:96,
from /usr/include/eigen3/Eigen/StdVector:14,
from /home/sim2real/carto_ws/src/libpointmatcher/pointmatcher/PointMatcher.h:47,
from /home/sim2real/carto_ws/src/pointmatcher-ros/include/pointmatcher_ros/deserialization.h:5,
from /home/sim2real/carto_ws/src/pointmatcher-ros/src/deserialization.cpp:3:
/usr/include/c++/9/cmath:45:15: fatal error: math.h: No such file or directory
45 | #include_next <math.h>
| ^~~~~~~~
compilation terminated.
compilation terminated.
In file included from /usr/include/c++/9/complex:44,
from /usr/include/eigen3/Eigen/Core:96,
from /usr/include/eigen3/Eigen/Dense:1,
from /usr/include/eigen3/Eigen/Eigen:1,
from /home/sim2real/carto_ws/src/pointmatcher-ros/include/pointmatcher_ros/transform.h:5,
from /home/sim2real/carto_ws/src/pointmatcher-ros/src/transform.cpp:2:
/usr/include/c++/9/cmath:45:15: fatal error: math.h: No such file or directory
45 | #include_next <math.h>
| ^~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/pointmatcher_ros.dir/build.make:76: CMakeFiles/pointmatcher_ros.dir/src/deserialization.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/pointmatcher_ros.dir/build.make:89: CMakeFiles/pointmatcher_ros.dir/src/serialization.cpp.o] Error 1
make[2]: *** [CMakeFiles/pointmatcher_ros.dir/build.make:102: CMakeFiles/pointmatcher_ros.dir/src/transform.cpp.o] Error 1
In file included from /usr/include/c++/9/ext/string_conversions.h:41,
from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /opt/ros/noetic/include/ros/platform.h:38,
from /opt/ros/noetic/include/ros/time.h:53,
from /opt/ros/noetic/include/ros/ros.h:38,
from /home/sim2real/carto_ws/src/pointmatcher-ros/include/pointmatcher_ros/helper_functions.h:4,
from /home/sim2real/carto_ws/src/pointmatcher-ros/src/helper_functions.cpp:2:
/usr/include/c++/9/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
75 | #include_next <stdlib.h>
| ^~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/pointmatcher_ros.dir/build.make:63: CMakeFiles/pointmatcher_ros.dir/src/helper_functions.cpp.o] Error 1
In file included from /usr/include/c++/9/complex:44,
from /usr/include/eigen3/Eigen/Core:96,
from /usr/include/eigen3/Eigen/StdVector:14,
from /home/sim2real/carto_ws/src/libpointmatcher/pointmatcher/PointMatcher.h:47,
from /home/sim2real/carto_ws/src/libpointmatcher/pointmatcher/IO.h:39,
from /home/sim2real/carto_ws/src/pointmatcher-ros/include/pointmatcher_ros/RosPointCloud2Deserializer.h:7,
from /home/sim2real/carto_ws/src/pointmatcher-ros/src/RosPointCloud2Deserializer.cpp:2:
/usr/include/c++/9/cmath:45:15: fatal error: math.h: No such file or directory
45 | #include_next <math.h>
| ^~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/pointmatcher_ros.dir/build.make:141: CMakeFiles/pointmatcher_ros.dir/src/RosPointCloud2Deserializer.cpp.o] Error 1
In file included from /usr/include/c++/9/ext/string_conversions.h:41,
from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /home/sim2real/carto_ws/src/pointmatcher-ros/include/pointmatcher_ros/PmTf.h:4,
from /home/sim2real/carto_ws/src/pointmatcher-ros/src/PmTf.cpp:2:
/usr/include/c++/9/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
75 | #include_next <stdlib.h>
| ^~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/pointmatcher_ros.dir/build.make:115: CMakeFiles/pointmatcher_ros.dir/src/PmTf.cpp.o] Error 1
In file included from /usr/include/c++/9/ext/string_conversions.h:41,
from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /opt/ros/noetic/include/ros/console.h:38,
from /home/sim2real/carto_ws/src/pointmatcher-ros/include/pointmatcher_ros/PointMatcherFilterInterface.h:4,
from /home/sim2real/carto_ws/src/pointmatcher-ros/src/PointMatcherFilterInterface.cpp:2:
/usr/include/c++/9/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
75 | #include_next <stdlib.h>
| ^~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/pointmatcher_ros.dir/build.make:128: CMakeFiles/pointmatcher_ros.dir/src/PointMatcherFilterInterface.cpp.o] Error 1
In file included from /usr/include/c++/9/ext/string_conversions.h:41,
from /usr/include/c++/9/bits/basic_string.h:6493,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/stdexcept:39,
from /usr/include/c++/9/array:39,
from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/bits/unique_ptr.h:37,
from /usr/include/c++/9/memory:80,
from /home/sim2real/carto_ws/src/pointmatcher-ros/include/pointmatcher_ros/StampedPointCloud.h:4,
from /home/sim2real/carto_ws/src/pointmatcher-ros/src/StampedPointCloud.cpp:2:
/usr/include/c++/9/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
75 | #include_next <stdlib.h>
| ^~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/pointmatcher_ros.dir/build.make:154: CMakeFiles/pointmatcher_ros.dir/src/StampedPointCloud.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1899: CMakeFiles/pointmatcher_ros.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
cd /home/sim2real/carto_ws/build/pointmatcher_ros; catkin build --get-env pointmatcher_ros | catkin env -si /usr/bin/make --jobserver-auth=3,4; cd -

..........................................................................................
Failed << pointmatcher_ros:make [ Exited with code 2 ]
Failed <<< pointmatcher_ros [ 2.5 seconds ]
Abandoned <<< icp_localization [ Unrelated job failed ]
[build] Summary: 3 of 5 packages succeeded.
[build] Ignored: 4 packages were skipped or are skiplisted.
[build] Warnings: 2 packages succeeded with warnings.
[build] Abandoned: 1 packages were abandoned.
[build] Failed: 1 packages failed.
[build] Runtime: 1 minute and 17.4 seconds total.
[build] Note: Workspace packages have changed, please re-source setup files to use them.`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions