<?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 Quote:Steve Lionel (Intel) in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/quot-dlopen-quot-warning-when-using-quot-static-quot/m-p/1055848#M21414</link>
    <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Steve Lionel (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;MKL uses dlopen to dynamically load different code depending on the environment. ld is noticing this and giving you the warning since if there are different glibc versions floating around in an application there may be issues.&lt;/P&gt;

&lt;P&gt;I am going to move this thread to the MKL forum where they may have other comments, but I will say that in general full static linking is becoming increasingly unattainable.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I'm in the same shoe as the original poster: I need to create a fully static executable. While I realize that fully static linking is becoming harder, it is in general not impossible. But if I want to use MKL then it seems it is :-(.&lt;/P&gt;

&lt;P&gt;I have looked at the content of the static mkl libs with nm, and all functions for all hardware are there (libmkl_core.a is &amp;gt;400MB). What is the need for dlopen in this case?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;--Laci&lt;/P&gt;</description>
    <pubDate>Sat, 26 Sep 2015 04:11:46 GMT</pubDate>
    <dc:creator>Laszlo_Ladanyi</dc:creator>
    <dc:date>2015-09-26T04:11:46Z</dc:date>
    <item>
      <title>"dlopen" warning when using "-static"</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/quot-dlopen-quot-warning-when-using-quot-static-quot/m-p/1055844#M21410</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;with the makefile&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;FC =ifort -mkl -warn nounused -warn declarations -static -O3 -parallel
SRC :=
OwnFlag = $(LibPath)$(Own)OwnLib_ifort.a
LibPath = ~/.local/lib/Fortran/
Own = OwnFunctions/
MKLPATH=$(MKLROOT)/lib/intel64/
MKLINCLUDE=$(MKLPATH)/include/

MKL= -L$(MKLPATH) -I$(MKLINCLUDE) -lmkl_blas95_lp64 -lmkl_lapack95_lp64 -Wl,--start-group $(MKLPATH)/libmkl_intel_lp64.a $(MKLPATH)/libmkl_intel_thread.a $(MKLPATH)/libmkl_core.a -Wl,--end-group -liomp5 -lpthread

.SUFFIXES: 
.SUFFIXES: .f90 .f .for

include ../Moduls/Moduls.mk
include Main.mk

OBJS = $(subst .f90,.o,$(SRC))

%.o: %.f90
	$(FC) -c -o $@ $&amp;lt; -I $(LibPath)$(Own)

aPROGRAM: $(OBJS)
	$(FC) -o $@ $^ $(OwnFlag) $(MKL)


clean:
	$(MAKE) -C ../Moduls
	rm *.mod
	rm *.o
tags:
	etags Main.f90 ../Moduls/*.f90&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I am getting the error message:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;opt/intel/composer_xe_2013_sp1.3.174/mkl/lib/intel64//libmkl_core.a(mkl_aa_fw_load_orsl_lite_lib.o): In function `mkl_aa_fw_load_orsl_lite_lib':&lt;BR /&gt;
	../../../../serv/offload/framework/core/mkl_aa_fw_load_orsl_lite_lib.c:(.text+0xbe): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking&lt;/P&gt;

&lt;P&gt;I want to have a fully statically linked application, and it occurs to me that this is not the case.&lt;/P&gt;

&lt;P&gt;Am I right, and if yes, any suggestions to solve that???&lt;/P&gt;

&lt;P&gt;I am using ifort 14.0.3.&lt;/P&gt;

&lt;P&gt;Thanks you very much.&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2015 05:18:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/quot-dlopen-quot-warning-when-using-quot-static-quot/m-p/1055844#M21410</guid>
      <dc:creator>may_ka</dc:creator>
      <dc:date>2015-06-28T05:18:18Z</dc:date>
    </item>
    <item>
      <title>All you could do in addition</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/quot-dlopen-quot-warning-when-using-quot-static-quot/m-p/1055845#M21411</link>
      <description>&lt;P&gt;All you could do in addition is to assure that you have installed all possible relevant static libraries for your OS.&amp;nbsp; If you have available libiomp5.a, you would include it specifically, or, if avoiding shared library is more important than -parallel, you would remove that option.and use mkl sequential.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2015 11:58:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/quot-dlopen-quot-warning-when-using-quot-static-quot/m-p/1055845#M21411</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2015-06-28T11:58:26Z</dc:date>
    </item>
    <item>
      <title>What this warning is telling</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/quot-dlopen-quot-warning-when-using-quot-static-quot/m-p/1055846#M21412</link>
      <description>&lt;P&gt;MKL uses dlopen to dynamically load different code depending on the environment. ld is noticing this and giving you the warning since if there are different glibc versions floating around in an application there may be issues.&lt;/P&gt;

&lt;P&gt;I am going to move this thread to the MKL forum where they may have other comments, but I will say that in general full static linking is becoming increasingly unattainable.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2015 15:01:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/quot-dlopen-quot-warning-when-using-quot-static-quot/m-p/1055846#M21412</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2015-06-29T15:01:00Z</dc:date>
    </item>
    <item>
      <title>Mkl link advisor gives sample</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/quot-dlopen-quot-warning-when-using-quot-static-quot/m-p/1055847#M21413</link>
      <description>Mkl link advisor gives sample build commands for static linkable mkl libraries.</description>
      <pubDate>Mon, 29 Jun 2015 18:31:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/quot-dlopen-quot-warning-when-using-quot-static-quot/m-p/1055847#M21413</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2015-06-29T18:31:02Z</dc:date>
    </item>
    <item>
      <title>Quote:Steve Lionel (Intel)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/quot-dlopen-quot-warning-when-using-quot-static-quot/m-p/1055848#M21414</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Steve Lionel (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;MKL uses dlopen to dynamically load different code depending on the environment. ld is noticing this and giving you the warning since if there are different glibc versions floating around in an application there may be issues.&lt;/P&gt;

&lt;P&gt;I am going to move this thread to the MKL forum where they may have other comments, but I will say that in general full static linking is becoming increasingly unattainable.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I'm in the same shoe as the original poster: I need to create a fully static executable. While I realize that fully static linking is becoming harder, it is in general not impossible. But if I want to use MKL then it seems it is :-(.&lt;/P&gt;

&lt;P&gt;I have looked at the content of the static mkl libs with nm, and all functions for all hardware are there (libmkl_core.a is &amp;gt;400MB). What is the need for dlopen in this case?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;--Laci&lt;/P&gt;</description>
      <pubDate>Sat, 26 Sep 2015 04:11:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/quot-dlopen-quot-warning-when-using-quot-static-quot/m-p/1055848#M21414</guid>
      <dc:creator>Laszlo_Ladanyi</dc:creator>
      <dc:date>2015-09-26T04:11:46Z</dc:date>
    </item>
    <item>
      <title>I used the MKL link advisor,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/quot-dlopen-quot-warning-when-using-quot-static-quot/m-p/1055849#M21415</link>
      <description>&lt;P&gt;I used the MKL link advisor, but still get the above mentioned warning. However, the executable seems to work fine. &amp;nbsp;`ldd` on the executable says that it's not a dynamically linked binary. &amp;nbsp;So I can ignore the warning?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 17:44:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/quot-dlopen-quot-warning-when-using-quot-static-quot/m-p/1055849#M21415</guid>
      <dc:creator>Marius_D_</dc:creator>
      <dc:date>2016-12-02T17:44:43Z</dc:date>
    </item>
    <item>
      <title>Dear all, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/quot-dlopen-quot-warning-when-using-quot-static-quot/m-p/1055850#M21416</link>
      <description>&lt;P&gt;Dear all,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Yes, &amp;nbsp;the warning as &amp;nbsp;can be safely ignored when the executable work fine. &amp;nbsp;We will remove such warning in static library in further release.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 01:50:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/quot-dlopen-quot-warning-when-using-quot-static-quot/m-p/1055850#M21416</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2016-12-13T01:50:25Z</dc:date>
    </item>
  </channel>
</rss>

