Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
92 Views

Compile VTK 9.0 using intel compilers 19.1

Jump to solution

I am working on RHEL 7 linux. In my project I would like to use both VTK and OpenMP(in future), both linked statically. Intel's OpenMP library is already used/linked by MKL Pardiso solver in my app. As I understand, to use OpenMP delivered by Intel in parallelization of my app loops I need to use Intel compilers (there is no possibility to link both Intel's and GCC's OpenMP implementations at the same time). Due to that fact I am trying to compile VTK 9.0 as a static library to make it possible to link with my app.

The standard compiler for RHEL 7 is GCC 4.8.5. This means its libstdc++ doesn't support c++14 standard that I am using in my app. That is why I have built from source GCC 7.5.0 and use it for further works.

I successfully built VTK with GCC 7.5.0 using Cmake and following compiler directories definitions:

-DCMAKE_C_COMPILER=$HOME/GCC-7.5.0/bin/gcc -DCMAKE_CXX_COMPILER=$HOME/GCC-7.5.0/bin/g++

Then I can compile my app and link it to VTK with GCC 7.5.0. But it is not enough - I cannot use OpenMP features.

So now I am trying to build VTK with icc. The following Cmake definitions are added:

-DCMAKE_C_COMPILER=/apps/intel/compiler20u4/compilers_and_libraries_2020.4.304/linux/bin/intel64/icc -DCMAKE_CXX_COMPILER=/apps/intel/compiler20u4/compilers_and_libraries_2020.4.304/linux/bin/intel64/icpc

Additionaly in Cmake I defined some extra compiler flags to enforce the use of GCC's 7.5.0 standards:

-cxxlib=$HOME/GCC-7.5.0 -std=c++14

This time compilation fails with lots of errors related to ABI:

