Issues installing TUnfold: Make file not working

ROOT Version: 6.32.02
Platform: Linux mint
Compiler: Not Provided


Dear experts,

I hope this message finds you well. I am new using ROOT and TUnfold, and I am having some issues installing TUnfold after having installed ROOT. The make bin command fails every time with a message of missing classes in ROOT. I tried to modify the make file myself but nothing has worked so far, below is attached the error message I get after running “make bin”.
{
make bin
c++ -isystem /home/doug/Desktop/root/include -I/home/doug/Desktop/ROOT/root/htmldoc -I. -O2 -g -Wall -Wshadow -W -Woverloaded-virtual -fPIC -pthread -std=c++17 -m64 -I/home/doug/Desktop/root/include testunfoldmain1.C -o testunfoldmain1 testUnfold1.o -m64 -L. -Wl,-rpath . -lunfold
-L/home/doug/Desktop/root/lib -lXMLParser -L/home/doug/Desktop/root/lib -lCore -lImt -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lROOTVecOps -lTree -lTreePlayer -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -lROOTDataFrame -Wl,-rpath,/home/doug/Desktop/root/lib -pthread -lm -ldl -rdynamic -ltbb
/usr/bin/ld: warning: libtbb.so.2, needed by /home/doug/Desktop/root/lib/libImt.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: ./libunfold.so: undefined reference to TUnfoldBinningV17::Class()' /usr/bin/ld: /home/doug/Desktop/root/lib/libImt.so: undefined reference to tbb::task_group_context::cancel_group_execution()’
/usr/bin/ld: /home/doug/Desktop/root/lib/libImt.so: undefined reference to tbb::interface5::internal::task_base::destroy(tbb::task&)' /usr/bin/ld: ./libunfold.so: undefined reference to TUnfoldDensityV17::Streamer(TBuffer&)’
/usr/bin/ld: ./libunfold.so: undefined reference to TUnfoldIterativeEMV17::Streamer(TBuffer&)' /usr/bin/ld: /home/doug/Desktop/root/lib/libImt.so: undefined reference to tbb::task::note_affinity(unsigned short)’
/usr/bin/ld: /home/doug/Desktop/root/lib/libImt.so: undefined reference to tbb::task_group_context::is_group_execution_cancelled() const' /usr/bin/ld: /home/doug/Desktop/root/lib/libImt.so: undefined reference to tbb::internal::allocate_continuation_proxy::allocate(unsigned long) const’
/usr/bin/ld: /home/doug/Desktop/root/lib/libImt.so: undefined reference to tbb::internal::throw_exception_v4(tbb::internal::exception_id)' /usr/bin/ld: /home/doug/Desktop/root/lib/libImt.so: undefined reference to typeinfo for tbb::task’
/usr/bin/ld: ./libunfold.so: undefined reference to TUnfoldV17::Streamer(TBuffer&)' /usr/bin/ld: /home/doug/Desktop/root/lib/libImt.so: undefined reference to tbb::task_group_context::reset()’
/usr/bin/ld: ./libunfold.so: undefined reference to TUnfoldSysV17::Streamer(TBuffer&)' /usr/bin/ld: /home/doug/Desktop/root/lib/libImt.so: undefined reference to tbb::interface7::internal::task_arena_base::internal_terminate()’
/usr/bin/ld: ./libunfold.so: undefined reference to ROOT::GenerateInitInstance(TUnfoldBinningV17 const*)' /usr/bin/ld: ./libunfold.so: undefined reference to TUnfoldBinningV17::Streamer(TBuffer&)’
/usr/bin/ld: /home/doug/Desktop/root/lib/libImt.so: undefined reference to tbb::internal::allocate_root_with_context_proxy::free(tbb::task&) const' /usr/bin/ld: ./libunfold.so: undefined reference to ROOT::GenerateInitInstance(TUnfoldV17 const*)’
/usr/bin/ld: /home/doug/Desktop/root/lib/libImt.so: undefined reference to tbb::task_group_context::init()' /usr/bin/ld: /home/doug/Desktop/root/lib/libImt.so: undefined reference to tbb::interface9::global_control::active_value(int)’
/usr/bin/ld: /home/doug/Desktop/root/lib/libImt.so: undefined reference to tbb::internal::allocate_additional_child_of_proxy::allocate(unsigned long) const' /usr/bin/ld: /home/doug/Desktop/root/lib/libImt.so: undefined reference to tbb::interface7::internal::isolate_within_arena(tbb::interface7::internal::delegate_base&, long)’
/usr/bin/ld: ./libunfold.so: undefined reference to TUnfoldIterativeEMV17::Class()' /usr/bin/ld: ./libunfold.so: undefined reference to TUnfoldSysV17::Class()’
/usr/bin/ld: /home/doug/Desktop/root/lib/libImt.so: undefined reference to tbb::interface7::internal::task_arena_base::internal_initialize()' /usr/bin/ld: /home/doug/Desktop/root/lib/libImt.so: undefined reference to tbb::internal::get_initial_auto_partitioner_divisor()’
/usr/bin/ld: ./libunfold.so: undefined reference to ROOT::GenerateInitInstance(TUnfoldIterativeEMV17 const*)' /usr/bin/ld: /home/doug/Desktop/root/lib/libImt.so: undefined reference to tbb::task_group_context::~task_group_context()’
/usr/bin/ld: /home/doug/Desktop/root/lib/libImt.so: undefined reference to tbb::internal::allocate_child_proxy::allocate(unsigned long) const' /usr/bin/ld: ./libunfold.so: undefined reference to vtable for TUnfoldBinningXMLV17’
/usr/bin/ld: /home/doug/Desktop/root/lib/libImt.so: undefined reference to tbb::interface7::internal::task_arena_base::internal_execute(tbb::interface7::internal::delegate_base&) const' /usr/bin/ld: ./libunfold.so: undefined reference to TUnfoldV17::Class()’
/usr/bin/ld: ./libunfold.so: undefined reference to TUnfoldDensityV17::Class()' /usr/bin/ld: ./libunfold.so: undefined reference to ROOT::GenerateInitInstance(TUnfoldSysV17 const*)’
/usr/bin/ld: ./libunfold.so: undefined reference to ROOT::GenerateInitInstance(TUnfoldDensityV17 const*)' /usr/bin/ld: /home/doug/Desktop/root/lib/libImt.so: undefined reference to tbb::internal::allocate_root_with_context_proxy::allocate(unsigned long) const’
/usr/bin/ld: ./libunfold.so: undefined reference to ROOT::GenerateInitInstance(TUnfoldBinningXMLV17 const*)' /usr/bin/ld: /home/doug/Desktop/root/lib/libImt.so: undefined reference to tbb::internal::allocate_additional_child_of_proxy::free(tbb::task&) const’
/usr/bin/ld: /home/doug/Desktop/root/lib/libImt.so: undefined reference to `tbb::interface7::internal::task_arena_base::internal_max_concurrency(tbb::interface7::task_arena const*)’
collect2: error: ld returned 1 exit status
make: *** [Makefile:245: testunfoldmain1] Error 1
}

Any help would be greatly appreciated. Thank you for your time and have a nice day.

Best,
Fabian

Hi Fabian,

Welcome to the Forum and thank you for the detailed question.

The issue seems to be due to missing libraries on your system. Could you try installing libtbb-dev on your system and see if that resolves the issue?

Cheers,
Dev

Hello, I apologize for getting back to you this late.

I tried that but the mentioned library was already installed. TUnfold mentions in their manual that the make file was designed for some machines, could there be some incompatibility?

Best,
Fabian

I found a similar post: Cmake can't find TUnfold that might answer your question. If not, maybe @moneta can help.

Thanks,
Dev

Makefile.TUnfold_V17.9.txt (8.6 KB)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.