c++ - Link Error with MIC.o file -



c++ - Link Error with MIC.o file -

while linking sources of application mic intel c++ (icpc) compiler got error.

intel-icc/2013-64 version:

somethingmic.o: relocation r_x86_64_pc32 against undefined symbol `_zn9__gnu_cxx21__atomic_add_dispatchepii' can not used when making shared object; recompile -fpic x86_64-k1om-linux-ld: final link failed: bad value

intel-icc/2015-64 version:

somethingmic.o: in function `std::locale::facet::_m_add_reference() const': /usr/linux-k1om-4.7/linux-k1om/../x86_64-k1om-linux/include/c++/4.7.0 bits/locale_classes.h:402: undefined reference `__gnu_cxx::__atomic_add_dispatch(int*, int)' somethingmic.o: in function `std::locale::facet::_m_remove_reference() const': /usr/linux-k1om-4.7/linux-k1om/../x86_64-k1om-linux/include/c++/4.7.0 bits/locale_classes.h:409: undefined reference __gnu_cxx::__exchange_and_add_dispatch(int*, int)' somethingmic.o: in function `std::locale::_impl::_m_add_reference()': /usr/linux-k1om-4.7/linux-k1om/../x86_64-k1om-linux/include/c++/4.7.0/bits/locale_classes.h:511: undefined reference `__gnu_cxx::__atomic_add_dispatch(int*, int)' somethingmic.o: in function `std::locale::_impl::_m_remove_reference()': /usr/linux-k1om-4.7/linux-k1om/../x86_64-k1om-linux/include/c++/4.7. /bits/locale_classes.h:518: undefined reference `__gnu_cxx::__exchange_and_add_dispatch(int*, int)' somethingmic.o: in function `std::ios_base::_callback_list::_m_add_reference()': /usr/linux-k1om-4.7/linux-k1om/../x86_64-k1om-linux/include/c++/4.7.0/bits/ios_base.h:475: undefined reference `__gnu_cxx::__atomic_add_dispatch(int*, int)' somethingmic.o: in function `std::ios_base::_callback_list::_m_remove_reference()': /usr/linux-k1om-4.7/linux-k1om/../x86_64-k1om-linux/include/c++/4.7.0/bits/ios_base.h:483: undefined reference `__gnu_cxx::__exchange_and_add_dispatch(int*, int)'

what it?

__gnu_cxx::__atomic_add_dispatch(int*, int);

is required linked with.

c++ compiler-errors icc xeon-phi

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -