<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic The libc standard library is in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-Intel-MKL-and-libdl-with-gold-linker/m-p/1143749#M26506</link>
    <description>&lt;P&gt;The libc standard library is linked in by default by the linker, but I tried adding it explicitly anyway (-lc), and it had no effect - we still get the same error.&lt;/P&gt;

&lt;P&gt;I don't think the link errors are related to pthread, but I also tried including -lpthread (and -pthread) and it had no effect - we still get the same error.&lt;/P&gt;

&lt;P&gt;To be clear, all the other third party libraries and our own libraries link fine. &amp;nbsp;It is only MKL that has this issue. &amp;nbsp;I suspect libmkl_rt.so has some non-standard property in its symbol table that is causing this issue, and it is exposed by using gold/CentOS/devtoolset-6.&lt;/P&gt;

&lt;P&gt;So that you can reproduce the problem locally, I have created a small docker image that demonstrates the issue. &amp;nbsp;Find attached mkldocker.tar.gz&lt;/P&gt;

&lt;P&gt;To use it:&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$ tar xvf mkldocker.tar.gz&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$ cd mkldocker&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$ docker build -t mkldocker .&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$ docker run -ti mkldocker&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;# bash build.sh&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; ./libmkl_rt.so: error: undefined reference to 'calloc'&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; ./libmkl_rt.so: error: undefined reference to 'realloc'&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; ./libmkl_rt.so: error: undefined reference to 'malloc'&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; ./libmkl_rt.so: error: undefined reference to 'free'&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jul 2017 19:51:51 GMT</pubDate>
    <dc:creator>Andrew_T_</dc:creator>
    <dc:date>2017-07-11T19:51:51Z</dc:date>
    <item>
      <title>How do I link Intel MKL and libdl with gold linker?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-Intel-MKL-and-libdl-with-gold-linker/m-p/1143745#M26502</link>
      <description>&lt;P style="margin-bottom: 1em; border: 0px; font-variant-numeric: inherit; font-stretch: inherit; font-size: 15px; line-height: inherit; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; vertical-align: baseline; clear: both; color: rgb(36, 39, 41);"&gt;I'm having a problem linking Intel MKL and libdl using the gold linker on CentOS:&lt;/P&gt;

&lt;P style="margin-bottom: 1em; border: 0px; font-variant-numeric: inherit; font-stretch: inherit; font-size: 15px; line-height: inherit; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; vertical-align: baseline; clear: both; color: rgb(36, 39, 41);"&gt;When I run this script:&lt;/P&gt;

&lt;PRE class="lang-c prettyprint prettyprinted" style="margin-top: 0px; margin-bottom: 1em; padding: 5px; border: 0px; font-variant-numeric: inherit; font-stretch: inherit; font-size: 13px; line-height: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; vertical-align: baseline; width: auto; max-height: 600px; overflow: auto; background-color: rgb(239, 240, 241); color: rgb(57, 51, 24); word-wrap: normal;"&gt;&lt;CODE style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 13px; line-height: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; vertical-align: baseline; white-space: inherit;"&gt;&lt;SPAN class="com" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(133, 140, 147);"&gt;#!/bin/bash&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;

MKL_INC&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;$MKL_INSTALL_DIR&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;/&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;include
MKL_LIB&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;$MKL_INSTALL_DIR&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;/&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;lib

&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;/&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;opt&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;/&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;rh&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;/&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;devtoolset&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;-&lt;/SPAN&gt;&lt;SPAN class="lit" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(125, 39, 39);"&gt;6&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;/&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;enable

cat &lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt; t&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;c &lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt; end_mkltest

&lt;/SPAN&gt;&lt;SPAN class="com" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(133, 140, 147);"&gt;#include&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(125, 39, 39);"&gt;&amp;lt;dlfcn.h&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;
&lt;/SPAN&gt;&lt;SPAN class="com" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(133, 140, 147);"&gt;#include&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(125, 39, 39);"&gt;"mkl_service.h"&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;

&lt;/SPAN&gt;&lt;SPAN class="typ" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(43, 145, 175);"&gt;int&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt; main&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;()&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;
    dlerror&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;();&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;              &lt;/SPAN&gt;&lt;SPAN class="com" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(133, 140, 147);"&gt;/* use libdl */&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;
    mkl_set_num_threads&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;(&lt;/SPAN&gt;&lt;SPAN class="lit" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(125, 39, 39);"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt; &lt;/SPAN&gt;&lt;SPAN class="com" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(133, 140, 147);"&gt;/* use mkl   */&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;
&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;}&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;

end_mkltest

