<?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 wrong ELF class in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/wrong-ELF-class/m-p/860536#M7473</link>
    <description>Hello,
&lt;BR /&gt;
&lt;BR /&gt;I installed the Intel Math Kernel Library 9.0 for Linux on my "AMD Turion 64" and then compiled the f95 wrappers for LAPACK in mkl/9.0/interfaces/lapack95 with "make PLAT=lnx32e lib".
&lt;BR /&gt;
&lt;BR /&gt;I can compile and link my files fine with:
&lt;BR /&gt;
&lt;BR /&gt;$(MKL_LIB_LAPACK95)/libmkl_lapack95.a -L$(MKL_LIB_ROOT)/ -lmkl_lapack -lmkl_em64t -lguide -lpthread
&lt;BR /&gt;
&lt;BR /&gt;and the .bashrc file includes:
&lt;BR /&gt;
&lt;BR /&gt;export MKL_LIB_ROOT=/opt/intel/mkl/9.0/lib/em64t
&lt;BR /&gt;export MKL_LIB_LAPACK95=/opt/intel/mkl/9.0/interfaces/lapack95
&lt;BR /&gt;
&lt;BR /&gt;but when I execute, it says:
&lt;BR /&gt;
&lt;BR /&gt;: error while loading shared libraries: libguide.so: wrong ELF class: ELFCLASS32
&lt;BR /&gt;
&lt;BR /&gt;What is wrong? Thanks for help!
&lt;BR /&gt;
&lt;BR /&gt;Joe</description>
    <pubDate>Wed, 23 May 2007 18:24:17 GMT</pubDate>
    <dc:creator>joleho</dc:creator>
    <dc:date>2007-05-23T18:24:17Z</dc:date>
    <item>
      <title>wrong ELF class</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/wrong-ELF-class/m-p/860536#M7473</link>
      <description>Hello,
&lt;BR /&gt;
&lt;BR /&gt;I installed the Intel Math Kernel Library 9.0 for Linux on my "AMD Turion 64" and then compiled the f95 wrappers for LAPACK in mkl/9.0/interfaces/lapack95 with "make PLAT=lnx32e lib".
&lt;BR /&gt;
&lt;BR /&gt;I can compile and link my files fine with:
&lt;BR /&gt;
&lt;BR /&gt;$(MKL_LIB_LAPACK95)/libmkl_lapack95.a -L$(MKL_LIB_ROOT)/ -lmkl_lapack -lmkl_em64t -lguide -lpthread
&lt;BR /&gt;
&lt;BR /&gt;and the .bashrc file includes:
&lt;BR /&gt;
&lt;BR /&gt;export MKL_LIB_ROOT=/opt/intel/mkl/9.0/lib/em64t
&lt;BR /&gt;export MKL_LIB_LAPACK95=/opt/intel/mkl/9.0/interfaces/lapack95
&lt;BR /&gt;
&lt;BR /&gt;but when I execute, it says:
&lt;BR /&gt;
&lt;BR /&gt;: error while loading shared libraries: libguide.so: wrong ELF class: ELFCLASS32
&lt;BR /&gt;
&lt;BR /&gt;What is wrong? Thanks for help!
&lt;BR /&gt;
&lt;BR /&gt;Joe</description>
      <pubDate>Wed, 23 May 2007 18:24:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/wrong-ELF-class/m-p/860536#M7473</guid>
      <dc:creator>joleho</dc:creator>
      <dc:date>2007-05-23T18:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: wrong ELF class</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/wrong-ELF-class/m-p/860537#M7474</link>
      <description>I believe you must make sure when you execute that LD_LIBRARY_PATH is set to point to the same library directory where libguide.so was found when you linked. I am hedging bets a little because you didn't say which compiler you used, but it looks as if you linked against the libguide in your MKL installation.&lt;BR /&gt;If you use an Intel compiler which is no older than your MKL version, it is preferable to make sure that the libguide in use at both link and run time is the one supplied with the compiler. The Intel compiler option -openmp would take care of both -lguide and -lpthread.&lt;BR /&gt;If you want to avoid the requirement for LD_LIBRARY_PATH at run time, you could use the option to make all Intel compiler libraries static (-i-static for 9.1 compilers).&lt;BR /&gt;</description>
      <pubDate>Wed, 23 May 2007 20:30:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/wrong-ELF-class/m-p/860537#M7474</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2007-05-23T20:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: wrong ELF class</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/wrong-ELF-class/m-p/860538#M7475</link>
      <description>&lt;P&gt;Joe,&lt;/P&gt;
&lt;P&gt;I haven't tried doing what you did, but I think the clues are in your posting. You have PLAT=lnx32e. I think you have a mixture of 32-bit and 64-bit code which is not compatible.&lt;/P&gt;
&lt;P&gt;Bruce&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2007 20:47:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/wrong-ELF-class/m-p/860538#M7475</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2007-05-23T20:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: wrong ELF class</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/wrong-ELF-class/m-p/860539#M7476</link>
      <description>&lt;P&gt;Joe,&lt;/P&gt;
&lt;P&gt;I have gone back to look at this again. You need to set PLAT=lnx64. There should then be compatibilites with the objects for the 64-bit OS.&lt;/P&gt;
&lt;P&gt;Bruce&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2007 21:27:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/wrong-ELF-class/m-p/860539#M7476</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2007-05-23T21:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: wrong ELF class</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/wrong-ELF-class/m-p/860540#M7477</link>
      <description>Thank you very much!
&lt;BR /&gt;
&lt;BR /&gt;I just forgot to set the LD_LIBRARY_PATH ! That's it!
&lt;BR /&gt;
&lt;BR /&gt;(It's not PLAT=lnx64)
&lt;BR /&gt;
&lt;BR /&gt;Ciao, Joe</description>
      <pubDate>Wed, 23 May 2007 23:11:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/wrong-ELF-class/m-p/860540#M7477</guid>
      <dc:creator>joleho</dc:creator>
      <dc:date>2007-05-23T23:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: wrong ELF class</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/wrong-ELF-class/m-p/860541#M7478</link>
      <description>&lt;P&gt;How did you get it to link without the libpath set?&lt;/P&gt;
&lt;P&gt;Bruce&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2007 23:18:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/wrong-ELF-class/m-p/860541#M7478</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2007-05-23T23:18:36Z</dc:date>
    </item>
  </channel>
</rss>

