TBB version control

91 views
Skip to first unread message

Peter Milani

unread,
Jun 18, 2023, 10:50:14 PM6/18/23
to gtsam users

Hi all,
I'm wondering about version control for TBB. I have been compiling GTSAM without TBB support but another program required TBB (libtbb-dev) to be installed on my system. GTSAM automatically picked it up during the build process and threw a bunch of linker errors.

I'm wondering if there is a required version of TBB for GTSAM to compile correctly? This is for an older version of GTSAM that appears to be looking for TBB 4.4

I disabled the inclusion of TBB by commenting out the include for HandleTBB.cmake and that 'fixed' the problem. 

What is the correct way to install tbb on ubuntu 20.04?
cheers
Peter

Peter Milani

unread,
Jun 18, 2023, 10:55:54 PM6/18/23
to gtsam users
eg

 usr/include/tbb/task.h:1143: undefined reference to `tbb::internal::allocate_root_with_context_proxy::allocate(unsigned long) const'
/usr/bin/ld: CMakeFiles/SolverComparer.dir/SolverComparer.cpp.o: in function `main':
/usr/include/tbb/task_arena.h:271: undefined reference to `tbb::interface7::internal::task_arena_base::internal_execute(tbb::interface7::internal::delegate_base&) const'
/usr/bin/ld: CMakeFiles/SolverComparer.dir/SolverComparer.cpp.o: in function `tbb::interface7::task_arena::initialize()':
/usr/include/tbb/task_arena.h:317: undefined reference to `tbb::interface7::internal::task_arena_base::internal_initialize()'
/usr/bin/ld: CMakeFiles/SolverComparer.dir/SolverComparer.cpp.o: in function `tbb::interface7::task_arena::terminate()':
/usr/include/tbb/task_arena.h:361: undefined reference to `tbb::interface7::internal::task_arena_base::internal_terminate()'
/usr/bin/ld: CMakeFiles/SolverComparer.dir/SolverComparer.cpp.o: in function `tbb::interface7::task_arena::initialize()':
/usr/include/tbb/task_arena.h:317: undefined reference to `tbb::interface7::internal::task_arena_base::internal_initialize()'
/usr/bin/ld: CMakeFiles/SolverComparer.dir/SolverComparer.cpp.o:(.data.rel.ro._ZTIN3tbb10empty_taskE[_ZTIN3tbb10empty_taskE]+0x10): undefined reference to `typeinfo for tbb::task'
/usr/bin/ld: CMakeFiles/SolverComparer.dir/SolverComparer.cpp.o:(.data.rel.ro._ZTVN3tbb10empty_taskE[_ZTVN3tbb10empty_taskE]+0x28): undefined reference to `tbb::task::note_affinity(unsigned short)'
/usr/bin/ld: ../gtsam/libgtsamRelWithDebInfo.so.4.2.0: undefined reference to `tbb::internal::get_initial_auto_partitioner_divisor()'
/usr/bin/ld: ../gtsam/libgtsamRelWithDebInfo.so.4.2.0: undefined reference to `tbb::internal::allocate_continuation_proxy::allocate(unsigned long) const'
/usr/bin/ld: ../gtsam/libgtsamRelWithDebInfo.so.4.2.0: undefined reference to `tbb::internal::allocate_child_proxy::allocate(unsigned long) const'
/usr/bin/ld: ../gtsam/libgtsamRelWithDebInfo.so.4.2.0: undefined reference to `tbb::internal::allocate_additional_child_of_proxy::allocate(unsigned long) const'
/usr/bin/ld: ../gtsam/libgtsamRelWithDebInfo.so.4.2.0: undefined reference to `tbb::internal::allocate_root_with_context_proxy::free(tbb::task&) const'
collect2: error: ld returned 1 exit status

but many more
Reply all
Reply to author
Forward
0 new messages