gcc &lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;I$MKL_INC &lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;c t&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;c &lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;o t&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;o
gcc &lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;L$MKL_LIB &lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;fuse&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;ld&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;gold t&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;o &lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;lmkl_rt &lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;ldl&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P style="margin-bottom: 1em; border: 0px; font-variant-numeric: inherit; font-stretch: inherit; font-size: 15px; line-height: inherit; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; vertical-align: baseline; clear: both; color: rgb(36, 39, 41);"&gt;I get:&lt;/P&gt;

&lt;PRE class="lang-c prettyprint prettyprinted" style="margin-top: 0px; margin-bottom: 1em; padding: 5px; border: 0px; font-variant-numeric: inherit; font-stretch: inherit; font-size: 13px; line-height: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; vertical-align: baseline; width: auto; max-height: 600px; overflow: auto; background-color: rgb(239, 240, 241); color: rgb(57, 51, 24); word-wrap: normal;"&gt;&lt;CODE style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 13px; line-height: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; vertical-align: baseline; white-space: inherit;"&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;libmkl_rt&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;so&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt; error&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt; undefined reference to &lt;/SPAN&gt;&lt;SPAN class="str" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(125, 39, 39);"&gt;'calloc'&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;
libmkl_rt&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;so&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt; error&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt; undefined reference to &lt;/SPAN&gt;&lt;SPAN class="str" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(125, 39, 39);"&gt;'realloc'&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;
libmkl_rt&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;so&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt; error&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt; undefined reference to &lt;/SPAN&gt;&lt;SPAN class="str" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(125, 39, 39);"&gt;'malloc'&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;
libmkl_rt&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;so&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt; error&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt; undefined reference to &lt;/SPAN&gt;&lt;SPAN class="str" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(125, 39, 39);"&gt;'free'&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P style="margin-bottom: 1em; border: 0px; font-variant-numeric: inherit; font-stretch: inherit; font-size: 15px; line-height: inherit; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; vertical-align: baseline; clear: both; color: rgb(36, 39, 41);"&gt;We're using:&lt;/P&gt;

&lt;PRE class="lang-c prettyprint prettyprinted" style="margin-top: 0px; margin-bottom: 1em; padding: 5px; border: 0px; font-variant-numeric: inherit; font-stretch: inherit; font-size: 13px; line-height: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; vertical-align: baseline; width: auto; max-height: 600px; overflow: auto; background-color: rgb(239, 240, 241); color: rgb(57, 51, 24); word-wrap: normal;"&gt;&lt;CODE style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 13px; line-height: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; vertical-align: baseline; white-space: inherit;"&gt;&lt;SPAN class="typ" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(43, 145, 175);"&gt;CentOS&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(125, 39, 39);"&gt;7.3&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;
devtoolset&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;-&lt;/SPAN&gt;&lt;SPAN class="lit" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(125, 39, 39);"&gt;6&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;
mkl&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;-&lt;/SPAN&gt;&lt;SPAN class="lit" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(125, 39, 39);"&gt;2017.2&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;.&lt;/SPAN&gt;&lt;SPAN class="lit" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(125, 39, 39);"&gt;174.tar&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline; color: rgb(48, 51, 54);"&gt;bz2&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P style="margin-bottom: 1em; border: 0px; font-variant-numeric: inherit; font-stretch: inherit; font-size: 15px; line-height: inherit; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; vertical-align: baseline; clear: both; color: rgb(36, 39, 41);"&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 22:55:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-Intel-MKL-and-libdl-with-gold-linker/m-p/1143745#M26502</guid>
      <dc:creator>Andrew_T_</dc:creator>
      <dc:date>2017-07-07T22:55:21Z</dc:date>
    </item>
    <item>
      <title>Andrew, please try to change</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-Intel-MKL-and-libdl-with-gold-linker/m-p/1143746#M26503</link>
      <description>&lt;P&gt;Andrew, please try to change the MKL_LIB like as follows:&amp;nbsp;&lt;SPAN style="color: rgb(96, 96, 96); font-family: Consolas, &amp;quot;Lucida Console&amp;quot;, Menlo, Monaco, &amp;quot;DejaVu Sans Mono&amp;quot;, monospace, sans-serif; font-size: 16.26px;"&gt;MKL_LIB=$MKL_INSTALL_DIR/lib/&lt;STRONG&gt;intel64&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jul 2017 18:56:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-Intel-MKL-and-libdl-with-gold-linker/m-p/1143746#M26503</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2017-07-09T18:56:20Z</dc:date>
    </item>
    <item>
      <title>The way we reposition the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-Intel-MKL-and-libdl-with-gold-linker/m-p/1143747#M26504</link>
      <description>&lt;P&gt;The way we reposition the libraries this would have no effect, but just in case:&lt;/P&gt;

