Quantcast
Channel: Intel Developer Zone Articles
Viewing all articles
Browse latest Browse all 3384

How to use the Intel® Cluster Checker v3 SDK with gcc5

$
0
0

When compiling connector extensions in the Intel® Cluster Checker v3 SDK it is recommended to use an Intel compiler version 15.0 or newer and a gcc/g++ compiler version 4.9.0 or newer, as described in the Intel® Cluster Checker developer's Guide. This explicitly includes gcc version 5.1.0 and newer as well.

Due to changes to the C++ ABI that have been introduced in gcc version 5.1.0, a connector extension, i.e. the lib<your check>.so shared library, built with such a gcc version will not function when called from clck-analyze, even when the libstdc++.so.6 provided by that gcc version is being used.

clck-analyze will show a message like this:

<your check>... not found

and executing

ldd lib<your check>.so

without using the libstdc++.so.6 provided by gcc version 5.1.0 or newer will show the following message, in addition to other output:

./lib<your check>.so: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ./lib<your check>.so)

In order to be able to use gcc version 5.1.0 or newer with the Intel® Cluster Checker v3 SDK you will have to force gcc/g++ to use a previous ABI version by using -D_GLIBCXX_USE_CXX11_ABI=0  as part of the CXXFLAGS.


Viewing all articles
Browse latest Browse all 3384

Trending Articles