[SCIP] Compiling scipoptsuite-7.0.3 in Ubuntu-mate 21.04 - 2 Errors - pthread_getspecific errors

Noli Sicad nsicad at gmail.com
Mon Jul 26 11:01:49 CEST 2021


Hi,

I am trying to compile scipoptsuite-7.0.3 in Ubuntu-mate 21.04.

I think the errors are in Papilo, this directory

 scip/scipoptsuite-7.0.3/papilo/external/tbb/

How do I fix these 2  errors (Please see compiling logs below)?

Thanks.

Regards, Noli

~~~~~~~~~~~~~~~~~
noli at noli-Latitude-E6430s:~/Documents/scip/scipoptsuite-7.0.3/build$ make
[ 46%] Built target libzimpl
[ 46%] Built target zimpl
[ 46%] Built target libzimpl-pic
-- Git hash: e24c304e
[ 46%] Built target soplex_update_githash
[ 46%] Built target libsoplex
[ 46%] Built target soplex
[ 46%] Built target libsoplex-pic
[ 46%] Built target clusol
[ 46%] Built target papilo-core
[ 46%] Built target unit_test
-- Git hash: 74c11e60cd
[ 46%] Built target scip_update_githash
Scanning dependencies of target libscip
[ 46%] Building C object scip/src/CMakeFiles/libscip.dir/scip/scipgithash.c.o
[ 46%] Linking CXX shared library ../../lib/libscip.so
[ 46%] Built target libscip
Scanning dependencies of target scip
[ 46%] Building C object scip/src/CMakeFiles/scip.dir/scip/scipgithash.c.o
[ 46%] Linking CXX executable ../../bin/scip
/usr/bin/ld: ../../papilo/tbb_release/libtbb.a(task_group_context.o):
in function `tbb::internal::basic_tls<unsigned long>::get()':
/home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tls.h:43:
undefined reference to `pthread_getspecific'
/usr/bin/ld: /home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tls.h:43:
undefined reference to `pthread_getspecific'
/usr/bin/ld: ../../papilo/tbb_release/libtbb.a(governor.o): in
function `tbb::internal::basic_tls<unsigned long>::create(void
(*)(void*))':
/home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tls.h:39:
undefined reference to `pthread_key_create'
/usr/bin/ld: ../../papilo/tbb_release/libtbb.a(governor.o): in
function `tbb::internal::basic_tls<unsigned long>::destroy()':
/home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tls.h:41:
undefined reference to `pthread_key_delete'
/usr/bin/ld: ../../papilo/tbb_release/libtbb.a(governor.o): in
function `tbb::internal::basic_tls<unsigned long>::get()':
/home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tls.h:43:
undefined reference to `pthread_getspecific'
/usr/bin/ld: /home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tls.h:43:
undefined reference to `pthread_getspecific'
/usr/bin/ld: ../../papilo/tbb_release/libtbb.a(governor.o): in
function `tbb::internal::basic_tls<unsigned long>::set(unsigned
long)':
/home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tls.h:42:
undefined reference to `pthread_setspecific'
/usr/bin/ld: ../../papilo/tbb_release/libtbb.a(market.o): in function
`tbb::internal::basic_tls<unsigned long>::get()':
/home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tls.h:43:
undefined reference to `pthread_getspecific'
/usr/bin/ld: ../../papilo/tbb_release/libtbb.a(arena.o): in function
`tbb::internal::basic_tls<unsigned long>::get()':
/home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tls.h:43:
undefined reference to `pthread_getspecific'
/usr/bin/ld: /home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tls.h:43:
undefined reference to `pthread_getspecific'
/usr/bin/ld: /home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tls.h:43:
undefined reference to `pthread_getspecific'
/usr/bin/ld: /home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tls.h:43:
undefined reference to `pthread_getspecific'
/usr/bin/ld: ../../papilo/tbb_release/libtbb.a(arena.o):/home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tls.h:43:
more undefined references to `pthread_getspecific' follow
/usr/bin/ld: ../../papilo/tbb_release/libtbb.a(scheduler.o): in
function `tbb::internal::generic_scheduler::init_stack_info()':
/home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/scheduler.cpp:210:
undefined reference to `pthread_attr_getstack'
/usr/bin/ld: ../../papilo/tbb_release/libtbb.a(scheduler.o): in
function `tbb::internal::basic_tls<unsigned long>::get()':
/home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tls.h:43:
undefined reference to `pthread_getspecific'
/usr/bin/ld: /home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tls.h:43:
undefined reference to `pthread_getspecific'
/usr/bin/ld: /home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tls.h:43:
undefined reference to `pthread_getspecific'
/usr/bin/ld: /home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tls.h:43:
undefined reference to `pthread_getspecific'
/usr/bin/ld: ../../papilo/tbb_release/libtbb.a(observer_proxy.o): in
function `tbb::internal::basic_tls<unsigned long>::get()':
/home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tls.h:43:
undefined reference to `pthread_getspecific'
/usr/bin/ld: ../../papilo/tbb_release/libtbb.a(observer_proxy.o):/home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tls.h:43:
more undefined references to `pthread_getspecific' follow
/usr/bin/ld: ../../papilo/tbb_release/libtbb.a(private_server.o): in
function `rml::internal::thread_monitor::join(unsigned long)':
/home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/../rml/server/thread_monitor.h:224:
undefined reference to `pthread_join'
/usr/bin/ld: ../../papilo/tbb_release/libtbb.a(private_server.o): in
function `rml::internal::thread_monitor::detach_thread(unsigned
long)':
/home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/../rml/server/thread_monitor.h:228:
undefined reference to `pthread_detach'
/usr/bin/ld: ../../papilo/tbb_release/libtbb.a(private_server.o): in
function `rml::internal::thread_monitor::launch(void* (*)(void*),
void*, unsigned long)':
/home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/../rml/server/thread_monitor.h:216:
undefined reference to `pthread_attr_setstacksize'
/usr/bin/ld: /home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/../rml/server/thread_monitor.h:218:
undefined reference to `pthread_create'
/usr/bin/ld: ../../papilo/tbb_release/libtbb.a(tbb_thread.o): in
function `tbb::internal::tbb_thread_v3::detach()':
/home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tbb_thread.cpp:83:
undefined reference to `pthread_detach'
/usr/bin/ld: /home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tbb_thread.cpp:83:
undefined reference to `pthread_detach'
/usr/bin/ld: ../../papilo/tbb_release/libtbb.a(tbb_thread.o): in
function `tbb::internal::tbb_thread_v3::internal_start(void*
(*)(void*), void*)':
/home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tbb_thread.cpp:120:
undefined reference to `pthread_attr_setstacksize'
/usr/bin/ld: /home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tbb_thread.cpp:124:
undefined reference to `pthread_create'
/usr/bin/ld: ../../papilo/tbb_release/libtbb.a(tbb_thread.o): in
function `tbb::internal::tbb_thread_v3::join()':
/home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tbb_thread.cpp:67:
undefined reference to `pthread_join'
/usr/bin/ld: /home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tbb_thread.cpp:67:
undefined reference to `pthread_join'
/usr/bin/ld: ../../papilo/tbb_release/libtbb.a(task.o): in function
`tbb::internal::basic_tls<unsigned long>::get()':
/home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tls.h:43:
undefined reference to `pthread_getspecific'
/usr/bin/ld: /home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tls.h:43:
undefined reference to `pthread_getspecific'
/usr/bin/ld: /home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tls.h:43:
undefined reference to `pthread_getspecific'
/usr/bin/ld: /home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tls.h:43:
undefined reference to `pthread_getspecific'
/usr/bin/ld: /home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tls.h:43:
undefined reference to `pthread_getspecific'
/usr/bin/ld: ../../papilo/tbb_release/libtbb.a(task.o):/home/noli/Documents/scip/scipoptsuite-7.0.3/papilo/external/tbb/./src/tbb/tls.h:43:
more undefined references to `pthread_getspecific' follow
collect2: error: ld returned 1 exit status
make[2]: *** [scip/src/CMakeFiles/scip.dir/build.make:5353: bin/scip] Error 1
make[1]: *** [CMakeFiles/Makefile2:2527:
scip/src/CMakeFiles/scip.dir/all] Error 2
make: *** [Makefile:182: all] Error 2
noli at noli-Latitude-E6430s:~/Documents/scip/scipoptsuite-7.0.3/build$


More information about the Scip mailing list