&lt;P&gt;1. I tried appending intel64, and it did not fix it (we still get an identical error).&lt;/P&gt;

&lt;P&gt;2. I also tried with a vanilla install of&amp;nbsp;l_mkl_2017.3.196.tgz, without any processing and it did not fix it (we still get an identical error).&lt;/P&gt;

&lt;P&gt;Any other ideas?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 18:13:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-Intel-MKL-and-libdl-with-gold-linker/m-p/1143747#M26504</guid>
      <dc:creator>Andrew_T_</dc:creator>
      <dc:date>2017-07-10T18:13:49Z</dc:date>
    </item>
    <item>
      <title>Hi Andrew,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-Intel-MKL-and-libdl-with-gold-linker/m-p/1143748#M26505</link>
      <description>&lt;P&gt;Hi Andrew,&lt;/P&gt;

&lt;P&gt;I did some&amp;nbsp;investigation in&amp;nbsp;internet. &amp;nbsp;it seems because that gold linker&lt;/P&gt;

&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/3476093/replacing-ld-with-gold-any-experience"&gt;https://stackoverflow.com/questions/3476093/replacing-ld-with-gold-any-experience&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;At the moment it is compiling bigger projects on Ubuntu 10.04. Here you can install and integrate it easily with the &lt;CODE&gt;&lt;FONT face="Courier New"&gt;binutils-gold&lt;/FONT&gt;&lt;/CODE&gt; package (if you remove that package, you get your old &lt;CODE&gt;&lt;FONT face="Courier New"&gt;ld&lt;/FONT&gt;&lt;/CODE&gt;). Gcc will automatically use gold then.&lt;/P&gt;

&lt;P&gt;Some experiences:&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;gold doesn't search in &lt;CODE&gt;&lt;FONT face="Courier New"&gt;/usr/local/lib&lt;/FONT&gt;&lt;/CODE&gt;&lt;/LI&gt;
	&lt;LI&gt;gold doesn't assume libs like pthread or rt, had to add them by hand&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;While undefined reference to 'malloc'&amp;nbsp; was not from MKL , but from&amp;nbsp;system library , like libc&lt;/P&gt;

&lt;P&gt;&lt;A href="mailto:yhu5@kbl01-ub:~/GEMV$"&gt;yhu5@kbl01-ub:~/GEMV$&lt;/A&gt; nm -Do /lib/x86_64-linux-gnu/libc.so.6 | grep malloc&lt;BR /&gt;
	/lib/x86_64-linux-gnu/libc.so.6:0000000000086990 T __libc_malloc&lt;BR /&gt;
	&lt;STRONG&gt;/lib/x86_64-linux-gnu/libc.so.6:0000000000086990 T malloc&lt;/STRONG&gt;&lt;BR /&gt;
	/lib/x86_64-linux-gnu/libc.so.6:0000000000086b20 W malloc_get_state&lt;BR /&gt;
	/lib/x86_64-linux-gnu/libc.so.6:00000000003c1af0 V __malloc_hook&lt;BR /&gt;
	/lib/x86_64-linux-gnu/libc.so.6:0000000000089c50 W malloc_info&lt;BR /&gt;
	/lib/x86_64-linux-gnu/libc.so.6:00000000003c3790 V __malloc_initialize_hook&lt;BR /&gt;
	/lib/x86_64-linux-gnu/libc.so.6:00000000000868a0 W malloc_set_state&lt;BR /&gt;
	/lib/x86_64-linux-gnu/libc.so.6:00000000000892f0 W malloc_stats&lt;BR /&gt;
	/lib/x86_64-linux-gnu/libc.so.6:0000000000088f00 W malloc_trim&lt;BR /&gt;
	/lib/x86_64-linux-gnu/libc.so.6:0000000000087950 W malloc_usable_size&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;So could you please add such library explicitly in link line , for example&lt;/P&gt;

&lt;P&gt;gcc -L$MKL_LIB -fuse-ld=gold t.o -lmkl_rt -ldl -lc -lpthread&amp;nbsp;&amp;nbsp; etc.&lt;/P&gt;

&lt;P&gt;and see if there is any change.&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;BR /&gt;
	Ying&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 01:30:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-Intel-MKL-and-libdl-with-gold-linker/m-p/1143748#M26505</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2017-07-11T01:30:11Z</dc:date>
    </item>
    <item>
      <title>The libc standard library is</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-Intel-MKL-and-libdl-with-gold-linker/m-p/1143749#M26506</link>
      <description>&lt;P&gt;The libc standard library is linked in by default by the linker, but I tried adding it explicitly anyway (-lc), and it had no effect - we still get the same error.&lt;/P&gt;

