<?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 Problems compiling Fortran with Lapack using MKL libraries in linux... in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-compiling-Fortran-with-Lapack-using-MKL-libraries-in/m-p/797643#M2780</link>
    <description>I have a fortran program using the module mkl95_lapack.&lt;BR /&gt;My script for cstatic compilation is according with the information that I found in the intel documentation&lt;BR /&gt;-----------------------------------&lt;BR /&gt;#!/bin/bash&lt;BR /&gt;OPT="-c -O -w -vec-report0"&lt;BR /&gt;INC="-I$MKLROOT/include/ia32"&lt;BR /&gt;LIB="-L$MKLROOT/lib/ia32"&lt;BR /&gt;LIBOPT="-lmkl_lapack95 -Wl,--start-group $LIB/libmkl_intel.a $LIB/libmkl_sequential.a $LIB/libmkl_core.a -Wl,--end-group -lpthread"&lt;BR /&gt;ifort -c resolvedor.f90 -I/opt/intel/include/ia32 $INC&lt;BR /&gt;ifort -o lcicres resolvedor.o $LIBOPT&lt;BR /&gt;------------------------------------------------------&lt;BR /&gt;The compilation was ok because I have the object file but the link procedure fails and I have the next messages:&lt;BR /&gt;&lt;BR /&gt;/opt/intel/composer_xe_2011_sp1.7.256/mkl/lib/ia32/libmkl_lapack95.a(cgetrf.o): In function `cgetrf_f95_':&lt;BR /&gt;../../../../interfaces/lapack95/source/cgetrf.f90:(.text+0x2ac): undefined reference to `cgetrf_'&lt;BR /&gt;../../../../interfaces/lapack95/source/cgetrf.f90:(.text+0x47f): undefined reference to `xerbla_'&lt;BR /&gt;/opt/intel/composer_xe_2011_sp1.7.256/mkl/lib/ia32/libmkl_lapack95.a(cgetrs1.o): In function `cgetrs1_f95_':&lt;BR /&gt;../../../../interfaces/lapack95/source/cgetrs1.f90:(.text+0x2a2): undefined reference to `cgetrs_'&lt;BR /&gt;../../../../interfaces/lapack95/source/cgetrs1.f90:(.text+0x345): undefined reference to `xerbla_'&lt;BR /&gt;/opt/intel/composer_xe_2011_sp1.7.256/mkl/lib/ia32/libmkl_lapack95.a(sgetrf.o): In function `sgetrf_f95_':&lt;BR /&gt;../../../../interfaces/lapack95/source/sgetrf.f90:(.text+0x29d): undefined reference to `sgetrf_'&lt;BR /&gt;../../../../interfaces/lapack95/source/sgetrf.f90:(.text+0x46a): undefined reference to `xerbla_'&lt;BR /&gt;/opt/intel/composer_xe_2011_sp1.7.256/mkl/lib/ia32/libmkl_lapack95.a(sgetrs1.o): In function `sgetrs1_f95_':&lt;BR /&gt;../../../../interfaces/lapack95/source/sgetrs1.f90:(.text+0x2d2): undefined reference to `sgetrs_'&lt;BR /&gt;../../../../interfaces/lapack95/source/sgetrs1.f90:(.text+0x404): undefined reference to `xerbla_'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can anyone help me to resolve this problem?&lt;BR /&gt;&lt;BR /&gt;Javier&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 07 Nov 2011 12:06:54 GMT</pubDate>
    <dc:creator>Javier_Gonzalez-plat</dc:creator>
    <dc:date>2011-11-07T12:06:54Z</dc:date>
    <item>
      <title>Problems compiling Fortran with Lapack using MKL libraries in linux...</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-compiling-Fortran-with-Lapack-using-MKL-libraries-in/m-p/797643#M2780</link>
      <description>I have a fortran program using the module mkl95_lapack.&lt;BR /&gt;My script for cstatic compilation is according with the information that I found in the intel documentation&lt;BR /&gt;-----------------------------------&lt;BR /&gt;#!/bin/bash&lt;BR /&gt;OPT="-c -O -w -vec-report0"&lt;BR /&gt;INC="-I$MKLROOT/include/ia32"&lt;BR /&gt;LIB="-L$MKLROOT/lib/ia32"&lt;BR /&gt;LIBOPT="-lmkl_lapack95 -Wl,--start-group $LIB/libmkl_intel.a $LIB/libmkl_sequential.a $LIB/libmkl_core.a -Wl,--end-group -lpthread"&lt;BR /&gt;ifort -c resolvedor.f90 -I/opt/intel/include/ia32 $INC&lt;BR /&gt;ifort -o lcicres resolvedor.o $LIBOPT&lt;BR /&gt;------------------------------------------------------&lt;BR /&gt;The compilation was ok because I have the object file but the link procedure fails and I have the next messages:&lt;BR /&gt;&lt;BR /&gt;/opt/intel/composer_xe_2011_sp1.7.256/mkl/lib/ia32/libmkl_lapack95.a(cgetrf.o): In function `cgetrf_f95_':&lt;BR /&gt;../../../../interfaces/lapack95/source/cgetrf.f90:(.text+0x2ac): undefined reference to `cgetrf_'&lt;BR /&gt;../../../../interfaces/lapack95/source/cgetrf.f90:(.text+0x47f): undefined reference to `xerbla_'&lt;BR /&gt;/opt/intel/composer_xe_2011_sp1.7.256/mkl/lib/ia32/libmkl_lapack95.a(cgetrs1.o): In function `cgetrs1_f95_':&lt;BR /&gt;../../../../interfaces/lapack95/source/cgetrs1.f90:(.text+0x2a2): undefined reference to `cgetrs_'&lt;BR /&gt;../../../../interfaces/lapack95/source/cgetrs1.f90:(.text+0x345): undefined reference to `xerbla_'&lt;BR /&gt;/opt/intel/composer_xe_2011_sp1.7.256/mkl/lib/ia32/libmkl_lapack95.a(sgetrf.o): In function `sgetrf_f95_':&lt;BR /&gt;../../../../interfaces/lapack95/source/sgetrf.f90:(.text+0x29d): undefined reference to `sgetrf_'&lt;BR /&gt;../../../../interfaces/lapack95/source/sgetrf.f90:(.text+0x46a): undefined reference to `xerbla_'&lt;BR /&gt;/opt/intel/composer_xe_2011_sp1.7.256/mkl/lib/ia32/libmkl_lapack95.a(sgetrs1.o): In function `sgetrs1_f95_':&lt;BR /&gt;../../../../interfaces/lapack95/source/sgetrs1.f90:(.text+0x2d2): undefined reference to `sgetrs_'&lt;BR /&gt;../../../../interfaces/lapack95/source/sgetrs1.f90:(.text+0x404): undefined reference to `xerbla_'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can anyone help me to resolve this problem?&lt;BR /&gt;&lt;BR /&gt;Javier&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Nov 2011 12:06:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-compiling-Fortran-with-Lapack-using-MKL-libraries-in/m-p/797643#M2780</guid>
      <dc:creator>Javier_Gonzalez-plat</dc:creator>
      <dc:date>2011-11-07T12:06:54Z</dc:date>
    </item>
    <item>
      <title>Problems compiling Fortran with Lapack using MKL libraries in l</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-compiling-Fortran-with-Lapack-using-MKL-libraries-in/m-p/797644#M2781</link>
      <description>The distribution of routines among the various component libraries in MKL has varied from one version to another. Which version of MKL did you use? Did you obtain the Lapack95 library from Intel? Precompiled?&lt;BR /&gt;&lt;BR /&gt;Instead of specifying the MKL libraries explicitly, you could try the -mkl compiler option (you would still need to specify libmkl_lapack95.a explicitly).</description>
      <pubDate>Mon, 07 Nov 2011 13:13:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-compiling-Fortran-with-Lapack-using-MKL-libraries-in/m-p/797644#M2781</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2011-11-07T13:13:45Z</dc:date>
    </item>
    <item>
      <title>Problems compiling Fortran with Lapack using MKL libraries in l</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-compiling-Fortran-with-Lapack-using-MKL-libraries-in/m-p/797645#M2782</link>
      <description>I'm using the last 10.3.&lt;BR /&gt;The options are takem from the link intel MKL advisor....&lt;BR /&gt;&lt;BR /&gt;Javier</description>
      <pubDate>Mon, 07 Nov 2011 16:49:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-compiling-Fortran-with-Lapack-using-MKL-libraries-in/m-p/797645#M2782</guid>
      <dc:creator>Javier_Gonzalez-plat</dc:creator>
      <dc:date>2011-11-07T16:49:17Z</dc:date>
    </item>
    <item>
      <title>Problems compiling Fortran with Lapack using MKL libraries in l</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-compiling-Fortran-with-Lapack-using-MKL-libraries-in/m-p/797646#M2783</link>
      <description>Does you MKLROOT setting expand so as to match the actual path of your MKL installation?</description>
      <pubDate>Mon, 07 Nov 2011 17:03:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-compiling-Fortran-with-Lapack-using-MKL-libraries-in/m-p/797646#M2783</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2011-11-07T17:03:52Z</dc:date>
    </item>
    <item>
      <title>Problems compiling Fortran with Lapack using MKL libraries in l</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-compiling-Fortran-with-Lapack-using-MKL-libraries-in/m-p/797647#M2784</link>
      <description>MKLROOT is&lt;BR /&gt;/opt/intel/composer_xe_2011_sp1.7.256/mkl&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Nov 2011 20:08:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-compiling-Fortran-with-Lapack-using-MKL-libraries-in/m-p/797647#M2784</guid>
      <dc:creator>Javier_Gonzalez-plat</dc:creator>
      <dc:date>2011-11-07T20:08:54Z</dc:date>
    </item>
    <item>
      <title>Problems compiling Fortran with Lapack using MKL libraries in l</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-compiling-Fortran-with-Lapack-using-MKL-libraries-in/m-p/797648#M2785</link>
      <description>Ah, here is the problem:&lt;BR /&gt;&lt;BR /&gt;In the definition line&lt;BR /&gt;&lt;BR /&gt; LIB="-L$MKLROOT/lib/ia32"&lt;BR /&gt;&lt;BR /&gt;the -L is the culprit. What it does is to tell the linker &lt;B&gt;where&lt;/B&gt; to look for libraries, rather than specifying &lt;B&gt;which&lt;/B&gt; libraries to link, which is what you want to do. The net effect of this error is to give a list of file paths rather than directory paths as places to search, and &lt;B&gt;no&lt;/B&gt; extra libraries to be included in the link.&lt;BR /&gt;&lt;BR /&gt;Simply change that line to&lt;BR /&gt;&lt;BR /&gt; LIB="$MKLROOT/lib/ia32"</description>
      <pubDate>Tue, 08 Nov 2011 18:13:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-compiling-Fortran-with-Lapack-using-MKL-libraries-in/m-p/797648#M2785</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2011-11-08T18:13:25Z</dc:date>
    </item>
    <item>
      <title>Problems compiling Fortran with Lapack using MKL libraries in l</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-compiling-Fortran-with-Lapack-using-MKL-libraries-in/m-p/797649#M2786</link>
      <description>Thanks!&lt;BR /&gt;Now works fine!&lt;BR /&gt;&lt;BR /&gt;Thanks for all!&lt;BR /&gt;&lt;BR /&gt;Javier</description>
      <pubDate>Thu, 10 Nov 2011 10:52:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-compiling-Fortran-with-Lapack-using-MKL-libraries-in/m-p/797649#M2786</guid>
      <dc:creator>Javier_Gonzalez-plat</dc:creator>
      <dc:date>2011-11-10T10:52:46Z</dc:date>
    </item>
  </channel>
</rss>