lib64/libvtksys-9.0.a(SystemInformation.cxx.o): In function `vtksys::SystemInformationImplementation::GetProgramStack[abi:cxx11](int, int)':
SystemInformation.cxx:(.text+0x114f7): undefined reference to `VTT for std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >'
SystemInformation.cxx:(.text+0x1160d): undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
SystemInformation.cxx:(.text+0x11683): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long)'
SystemInformation.cxx:(.text+0x11755): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)'
SystemInformation.cxx:(.text+0x117f2): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)'
SystemInformation.cxx:(.text+0x118dc): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)'
SystemInformation.cxx:(.text+0x11aa4): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)'
SystemInformation.cxx:(.text+0x11b0b): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <char, std::char_traits<char>, std::allocator<char> >(std::basic_ostream<char, std::char_traits<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
SystemInformation.cxx:(.text+0x11b31): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(char const*) const'
SystemInformation.cxx:(.text+0x11c07): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)'
SystemInformation.cxx:(.text+0x11c29): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)'
SystemInformation.cxx:(.text+0x11c7b): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)'
SystemInformation.cxx:(.text+0x11d01): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::rfind(char const*, unsigned long, unsigned long) const'
SystemInformation.cxx:(.text+0x11d33): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_erase(unsigned long, unsigned long)'
SystemInformation.cxx:(.text+0x11dc4): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)'
SystemInformation.cxx:(.text+0x11e4a): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::rfind(char const*, unsigned long, unsigned long) const'
SystemInformation.cxx:(.text+0x11e7c): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_erase(unsigned long, unsigned long)'
SystemInformation.cxx:(.text+0x11ea5): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <char, std::char_traits<char>, std::allocator<char> >(std::basic_ostream<char, std::char_traits<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
SystemInformation.cxx:(.text+0x11f0c): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)'
SystemInformation.cxx:(.text+0x11f91): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::rfind(char const*, unsigned long, unsigned long) const'
SystemInformation.cxx:(.text+0x11fc3): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_erase(unsigned long, unsigned long)'
SystemInformation.cxx:(.text+0x11fec): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <char, std::char_traits<char>, std::allocator<char> >(std::basic_ostream<char, std::char_traits<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
SystemInformation.cxx:(.text+0x12118): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
SystemInformation.cxx:(.text+0x12175): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)'
SystemInformation.cxx:(.text+0x122cf): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)'
SystemInformation.cxx:(.text+0x123f8): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long)'
SystemInformation.cxx:(.text+0x1240e): undefined reference to `VTT for std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >'
SystemInformation.cxx:(.text+0x12543): undefined reference to `VTT for std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >'
lib64/libvtksys-9.0.a(SystemInformation.cxx.o): In function `vtksys::(anonymous namespace)::SymbolProperties::SymbolProperties()':
SystemInformation.cxx:(.text+0x12ad9): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)'
SystemInformation.cxx:(.text+0x12afd): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)'
SystemInformation.cxx:(.text+0x12b9c): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)'
SystemInformation.cxx:(.text+0x12cb8): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)'
SystemInformation.cxx:(.text+0x12d55): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)'
SystemInformation.cxx:(.text+0x12dc0): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::rfind(char const*, unsigned long, unsigned long) const'
SystemInformation.cxx:(.text+0x12ded): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_erase(unsigned long, unsigned long)'
lib64/libvtksys-9.0.a(SystemInformation.cxx.o): In function `vtksys::(anonymous namespace)::StacktraceSignalHandler(int, siginfo_t*, void*)':
SystemInformation.cxx:(.text+0x12f86): undefined reference to `VTT for std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >'
SystemInformation.cxx:(.text+0x13075): undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >'
SystemInformation.cxx:(.text+0x135d0): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <char, std::char_traits<char>, std::allocator<char> >(std::basic_ostream<char, std::char_traits<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
SystemInformation.cxx:(.text+0x1363b): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
SystemInformation.cxx:(.text+0x1369b): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)'
SystemInformation.cxx:(.text+0x1386e): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)'
SystemInformation.cxx:(.text+0x13a08): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <char, std::char_traits<char>, std::allocator<char> >(std::basic_ostream<char, std::char_traits<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
SystemInformation.cxx:(.text+0x13ad9): undefined reference to `VTT for std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >'

I have checked many combination of flags -D_GLIBCXX_USE_CXX11_ABI and -fabi-version, and the best I got is other compilation error package. This time it seemed to be also related to ABI version:

