GTSAM build error

Issue #461 closed
Rohit created an issue

While doing sudo make install, I am getting the following error regarding the gtsam_wrapper.
I made sure that I have the latest repository of GTSAM 4.0.

I did check about the requirements for Boost, gcc and cmake
**Ubuntu 16.04 / Boost - 1.58/ gcc -5.4/ cmake - 3.5.1

The error (during sudo make install):**

[ 2%] Built target CppUnitLite
[ 10%] Built target wrap_lib
[ 10%] Built target wrap
[ 27%] Built target metis
[ 62%] Built target gtsam
[ 62%] Generating ../wrap/gtsam/gtsam_wrapper.cpp
Segmentation fault (core dumped)
gtsam/CMakeFiles/gtsam_matlab_wrapper.dir/build.make:69: recipe for target 'wrap/gtsam/gtsam_wrapper.cpp' failed
make[2]: *** [wrap/gtsam/gtsam_wrapper.cpp] Error 139
CMakeFiles/Makefile2:1510: recipe for target 'gtsam/CMakeFiles/gtsam_matlab_wrapper.dir/all' failed
make[1]: *** [gtsam/CMakeFiles/gtsam_matlab_wrapper.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2

**Also while doing make check, I am encountering another error regarding the BOOST.

The error (during make check):**

[ 62%] Built target metis
[ 62%] Built target gtsam
[ 62%] Built target gtsam_unstable
[ 62%] Built target CppUnitLite
[ 62%] Linking CXX executable testFindSeparator
../../../gtsam/libgtsam.so.4.0.0: undefined reference to boost::archive::text_iarchive_impl<boost::archive::text_iarchive>::load_override(boost::archive::class_name_type&)' ../../../gtsam/libgtsam.so.4.0.0: undefined reference toboost::archive::archive_exception::archive_exception(boost::archive::archive_exception const&)'
collect2: error: ld returned 1 exit status
gtsam_unstable/partition/tests/CMakeFiles/testFindSeparator.dir/build.make:102: recipe for target 'gtsam_unstable/partition/tests/testFindSeparator' failed
make[3]: *** [gtsam_unstable/partition/tests/testFindSeparator] Error 1
CMakeFiles/Makefile2:20853: recipe for target 'gtsam_unstable/partition/tests/CMakeFiles/testFindSeparator.dir/all' failed
make[2]: *** [gtsam_unstable/partition/tests/CMakeFiles/testFindSeparator.dir/all] Error 2
CMakeFiles/Makefile2:684: recipe for target 'CMakeFiles/check.dir/rule' failed
make[1]: *** [CMakeFiles/check.dir/rule] Error 2
Makefile:223: recipe for target 'check' failed
make: *** [check] Error 2

Cmake Configure and Generate:

GTSAM_SOURCE_ROOT_DIR: [/home/rodhakate/gtsam]

GTSAM_BOOST_LIBRARIES: optimized;/usr/lib/libboost_serialization.so;/usr/lib/libboost_system.so;/usr/lib/libboost_filesystem.so;/usr/lib/libboost_thread.so;/usr/lib/libboost_date_time.so;/usr/lib/libboost_regex.so;debug;/usr/lib/libboost_serialization.so;/usr/lib/libboost_system.so;/usr/lib/libboost_filesystem.so;/usr/lib/libboost_thread.so;/usr/lib/libboost_date_time.so;/usr/lib/libboost_regex.so

Ignoring Boost restriction on optional lvalue assignment from rvalues

Could NOT find MKL (missing: MKL_INCLUDE_DIR MKL_LIBRARIES)

Building 3rdparty

checking for thread-local storage - found

Could NOT find GeographicLib (missing: GeographicLib_LIBRARY_DIRS GeographicLib_INCLUDE_DIRS)

Building base

Building geometry

Building inference

Building symbolic

Building discrete

Building linear

Building nonlinear

Building sam

Building sfm

Building slam

Building smart

Building navigation

GTSAM Version: 4.0.0

Install prefix: /usr/local

Building GTSAM - shared: ON

Building wrap module gtsam

Installing Matlab Toolbox to /home/rodhakate/gtsam

Building base_unstable

Building geometry_unstable

Building linear_unstable

Building discrete_unstable

Building dynamics_unstable

Building nonlinear_unstable

Building slam_unstable

Building partition_unstable

GTSAM_UNSTABLE Version: 4.0.0

Install prefix: /usr/local

Building wrap module gtsam_unstable

Installing Matlab Toolbox to /home/rodhakate/gtsam

Wrote /home/rodhakate/gtsam/build/GTSAMConfig.cmake

Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)

===============================================================

================ Configuration Options ======================

CMAKE_CXX_COMPILER_ID type : GNU

CMAKE_CXX_COMPILER_VERSION : 5.4.0

Build flags

Build Tests : Enabled

Build examples with 'make all' : Enabled

Build timing scripts with 'make all': Disabled

Build shared GTSAM libraries : Enabled

Put build type in library name : Enabled

Build libgtsam_unstable : Enabled

Build type : Release

C compilation flags : -std=c11 -Wall -O3 -DNDEBUG -O3 -DNDEBUG

C++ compilation flags : -std=c++11 -Wall -O3 -DNDEBUG -O3 -DNDEBUG

Use System Eigen : No

Use Intel TBB : Yes

Eigen will use MKL : MKL not found

Eigen will use MKL and OpenMP : OpenMP found but GTSAM_WITH_EIGEN_MKL is disabled

Default allocator : TBB

Build with ccache : No

Packaging flags

CPack Source Generator : TGZ

CPack Generator : TGZ

GTSAM flags

Quaternions as default Rot3 : Disabled

Runtime consistency checking : Disabled

Rot3 retract is full ExpMap : Disabled

Pose3 retract is full ExpMap : Disabled

Deprecated in GTSAM 4 allowed : Enabled

Point3 is typedef to Vector3 : Disabled

Metis-based Nested Dissection : Enabled

Use tangent-space preintegration: Enabled

MATLAB toolbox flags

Install matlab toolbox : Enabled

Build Wrap : Enabled

Python module flags

Build python module : Disabled

Cython toolbox flags

Install Cython toolbox : Disabled

Python version : Default

Build Wrap : Enabled

===============================================================

Configuring done

Generating done

Comments (2)

  1. Log in to comment