undefined reference to `pthread_mutex_unlock'

0

I was trying to install a software ezspectrum for my scientific analysis. https://github.com/iopenshell/ezSpectrum

I just cloned the link above and got the necessary dependencies then try to install using make command and got the below output. Has no clue why it didnot install??

g++  -static main.o molecular_prop/molstate.o molecular_prop/atom.o molecular_prop/normalmode.o molecular_prop/simple_xml_parser.o molecular_prop/vibronic_state.o molecular_prop/vector3d.o molecular_prop/spectrum.o molecular_prop/spectralpoint.o matrix_math/blas_calls.o matrix_math/kmatrix.o matrix_math/tmp_buffer.o basic_methods/genutil.o basic_methods/mathutil.o harmonic_pes/franck_condon.o harmonic_pes/harmonic_pes_main.o harmonic_pes/parallel_approximation.o harmonic_pes/vibrational_indexing.o harmonic_pes/dushinsky.o -L/usr/lib64 -llapack -lblas -lexpat -lm -lgfortran -I molecular_prop/ -I matrix_math/ -I basic_methods/  -I harmonic_pes/   -o ezSpectrum
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/liblapack.a(memory.o): In function `alloc_mmap':
(.text+0xa8): undefined reference to `pthread_mutex_lock'
(.text+0xe4): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/liblapack.a(memory.o): In function `openblas_fork_handler':
(.text+0x220): undefined reference to `pthread_atfork'
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/liblapack.a(memory.o): In function `blas_memory_alloc':
(.text+0x396): undefined reference to `pthread_mutex_lock'
(.text+0x3c3): undefined reference to `pthread_mutex_unlock'
(.text+0x4f8): undefined reference to `pthread_mutex_lock'
(.text+0x512): undefined reference to `pthread_mutex_unlock'
(.text+0x52b): undefined reference to `pthread_mutex_lock'
(.text+0x540): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/liblapack.a(memory.o): In function `blas_memory_free':
(.text+0x57c): undefined reference to `pthread_mutex_lock'
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/liblapack.a(memory.o): In function `blas_shutdown':
(.text+0x643): undefined reference to `pthread_mutex_lock'
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/liblapack.a(memory.o): In function `blas_memory_free':
(.text+0x5e0): undefined reference to `pthread_mutex_unlock'
(.text+0x5f8): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/liblapack.a(memory.o): In function `blas_shutdown':
(.text+0x6c9): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/libstdc++.a(eh_alloc.o): In function `(anonymous namespace)::pool::free(void*) [clone .constprop.2]':
(.text._ZN12_GLOBAL__N_14pool4freeEPv.constprop.2+0x1d): undefined reference to `pthread_mutex_lock'
(.text._ZN12_GLOBAL__N_14pool4freeEPv.constprop.2+0xe0): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/libstdc++.a(eh_alloc.o): In function `(anonymous namespace)::pool::allocate(unsigned long) [clone .constprop.3]':
(.text._ZN12_GLOBAL__N_14pool8allocateEm.constprop.3+0x21): undefined reference to `pthread_mutex_lock'
(.text._ZN12_GLOBAL__N_14pool8allocateEm.constprop.3+0x8b): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/liblapack.a(blas_server.o): In function `blas_thread_server':
(.text+0x15c): undefined reference to `pthread_mutex_lock'
(.text+0x168): undefined reference to `pthread_mutex_unlock'
(.text+0x186): undefined reference to `pthread_mutex_lock'
(.text+0x19b): undefined reference to `pthread_mutex_unlock'
(.text+0x1c3): undefined reference to `pthread_mutex_lock'
(.text+0x1d3): undefined reference to `pthread_mutex_unlock'
(.text+0x226): undefined reference to `pthread_mutex_lock'
(.text+0x23a): undefined reference to `pthread_mutex_unlock'
(.text+0x267): undefined reference to `pthread_cond_wait'
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/liblapack.a(blas_server.o): In function `blas_thread_init':
(.text+0x3e8): undefined reference to `pthread_mutex_lock'
(.text+0x49d): undefined reference to `pthread_mutex_init'
(.text+0x4a8): undefined reference to `pthread_cond_init'
(.text+0x4bc): undefined reference to `pthread_create'
(.text+0x555): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/liblapack.a(blas_server.o): In function `exec_blas_async':
(.text+0x624): undefined reference to `pthread_mutex_lock'
(.text+0x630): undefined reference to `pthread_mutex_unlock'
(.text+0x65a): undefined reference to `pthread_mutex_lock'
(.text+0x66f): undefined reference to `pthread_mutex_unlock'
(.text+0x6a0): undefined reference to `pthread_mutex_lock'
(.text+0x6b5): undefined reference to `pthread_mutex_unlock'
(.text+0x712): undefined reference to `pthread_mutex_lock'
(.text+0x71e): undefined reference to `pthread_mutex_unlock'
(.text+0x72c): undefined reference to `pthread_mutex_lock'
(.text+0x73e): undefined reference to `pthread_mutex_unlock'
(.text+0x778): undefined reference to `pthread_cond_signal'
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/liblapack.a(blas_server.o): In function `exec_blas_async_wait':
(.text+0x7cb): undefined reference to `pthread_mutex_lock'
(.text+0x7e4): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/liblapack.a(blas_server.o): In function `goto_set_num_threads':
(.text+0x934): undefined reference to `pthread_mutex_lock'
(.text+0x997): undefined reference to `pthread_mutex_init'
(.text+0x9a6): undefined reference to `pthread_cond_init'
(.text+0x9c2): undefined reference to `pthread_create'
(.text+0x9dc): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/liblapack.a(blas_server.o): In function `blas_thread_shutdown_':
(.text+0xb66): undefined reference to `pthread_mutex_lock'
(.text+0xbe8): undefined reference to `pthread_mutex_lock'
(.text+0xbfa): undefined reference to `pthread_cond_signal'
(.text+0xc06): undefined reference to `pthread_mutex_unlock'
(.text+0xc38): undefined reference to `pthread_join'
(.text+0xc68): undefined reference to `pthread_mutex_destroy'
(.text+0xc75): undefined reference to `pthread_cond_destroy'
(.text+0xc99): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/libgfortran.a(unit.o): In function `insert_unit':
(.text.insert_unit+0x55): undefined reference to `pthread_mutex_lock'
/usr/lib/gcc/x86_64-linux-gnu/7/libgfortran.a(unit.o): In function `get_gfc_unit':
(.text.get_gfc_unit+0x29): undefined reference to `pthread_mutex_lock'
(.text.get_gfc_unit+0x9c): undefined reference to `pthread_mutex_unlock'
(.text.get_gfc_unit+0x11b): undefined reference to `pthread_mutex_unlock'
(.text.get_gfc_unit+0x13e): undefined reference to `pthread_mutex_lock'
(.text.get_gfc_unit+0x151): undefined reference to `pthread_mutex_lock'
(.text.get_gfc_unit+0x159): undefined reference to `pthread_mutex_unlock'
(.text.get_gfc_unit+0x175): undefined reference to `pthread_mutex_destroy'
(.text.get_gfc_unit+0x204): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/libgfortran.a(unit.o): In function `_gfortrani_init_units':
(.text._gfortrani_init_units+0x65): undefined reference to `pthread_mutex_unlock'
(.text._gfortrani_init_units+0x7b): undefined reference to `pthread_mutex_unlock'
(.text._gfortrani_init_units+0x182): undefined reference to `pthread_mutex_unlock'
(.text._gfortrani_init_units+0x24d): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/libgfortran.a(unit.o):(.text._gfortrani_init_units+0x310): more undefined references to `pthread_mutex_unlock' follow
/usr/lib/gcc/x86_64-linux-gnu/7/libgfortran.a(unit.o): In function `_gfortrani_newunit_alloc':
(.text._gfortrani_newunit_alloc+0x18): undefined reference to `pthread_mutex_lock'
(.text._gfortrani_newunit_alloc+0xa7): undefined reference to `pthread_mutex_unlock'
(.text._gfortrani_newunit_alloc+0xd9): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/libgfortran.a(unit.o): In function `close_unit_1':
(.text.close_unit_1+0xe8): undefined reference to `pthread_mutex_unlock'
(.text.close_unit_1+0x102): undefined reference to `pthread_mutex_unlock'
(.text.close_unit_1+0x1b8): undefined reference to `pthread_mutex_lock'
(.text.close_unit_1+0x1cc): undefined reference to `pthread_mutex_destroy'
/usr/lib/gcc/x86_64-linux-gnu/7/libgfortran.a(unit.o): In function `_gfortrani_close_units':
(.text._gfortrani_close_units+0x15): undefined reference to `pthread_mutex_lock'
(.text._gfortrani_close_units+0x4b): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/libgfortran.a(unix.o): In function `flush_all_units_1':
(.text.flush_all_units_1+0x37): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/libgfortran.a(unix.o): In function `_gfortrani_find_file':
(.text._gfortrani_find_file+0x7d): undefined reference to `pthread_mutex_lock'
(.text._gfortrani_find_file+0xb7): undefined reference to `pthread_mutex_unlock'
(.text._gfortrani_find_file+0xbf): undefined reference to `pthread_mutex_lock'
(.text._gfortrani_find_file+0xd1): undefined reference to `pthread_mutex_lock'
(.text._gfortrani_find_file+0xd9): undefined reference to `pthread_mutex_unlock'
(.text._gfortrani_find_file+0x107): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/libgfortran.a(unix.o): In function `_gfortrani_flush_all_units':
(.text._gfortrani_flush_all_units+0x22): undefined reference to `pthread_mutex_lock'
(.text._gfortrani_flush_all_units+0xb4): undefined reference to `pthread_mutex_unlock'
(.text._gfortrani_flush_all_units+0xbc): undefined reference to `pthread_mutex_lock'
(.text._gfortrani_flush_all_units+0xdd): undefined reference to `pthread_mutex_lock'
(.text._gfortrani_flush_all_units+0xe5): undefined reference to `pthread_mutex_unlock'
(.text._gfortrani_flush_all_units+0xf4): undefined reference to `pthread_mutex_lock'
(.text._gfortrani_flush_all_units+0xfc): undefined reference to `pthread_mutex_unlock'
(.text._gfortrani_flush_all_units+0xa7): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/libgfortran.a(write.o): In function `get_precision':
(.text.get_precision+0x127): undefined reference to `quadmath_snprintf'
/usr/lib/gcc/x86_64-linux-gnu/7/libgfortran.a(write.o): In function `get_float_string':
(.text.get_float_string+0x13b): undefined reference to `quadmath_snprintf'
(.text.get_float_string+0xb2d): undefined reference to `quadmath_snprintf'
(.text.get_float_string+0x135a): undefined reference to `quadmath_snprintf'
/usr/lib/gcc/x86_64-linux-gnu/7/libstdc++.a(locale_init.o): In function `__gnu_cxx::__scoped_lock::~__scoped_lock()':
(.text._ZN9__gnu_cxx13__scoped_lockD2Ev[_ZN9__gnu_cxx13__scoped_lockD5Ev]+0x12): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/libstdc++.a(locale_init.o): In function `std::locale::locale()':
(.text._ZNSt6localeC2Ev+0x43): undefined reference to `pthread_mutex_lock'
(.text._ZNSt6localeC2Ev+0x5e): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/libstdc++.a(locale_init.o): In function `std::locale::global(std::locale const&)':
(.text._ZNSt6locale6globalERKS_+0x45): undefined reference to `pthread_mutex_lock'
(.text._ZNSt6locale6globalERKS_+0xab): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/libstdc++.a(locale.o): In function `std::locale::_Impl::_M_install_cache(std::locale::facet const*, unsigned long)':
(.text._ZNSt6locale5_Impl16_M_install_cacheEPKNS_5facetEm+0x4e): undefined reference to `pthread_mutex_lock'
(.text._ZNSt6locale5_Impl16_M_install_cacheEPKNS_5facetEm+0xd6): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/libstdc++.a(c++locale.o): In function `std::Catalogs::_M_erase(int)':
(.text._ZNSt8Catalogs8_M_eraseEi+0x1b): undefined reference to `pthread_mutex_lock'
(.text._ZNSt8Catalogs8_M_eraseEi+0x92): undefined reference to `pthread_mutex_unlock'
(.text._ZNSt8Catalogs8_M_eraseEi+0x12b): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/libstdc++.a(c++locale.o): In function `std::Catalogs::_M_get(int) const':
(.text._ZNKSt8Catalogs6_M_getEi+0x1c): undefined reference to `pthread_mutex_lock'
(.text._ZNKSt8Catalogs6_M_getEi+0x8f): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/libstdc++.a(c++locale.o): In function `std::Catalogs::_M_add(char const*, std::locale)':
(.text._ZNSt8Catalogs6_M_addEPKcSt6locale+0x3d): undefined reference to `pthread_mutex_lock'
(.text._ZNSt8Catalogs6_M_addEPKcSt6locale+0xdb): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/libgcc_eh.a(unwind-dw2-fde-dip.o): In function `__register_frame_info_bases.part.6':
(.text+0x1801): undefined reference to `pthread_mutex_lock'
/usr/lib/gcc/x86_64-linux-gnu/7/libgcc_eh.a(unwind-dw2-fde-dip.o): In function `__register_frame_info_table_bases':
(.text+0x1911): undefined reference to `pthread_mutex_lock'
/usr/lib/gcc/x86_64-linux-gnu/7/libgcc_eh.a(unwind-dw2-fde-dip.o): In function `__deregister_frame_info_bases':
(.text+0x19de): undefined reference to `pthread_mutex_lock'
(.text+0x1a65): undefined reference to `pthread_mutex_unlock'
(.text+0x1a8d): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/libgcc_eh.a(unwind-dw2-fde-dip.o): In function `_Unwind_Find_FDE':
(.text+0x1bc4): undefined reference to `pthread_mutex_lock'
(.text+0x1c12): undefined reference to `pthread_mutex_unlock'
(.text+0x1d21): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/libgcc_eh.a(unwind-dw2-fde-dip.o): In function `__register_frame_info_bases.part.6':
(.text+0x1834): undefined reference to `pthread_mutex_unlock'
/usr/lib/gcc/x86_64-linux-gnu/7/libgcc_eh.a(unwind-dw2-fde-dip.o): In function `__register_frame_info_table_bases':
(.text+0x1944): undefined reference to `pthread_mutex_unlock'
collect2: error: ld returned 1 exit status
Makefile:37: recipe for target 'ezSpectrum' failed

user1040212

Posted 2019-05-23T11:33:16.280

Reputation: 1

No answers