lib64/libvtkCommonCore-9.0.a(vtkUnicodeString.cxx.o): In function `vtkUnicodeString::at(unsigned long) const':
vtkUnicodeString.cxx:(.text+0x2c0e): undefined reference to `std::out_of_range::out_of_range(char const*)'
lib64/libvtkCommonCore-9.0.a(vtkVariantArray.cxx.o): In function `vtkVariantArray::Allocate(long long, long long)':
vtkVariantArray.cxx:(.text+0x134): undefined reference to `__cxa_throw_bad_array_new_length'
lib64/libvtkCommonCore-9.0.a(vtkVariantArray.cxx.o): In function `vtkVariantArray::InsertTuple(long long, long long, vtkAbstractArray*)':
vtkVariantArray.cxx:(.text+0x7cf): undefined reference to `__cxa_throw_bad_array_new_length'
vtkVariantArray.cxx:(.text+0xaa6): undefined reference to `__cxa_throw_bad_array_new_length'
vtkVariantArray.cxx:(.text+0xd71): undefined reference to `__cxa_throw_bad_array_new_length'
lib64/libvtkCommonCore-9.0.a(vtkVariantArray.cxx.o): In function `vtkVariantArray::InsertTuples(vtkIdList*, vtkIdList*, vtkAbstractArray*)':
vtkVariantArray.cxx:(.text+0x16ba): undefined reference to `__cxa_throw_bad_array_new_length'
lib64/libvtkCommonCore-9.0.a(vtkVariantArray.cxx.o):vtkVariantArray.cxx:(.text+0x198a): more undefined references to `__cxa_throw_bad_array_new_length' follow
lib64/libvtkCommonCore-9.0.a(vtkAbstractArray.cxx.o): In function `vtkAbstractArray::PrintSelf(std::ostream&, vtkIndent)':
vtkAbstractArray.cxx:(.text+0x1fc): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)'
lib64/libvtkCommonCore-9.0.a(vtkAbstractArray.cxx.o): In function `vtkAbstractArray::SetComponentName(long long, char const*)':
vtkAbstractArray.cxx:(.text+0x7e1): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)'
lib64/libvtkCommonCore-9.0.a(vtkAbstractArray.cxx.o): In function `vtkAbstractArray::CopyComponentNames(vtkAbstractArray*)':
vtkAbstractArray.cxx:(.text+0xfb8): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)'
vtkAbstractArray.cxx:(.text+0x107b): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)'
vtkAbstractArray.cxx:(.text+0x15d9): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)'
lib64/libvtkCommonCore-9.0.a(vtkAbstractArray.cxx.o):vtkAbstractArray.cxx:(.text+0x2815): more undefined references to `std::__throw_out_of_range_fmt(char const*, ...)' follow
lib64/libvtkCommonCore-9.0.a(vtkArray.cxx.o): In function `vtkDenseArray<short>::InternalResize(vtkArrayExtents const&)':
vtkArray.cxx:(.text._ZN13vtkDenseArrayIsE14InternalResizeERK15vtkArrayExtents[_ZN13vtkDenseArrayIsE14InternalResizeERK15vtkArrayExtents]+0x48): undefined reference to `__cxa_throw_bad_array_new_length'
lib64/libvtkCommonCore-9.0.a(vtkArray.cxx.o): In function `vtkDenseArray<unsigned short>::InternalResize(vtkArrayExtents const&)':
vtkArray.cxx:(.text._ZN13vtkDenseArrayItE14InternalResizeERK15vtkArrayExtents[_ZN13vtkDenseArrayItE14InternalResizeERK15vtkArrayExtents]+0x48): undefined reference to `__cxa_throw_bad_array_new_length'
lib64/libvtkCommonCore-9.0.a(vtkArray.cxx.o): In function `vtkDenseArray<int>::InternalResize(vtkArrayExtents const&)':
vtkArray.cxx:(.text._ZN13vtkDenseArrayIiE14InternalResizeERK15vtkArrayExtents[_ZN13vtkDenseArrayIiE14InternalResizeERK15vtkArrayExtents]+0x48): undefined reference to `__cxa_throw_bad_array_new_length'
lib64/libvtkCommonCore-9.0.a(vtkArray.cxx.o): In function `vtkDenseArray<unsigned int>::InternalResize(vtkArrayExtents const&)':
vtkArray.cxx:(.text._ZN13vtkDenseArrayIjE14InternalResizeERK15vtkArrayExtents[_ZN13vtkDenseArrayIjE14InternalResizeERK15vtkArrayExtents]+0x48): undefined reference to `__cxa_throw_bad_array_new_length'
lib64/libvtkCommonCore-9.0.a(vtkArray.cxx.o): In function `vtkDenseArray<long>::InternalResize(vtkArrayExtents const&)':
vtkArray.cxx:(.text._ZN13vtkDenseArrayIlE14InternalResizeERK15vtkArrayExtents[_ZN13vtkDenseArrayIlE14InternalResizeERK15vtkArrayExtents]+0x48): undefined reference to `__cxa_throw_bad_array_new_length'
lib64/libvtkCommonCore-9.0.a(vtkArray.cxx.o):vtkArray.cxx:(.text._ZN13vtkDenseArrayImE14InternalResizeERK15vtkArrayExtents[_ZN13vtkDenseArrayImE14InternalResizeERK15vtkArrayExtents]+0x48): more undefined references to `__cxa_throw_bad_array_new_length' follow
lib64/libvtkloguru-9.0.a(loguru.cpp.o): In function `_INTERNALdb85be69::vtkloguru::log_message(int, _INTERNALdb85be69::vtkloguru::Message&, bool, bool)':
loguru.cpp:(.text+0x786): undefined reference to `std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)())'
lib64/libvtkloguru-9.0.a(loguru.cpp.o): In function `std::__detail::_Compiler<std::regex_traits<char> >::_M_quantifier()::{lambda()#1}::operator()() const':
loguru.cpp:(.text+0x8018): undefined reference to `std::runtime_error::runtime_error(char const*)'
loguru.cpp:(.text+0x83c7): undefined reference to `std::runtime_error::runtime_error(char const*)'
loguru.cpp:(.text+0x86c7): undefined reference to `std::runtime_error::runtime_error(char const*)'
loguru.cpp:(.text+0x88f0): undefined reference to `std::runtime_error::runtime_error(char const*)'
loguru.cpp:(.text+0x8aef): undefined reference to `std::runtime_error::runtime_error(char const*)'
lib64/libvtkloguru-9.0.a(loguru.cpp.o):loguru.cpp:(.text+0x8b72): more undefined references to `std::runtime_error::runtime_error(char const*)' follow
lib64/libvtkloguru-9.0.a(loguru.cpp.o): In function `std::thread::_State_impl<std::thread::_Invoker<std::tuple<_INTERNALdb85be69::vtkloguru::log_message(int, _INTERNALdb85be69::vtkloguru::Message&, bool, bool)::{lambda()#1}> > >::~_State_impl()':
loguru.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJZN17_INTERNALdb85be699vtkloguru11log_messageEiRNS4_7MessageEbbEUlvE_EEEEED1Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJZN17_INTERNALdb85be699vtkloguru11log_messageEiRNS4_7MessageEbbEUlvE_EEEEED1Ev]+0x2): undefined reference to `std::thread::_State::~_State()'
lib64/libvtkloguru-9.0.a(loguru.cpp.o): In function `std::thread::_State_impl<std::thread::_Invoker<std::tuple<_INTERNALdb85be69::vtkloguru::log_message(int, _INTERNALdb85be69::vtkloguru::Message&, bool, bool)::{lambda()#1}> > >::~_State_impl()':
loguru.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJZN17_INTERNALdb85be699vtkloguru11log_messageEiRNS4_7MessageEbbEUlvE_EEEEED0Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJZN17_INTERNALdb85be699vtkloguru11log_messageEiRNS4_7MessageEbbEUlvE_EEEEED0Ev]+0xa): undefined reference to `std::thread::_State::~_State()'
lib64/libvtkloguru-9.0.a(loguru.cpp.o): In function `std::__detail::_Scanner<char>::_M_eat_escape_ecma()':
loguru.cpp:(.text._ZNSt8__detail8_ScannerIcE18_M_eat_escape_ecmaEv[_ZNSt8__detail8_ScannerIcE18_M_eat_escape_ecmaEv]+0x1e0): undefined reference to `std::runtime_error::runtime_error(char const*)'
loguru.cpp:(.text._ZNSt8__detail8_ScannerIcE18_M_eat_escape_ecmaEv[_ZNSt8__detail8_ScannerIcE18_M_eat_escape_ecmaEv]+0x489): undefined reference to `std::runtime_error::runtime_error(char const*)'
loguru.cpp:(.text._ZNSt8__detail8_ScannerIcE18_M_eat_escape_ecmaEv[_ZNSt8__detail8_ScannerIcE18_M_eat_escape_ecmaEv]+0x535): undefined reference to `std::runtime_error::runtime_error(char const*)'
lib64/libvtkloguru-9.0.a(loguru.cpp.o): In function `std::__detail::_Scanner<char>::_M_eat_escape_posix()':
loguru.cpp:(.text._ZNSt8__detail8_ScannerIcE19_M_eat_escape_posixEv[_ZNSt8__detail8_ScannerIcE19_M_eat_escape_posixEv]+0x305): undefined reference to `std::runtime_error::runtime_error(char const*)'
loguru.cpp:(.text._ZNSt8__detail8_ScannerIcE19_M_eat_escape_posixEv[_ZNSt8__detail8_ScannerIcE19_M_eat_escape_posixEv]+0x3f2): undefined reference to `std::runtime_error::runtime_error(char const*)'
lib64/libvtkloguru-9.0.a(loguru.cpp.o):loguru.cpp:(.text._ZNSt8__detail8_ScannerIcEC1EPKcS3_NSt15regex_constants18syntax_option_typeESt6locale[_ZNSt8__detail8_ScannerIcEC1EPKcS3_NSt15regex_constants18syntax_option_typeESt6locale]+0x62e): more undefined references to `std::runtime_error::runtime_error(char const*)' follow
lib64/libvtkloguru-9.0.a(loguru.cpp.o):(.data._ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJZN17_INTERNALdb85be699vtkloguru11log_messageEiRNS4_7MessageEbbEUlvE_EEEEEE[_ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJZN17_INTERNALdb85be699vtkloguru11log_messageEiRNS4_7MessageEbbEUlvE_EEEEEE]+0x10): undefined reference to `typeinfo for std::thread::_State'
lib64/libvtksys-9.0.a(SystemTools.cxx.o): In function `vtksys::SystemTools::CropString(std::string const&, unsigned long)':
SystemTools.cxx:(.text+0x3379): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)'
lib64/libvtksys-9.0.a(SystemTools.cxx.o): In function `vtksys::SystemTools::Split(std::string const&, std::vector<std::string, std::allocator<std::string> >&)':
SystemTools.cxx:(.text+0x3617): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)'
lib64/libvtksys-9.0.a(SystemTools.cxx.o): In function `vtksys::SystemTools::Split(std::string const&, std::vector<std::string, std::allocator<std::string> >&, char)':
SystemTools.cxx:(.text+0x40cd): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)'
lib64/libvtksys-9.0.a(SystemTools.cxx.o): In function `vtksys::SystemTools::ConvertToOutputPath(std::string const&)':
SystemTools.cxx:(.text+0x5439): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)'
lib64/libvtksys-9.0.a(SystemTools.cxx.o): In function `vtksys::SystemTools::ConvertToUnixOutputPath(std::string const&)':
SystemTools.cxx:(.text+0x5719): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)'

It is the more interesting that GCC compilation is successful with no additional ABI flags.

Note that my GCC 7.5.0 is not in added to PATH and other sys variables, only passed by CMAKE variables.

Is my way of "telling" icc to use new standard library correct? Is there any workaround?

Thanks.

 

0 Kudos

Accepted Solutions
Highlighted
Beginner
60 Views

I found the problem. It was wrong passing of cxxlib flag in my cmake file. The flag was passed only to CXX compiler, not to C. Replacing it by Cmake's add_definitions() function solved the problem. Finally no additional ABI compatibility flags are required.

Btw, that was not possible to catch based on the scratch of information I have provided.

View solution in original post

0 Kudos
2 Replies
Highlighted
Beginner
61 Views

I found the problem. It was wrong passing of cxxlib flag in my cmake file. The flag was passed only to CXX compiler, not to C. Replacing it by Cmake's add_definitions() function solved the problem. Finally no additional ABI compatibility flags are required.

Btw, that was not possible to catch based on the scratch of information I have provided.

View solution in original post

0 Kudos
Highlighted
Moderator
49 Views

Hi,


Thanks for the update. Good to know that it worked. Intel will no longer monitor this thread. Henceforth, further responses on this thread will be considered as community only.


Regards,

Rahul


0 Kudos