&lt;P&gt;I don't think the link errors are related to pthread, but I also tried including -lpthread (and -pthread) and it had no effect - we still get the same error.&lt;/P&gt;

&lt;P&gt;To be clear, all the other third party libraries and our own libraries link fine. &amp;nbsp;It is only MKL that has this issue. &amp;nbsp;I suspect libmkl_rt.so has some non-standard property in its symbol table that is causing this issue, and it is exposed by using gold/CentOS/devtoolset-6.&lt;/P&gt;

&lt;P&gt;So that you can reproduce the problem locally, I have created a small docker image that demonstrates the issue. &amp;nbsp;Find attached mkldocker.tar.gz&lt;/P&gt;

&lt;P&gt;To use it:&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$ tar xvf mkldocker.tar.gz&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$ cd mkldocker&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$ docker build -t mkldocker .&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$ docker run -ti mkldocker&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;# bash build.sh&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; ./libmkl_rt.so: error: undefined reference to 'calloc'&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; ./libmkl_rt.so: error: undefined reference to 'realloc'&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; ./libmkl_rt.so: error: undefined reference to 'malloc'&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; ./libmkl_rt.so: error: undefined reference to 'free'&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 19:51:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-Intel-MKL-and-libdl-with-gold-linker/m-p/1143749#M26506</guid>
      <dc:creator>Andrew_T_</dc:creator>
      <dc:date>2017-07-11T19:51:51Z</dc:date>
    </item>
    <item>
      <title>I have also posted the docker</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-Intel-MKL-and-libdl-with-gold-linker/m-p/1143750#M26507</link>
      <description>&lt;P&gt;I have also posted the docker here:&lt;/P&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$ wget&amp;nbsp;&lt;A data-saferedirecturl="https://www.google.com/url?hl=en&amp;amp;q=http://www.tomazos.com/mkldocker.tar.gz&amp;amp;source=gmail&amp;amp;ust=1499889650415000&amp;amp;usg=AFQjCNFgk3r1_18aYv7MnImxACiVCQotMQ" href="http://www.tomazos.com/mkldocker.tar.gz" style="color: rgb(17, 85, 204);" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://www.tomazos.com/" target="_blank"&gt;http://www.tomazos.com/&lt;/A&gt;&lt;WBR /&gt;mkldocker.tar.gz&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Jul 2017 20:01:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-Intel-MKL-and-libdl-with-gold-linker/m-p/1143750#M26507</guid>
      <dc:creator>Andrew_T_</dc:creator>
      <dc:date>2017-07-11T20:01:29Z</dc:date>
    </item>
    <item>
      <title>Hi Andrew,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-Intel-MKL-and-libdl-with-gold-linker/m-p/1143751#M26508</link>
      <description>&lt;P&gt;Hi Andrew,&lt;/P&gt;

&lt;P&gt;I&amp;nbsp;haven't centos system so can't check.&amp;nbsp; But could you please&amp;nbsp; check if the symbol "malloc" was in your libc library?&lt;/P&gt;

&lt;P&gt;or when gold linker, check with libc library it will use?&lt;/P&gt;

&lt;P&gt;nm -Do /lib/x86_64-linux-gnu/libc.so.6 | grep malloc&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 05:17:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-Intel-MKL-and-libdl-with-gold-linker/m-p/1143751#M26508</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2017-07-12T05:17:12Z</dc:date>
    </item>
    <item>
      <title>Hi Ying,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-Intel-MKL-and-libdl-with-gold-linker/m-p/1143752#M26509</link>
      <description>&lt;P&gt;Hi Ying,&lt;/P&gt;

&lt;P&gt;The step-by-step instructions I gave to reproduce the issue in the previous message will work from any linux system, you do not need a centos system. &amp;nbsp;The reason is that docker will transparently download and run a centos system in a virtualized sandbox for you. &amp;nbsp;After you follow the instructions you will be left on a bash prompt inside that virtualized sandbox. &amp;nbsp;You can then run whatever commands you see fit to debug the Intel MKL fault (including, for example, running nm on libc.so to see if it provides malloc).&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Andrew.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 09:00:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-Intel-MKL-and-libdl-with-gold-linker/m-p/1143752#M26509</guid>
      <dc:creator>Andrew_T_</dc:creator>
      <dc:date>2017-07-12T09:00:46Z</dc:date>
    </item>
    <item>
      <title>Hi Andrew,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-Intel-MKL-and-libdl-with-gold-linker/m-p/1143753#M26510</link>
      <description>&lt;P&gt;Hi Andrew,&lt;/P&gt;

&lt;P&gt;Maybe becasue&amp;nbsp;my network&amp;nbsp;issue, I have&amp;nbsp;problem to make the docker to run correctly. We did test&amp;nbsp;several other machines (including Ubuntu, Redhad etc) &amp;nbsp;at first, we can't reproduce the problem.&amp;nbsp;&amp;nbsp;But i find way to reproduce&amp;nbsp;your issue. The key is the toolchain.&amp;nbsp; here is what i find:&lt;/P&gt;

&lt;P&gt;On one&amp;nbsp; machine running Rad hat,&lt;/P&gt;

&lt;P&gt;case 1:&amp;nbsp; originally&amp;nbsp;I had gcc&amp;nbsp;&amp;nbsp; gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC).&amp;nbsp; the default ld support gold linker already&lt;/P&gt;

&lt;P&gt;&amp;nbsp;The command &amp;nbsp;gcc -L. -fuse-ld=gold t.o -lmkl_rt -ldl&amp;nbsp; just run fine.&lt;/P&gt;

&lt;P&gt;&lt;A href="mailto:yhu5@hsw-ep01"&gt;yhu5@hsw-ep01&lt;/A&gt; mkldocker]$ ldd a.out&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; linux-vdso.so.1 =&amp;gt;&amp;nbsp; (0x00007ffdd47eb000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libmkl_rt.so =&amp;gt; not found&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libdl.so.2 =&amp;gt; /lib64/libdl.so.2 (0x00007fa2b02b6000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libc.so.6 =&amp;gt; /lib64/libc.so.6 (0x00007fa2afef5000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /lib64/ld-linux-x86-64.so.2 (0x00007fa2b04e5000)&lt;/P&gt;

&lt;P&gt;Case 2:&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;yum install -y devtoolset-6-toolchain&lt;/P&gt;

&lt;P&gt;. /opt/rh/devtoolset-6/enable&lt;/P&gt;

&lt;P&gt;[root@hsw-ep01 mkldocker]# gcc -v&lt;BR /&gt;
	Using built-in specs.&lt;BR /&gt;
	COLLECT_GCC=gcc&lt;BR /&gt;
	COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-6/root/usr/libexec/gcc/x86_64-redhat-linux/6.2.1/lto-wrapper&lt;BR /&gt;
	Target: x86_64-redhat-linux&lt;BR /&gt;
	Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/opt/rh/devtoolset-6/root/usr --mandir=/opt/rh/devtoolset-6/root/usr/share/man --infodir=/opt/rh/devtoolset-6/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-plugin --with-linker-hash-style=gnu --enable-initfini-array --disable-libgcj --with-default-libstdcxx-abi=gcc4-compatible --with-isl=/builddir/build/BUILD/gcc-6.2.1-20160916/obj-x86_64-redhat-linux/isl-install --enable-libmpx --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux&lt;BR /&gt;
	Thread model: posix&lt;BR /&gt;
	&lt;STRONG&gt;gcc version 6.2.1 20160916 &lt;/STRONG&gt;(Red Hat 6.2.1-3) (GCC)&lt;/P&gt;

&lt;P&gt;[root@hsw-ep01 mkldocker]# gcc -L. -fuse-ld=gold t.c -lmkl_rt -ldl&lt;BR /&gt;
	./libmkl_rt.so: error: undefined reference to 'calloc'&lt;BR /&gt;
	./libmkl_rt.so: error: undefined reference to 'realloc'&lt;BR /&gt;
	./libmkl_rt.so: error: undefined reference to 'malloc'&lt;BR /&gt;
	./libmkl_rt.so: error: undefined reference to 'free'&lt;BR /&gt;
	collect2: error: ld returned 1 exit status&lt;BR /&gt;
	[root@hsw-ep01 mkldocker]# gcc -L. -fuse-ld=gold t.c -lmkl_rt -ldl -lc&lt;BR /&gt;
	./libmkl_rt.so: error: undefined reference to 'calloc'&lt;BR /&gt;
	./libmkl_rt.so: error: undefined reference to 'free'&lt;BR /&gt;
	collect2: error: ld returned 1 exit status&lt;/P&gt;

&lt;P&gt;As you see the libc seem solve the symbols&amp;nbsp;'T' option, but haven't solve the symbol defined with 'W'&lt;/P&gt;

&lt;P&gt;[yhu5@hsw-ep01 mkldocker]$ nm -Do /lib64/libc.so.6 | grep malloc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /lib64/libc.so.6:000000000007ff70 T __libc_malloc&lt;BR /&gt;
	/lib64/libc.so.6:000000000007ff70 T malloc&lt;BR /&gt;
	/lib64/libc.so.6:0000000000080170 W malloc_get_state&lt;BR /&gt;
	/lib64/libc.so.6:00000000003ba740 V __malloc_hook&lt;BR /&gt;
	/lib64/libc.so.6:0000000000082580 T malloc_info&lt;BR /&gt;
	/lib64/libc.so.6:00000000003bca40 V __malloc_initialize_hook&lt;BR /&gt;
	/lib64/libc.so.6:0000000000081790 W malloc_set_state&lt;BR /&gt;
	/lib64/libc.so.6:0000000000082340 W malloc_stats&lt;BR /&gt;
	/lib64/libc.so.6:0000000000081fc0 W malloc_trim&lt;BR /&gt;
	/lib64/libc.so.6:0000000000080c10 W malloc_usable_size&lt;BR /&gt;
	[yhu5@hsw-ep01 mkldocker]$ nm -Do /lib64/libc.so.6 | grep calloc&lt;BR /&gt;
	/lib64/libc.so.6:0000000000080960 W calloc&lt;BR /&gt;
	/lib64/libc.so.6:0000000000080960 T __libc_calloc&lt;/P&gt;

&lt;P&gt;further, use the workaround:&lt;/P&gt;

&lt;P&gt;[root@hsw-ep01 mkldocker]# gcc -L. -fuse-ld=gold t.c -lmkl_rt -ldl -lc &lt;STRONG&gt;-Wl,--allow-shlib-undefined&lt;/STRONG&gt;&lt;BR /&gt;
	[root@hsw-ep01 mkldocker]# ldd a.out&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; linux-vdso.so.1 =&amp;gt;&amp;nbsp; (0x00007ffe73184000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libmkl_rt.so =&amp;gt; /opt/intel/compilers_and_libraries_2017.4.196/linux/mkl/lib/intel64_lin/libmkl_rt.so (0x00007fa6a09f6000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libdl.so.2 =&amp;gt; /lib64/libdl.so.2 (0x00007fa6a07c9000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libc.so.6 =&amp;gt; /lib64/libc.so.6 (0x00007fa6a0408000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /lib64/ld-linux-x86-64.so.2 (0x00007fa6a1008000)&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;So the issue seems not mkl bug, but&lt;FONT color="#1f497d" face="Calibri"&gt;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;Some specific in higher version of GCC and Gold linker.&amp;nbsp;&amp;nbsp;I will look the link in details and keep you update if any result. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;Would you please try the command:&lt;/P&gt;

&lt;P&gt;gcc -L. -fuse-ld=gold t.c -lmkl_rt -ldl -lc &lt;STRONG&gt;-Wl,--allow-shlib-undefined.&amp;nbsp; &lt;/STRONG&gt;(my test show it should work without problem)&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 06:41:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-Intel-MKL-and-libdl-with-gold-linker/m-p/1143753#M26510</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2017-07-13T06:41:00Z</dc:date>
    </item>
    <item>
      <title>It's great that you have</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-Intel-MKL-and-libdl-with-gold-linker/m-p/1143754#M26511</link>
      <description>&lt;P&gt;It's great that you have reproduced the issue.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;The workaround you have suggested (--allow-shlib-undefined) is unacceptable as it would mean ignoring real correct undefined symbol errors between other libraries at link time, which would show up as run-time errors.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;The problem is specific to MKL, because, as I said, we haven't had any problems with any other third party libraries. &amp;nbsp;It looks like because of this bug it only occurs with devtoolset-6+gold in combination with MKL. &amp;nbsp;My guess is that libmkl_rt.so is compiled with icc, and icc has produced a symbol table with something unusual in it, and that unusual thing is incompatible with devtoolset-6+gold. &amp;nbsp;As devtoolset-6 is becoming the standard toolchain on the whole Red Hat family of Linux distributions, and gold is becoming prefered as the standard linker (as it is much faster than the venerable ld.bfd), I think it is essential to make MKL compatible with it.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;So we would expect Intel to keep investigating to identify exactly what is unusual about the libmkl_rt.so symbol table that is causing this error.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 11:32:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-Intel-MKL-and-libdl-with-gold-linker/m-p/1143754#M26511</guid>
      <dc:creator>Andrew_T_</dc:creator>
      <dc:date>2017-07-13T11:32:38Z</dc:date>
    </item>
    <item>
      <title>Hi Andrew,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-Intel-MKL-and-libdl-with-gold-linker/m-p/1143755#M26512</link>
      <description>&lt;P&gt;Hi Andrew,&lt;/P&gt;

&lt;P&gt;yes, we&amp;nbsp;will try to find the root cause and&amp;nbsp;update you if any results.&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 03:15:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-Intel-MKL-and-libdl-with-gold-linker/m-p/1143755#M26512</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2017-07-26T03:15:08Z</dc:date>
    </item>
    <item>
      <title>Hi Andrew,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-Intel-MKL-and-libdl-with-gold-linker/m-p/1143756#M26513</link>
      <description>&lt;P&gt;Hi Andrew,&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size:11.0pt;font-family:&amp;quot;Calibri&amp;quot;,sans-serif;
color:#44546A"&gt;We may found the cause.&amp;nbsp; The issue seem no relate&amp;nbsp;to MKL internal, this is how gold linker behaves.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size:11.0pt;font-family:&amp;quot;Calibri&amp;quot;,sans-serif;
color:#44546A"&gt;We saw&amp;nbsp; the gold linker &lt;A href="https://sourceware.org/bugzilla/show_bug.cgi?id=10238"&gt;&lt;U&gt;&lt;FONT color="#0000ff"&gt;bug&lt;/FONT&gt;&lt;/U&gt;&lt;/A&gt; (&lt;B&gt;Gold linker does not resolve symbols using &lt;/B&gt;&lt;STRONG&gt;indirect&lt;/STRONG&gt;&lt;B&gt; dependencies&lt;/B&gt;) is closed as WONTFIX.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt;"&gt;Here is some details:&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size:11.0pt;font-family:&amp;quot;Calibri&amp;quot;,sans-serif;
color:#44546A"&gt;When i try to solve the unresolved symbols (malloc, calloc, realloc free) &amp;nbsp;by add -lc&amp;nbsp;, which is supposed to work, but still have calloc and free unresolved.&amp;nbsp; Thing is, when we’re linking like below:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;B&gt;&lt;I&gt;&lt;SPAN style="font-size:11.0pt;font-family:&amp;quot;Calibri&amp;quot;,sans-serif"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ gcc -L$MKL_LIB -fuse-ld=gold t.o -lmkl_rt -ldl -lc&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size:11.0pt;font-family:&amp;quot;Calibri&amp;quot;,sans-serif;
color:#44546A"&gt;gold linker, while resolving symbols, only takes the first-in-chain library that contains it, in this case it’s libdl – but it’s also &lt;B&gt;U&lt;/B&gt;:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt 36pt;"&gt;&lt;B&gt;&lt;I&gt;&lt;SPAN style="font-size:
11.0pt;font-family:&amp;quot;Calibri&amp;quot;,sans-serif"&gt;&lt;FONT color="#000000"&gt;$ nm -gA /lib64/libdl-2.17.so|grep -E " (malloc|realloc|calloc|free)"&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt 36pt;"&gt;&lt;I&gt;&lt;SPAN style="font-size:11.0pt;
font-family:&amp;quot;Calibri&amp;quot;,sans-serif"&gt;&lt;FONT color="#000000"&gt;/lib64/libdl-2.17.so:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; U calloc@@GLIBC_2.2.5&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt 36pt;"&gt;&lt;I&gt;&lt;SPAN style="font-size:11.0pt;
font-family:&amp;quot;Calibri&amp;quot;,sans-serif"&gt;&lt;FONT color="#000000"&gt;/lib64/libdl-2.17.so:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; U free@@GLIBC_2.2.5&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size:11.0pt;font-family:&amp;quot;Calibri&amp;quot;,sans-serif;
color:#44546A"&gt;That’s why&amp;nbsp;we saw “undefined reference” for &lt;B&gt;calloc&lt;/B&gt; and &lt;B&gt;free&lt;/B&gt; after&amp;nbsp;added -ldl and -lc and didn’t see it for &lt;B&gt;malloc&lt;/B&gt; and and &lt;B&gt;realloc&lt;/B&gt; which were resolved in libc.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size:11.0pt;font-family:&amp;quot;Calibri&amp;quot;,sans-serif;
color:#44546A"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size:11.0pt;font-family:&amp;quot;Calibri&amp;quot;,sans-serif;
color:#44546A"&gt;This behavior is opposite to regular ld linker which goes thru all libs.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size:11.0pt;font-family:&amp;quot;Calibri&amp;quot;,sans-serif;
color:#44546A"&gt;Also for gold linker you need to supply all libs, which symbols were used directly; it doesn’t find it “automagically”.&lt;/SPAN&gt;&lt;/P&gt;

&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;
	&lt;TBODY&gt;
		&lt;TR&gt;
			&lt;TD style="width:213px;"&gt;
				&lt;P&gt;Symbol&lt;/P&gt;
			&lt;/TD&gt;
			&lt;TD style="width:213px;"&gt;
				&lt;P&gt;libmkl_rt.so&lt;/P&gt;
			&lt;/TD&gt;
			&lt;TD style="width:213px;"&gt;
				&lt;P&gt;libdl.so&lt;/P&gt;
			&lt;/TD&gt;
			&lt;TD style="width:213px;"&gt;
				&lt;P&gt;libc.so&lt;/P&gt;
			&lt;/TD&gt;
		&lt;/TR&gt;
		&lt;TR&gt;
			&lt;TD style="width:213px;"&gt;
				&lt;P&gt;&lt;STRONG&gt;calloc&lt;/STRONG&gt;&lt;/P&gt;
			&lt;/TD&gt;
			&lt;TD style="width:213px;"&gt;
				&lt;P&gt;U&lt;/P&gt;
			&lt;/TD&gt;
			&lt;TD style="width:213px;"&gt;
				&lt;P&gt;U&lt;/P&gt;
			&lt;/TD&gt;
			&lt;TD style="width:213px;"&gt;
				&lt;P&gt;W&lt;/P&gt;
			&lt;/TD&gt;
		&lt;/TR&gt;
		&lt;TR&gt;
			&lt;TD style="width:213px;"&gt;
				&lt;P&gt;&lt;STRONG&gt;realloc&lt;/STRONG&gt;&lt;/P&gt;
			&lt;/TD&gt;
			&lt;TD style="width:213px;"&gt;
				&lt;P&gt;U&lt;/P&gt;
			&lt;/TD&gt;
			&lt;TD style="width:213px;"&gt;
				&lt;P&gt;&amp;nbsp;&lt;/P&gt;
			&lt;/TD&gt;
			&lt;TD style="width:213px;"&gt;
				&lt;P&gt;T&lt;/P&gt;
			&lt;/TD&gt;
		&lt;/TR&gt;
		&lt;TR&gt;
			&lt;TD style="width:213px;"&gt;
				&lt;P&gt;&lt;STRONG&gt;malloc&lt;/STRONG&gt;&lt;/P&gt;
			&lt;/TD&gt;
			&lt;TD style="width:213px;"&gt;
				&lt;P&gt;U&lt;/P&gt;
			&lt;/TD&gt;
			&lt;TD style="width:213px;"&gt;
				&lt;P&gt;&amp;nbsp;&lt;/P&gt;
			&lt;/TD&gt;
			&lt;TD style="width:213px;"&gt;
				&lt;P&gt;T&lt;/P&gt;
			&lt;/TD&gt;
		&lt;/TR&gt;
		&lt;TR&gt;
			&lt;TD style="width:213px;"&gt;
				&lt;P&gt;&lt;STRONG&gt;Free&lt;/STRONG&gt;&lt;/P&gt;
			&lt;/TD&gt;
			&lt;TD style="width:213px;"&gt;
				&lt;P&gt;U&lt;/P&gt;
			&lt;/TD&gt;
			&lt;TD style="width:213px;"&gt;
				&lt;P&gt;U&lt;/P&gt;
			&lt;/TD&gt;
			&lt;TD style="width:213px;"&gt;
				&lt;P&gt;T&lt;/P&gt;
			&lt;/TD&gt;
		&lt;/TR&gt;
	&lt;/TBODY&gt;
&lt;/TABLE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size:11.0pt;font-family:&amp;quot;Calibri&amp;quot;,sans-serif;
color:#44546A"&gt;So to solve&amp;nbsp; problem, just&amp;nbsp;add -lc&amp;nbsp; direct behind of -lmkl_rt&amp;nbsp; to linker like (switch –ldl and –lc options to linker)&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;B&gt;&lt;I&gt;&lt;SPAN style="font-size:11.0pt;font-family:&amp;quot;Calibri&amp;quot;,sans-serif"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ gcc -L. -fuse-ld=gold t.o -lmkl_rt -lc -ldl&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;B&gt;&lt;I&gt;&lt;SPAN style="font-size:11.0pt;font-family:&amp;quot;Calibri&amp;quot;,sans-serif"&gt;&lt;FONT color="#000000"&gt;​Please let us know if it work for you.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;

&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;B&gt;&lt;I&gt;&lt;SPAN style="font-size:11.0pt;font-family:&amp;quot;Calibri&amp;quot;,sans-serif"&gt;&lt;FONT color="#000000"&gt;​Best Regard&lt;BR /&gt;
	&lt;BR /&gt;
	Ying &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/B&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 02:20:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-Intel-MKL-and-libdl-with-gold-linker/m-p/1143756#M26513</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2017-07-27T02:20:38Z</dc:date>
    </item>
  </channel>
</rss>

