<?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 Another -static-intel thread in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Another-static-intel-thread/m-p/749461#M6346</link>
    <description>Drop &lt;STRONG&gt;-limf&lt;/STRONG&gt; from your command-line and let the icc driver determine which and in what order to link libraries. Adding &lt;STRONG&gt;-limf&lt;/STRONG&gt; links the shared version as per the ld default. That should eliminate the use of the shared library when when using &lt;STRONG&gt;-static-intel&lt;/STRONG&gt;.</description>
    <pubDate>Wed, 06 Oct 2010 14:10:22 GMT</pubDate>
    <dc:creator>Kevin_D_Intel</dc:creator>
    <dc:date>2010-10-06T14:10:22Z</dc:date>
    <item>
      <title>Another -static-intel thread</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Another-static-intel-thread/m-p/749460#M6345</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I realize there's already a thread on -static-intel (http://software.intel.com/en-us/forums/showthread.php?t=67369), but I'm starting a new one using a simpler example to illustrate my problem.&lt;BR /&gt;&lt;BR /&gt;I take a simple program that calls a libimf math function:&lt;BR /&gt;&lt;BR /&gt; $ cat ~/src/ceil.c&lt;BR /&gt; #include&lt;MATHIMF.H&gt;&lt;BR /&gt; int main() {&lt;BR /&gt; double x = 3.6;&lt;BR /&gt; float y = ceil(x);&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt;Compile it using -static-intel:&lt;BR /&gt;&lt;BR /&gt; $ icc -static-intel -limf ~/src/ceil.c -o foo &amp;amp;&amp;amp; env -i LD_LIBRARY_PATH=/ws/ompi-tools/intel/Compiler/11.0/084/lib/ia32 ./foo&lt;BR /&gt; $ ldd foo&lt;BR /&gt; linux-gate.so.1 =&amp;gt; (0xffffe000)&lt;BR /&gt; libimf.so =&amp;gt; not found&lt;BR /&gt; libm.so.6 =&amp;gt; /lib/libm.so.6 (0xf7eb0000)&lt;BR /&gt; libgcc_s.so.1 =&amp;gt; /lib/libgcc_s.so.1 (0xf7ea5000)&lt;BR /&gt; libc.so.6 =&amp;gt; /lib/libc.so.6 (0xf7d83000)&lt;BR /&gt; libdl.so.2 =&amp;gt; /lib/libdl.so.2 (0xf7d7e000)&lt;BR /&gt; /lib/ld-linux.so.2 (0xf7ee5000)&lt;BR /&gt; $ ls -l foo&lt;BR /&gt; -rwxr-xr-x 1 em162155 wheel 20733 Oct 5 2010 foo&lt;BR /&gt;&lt;BR /&gt;Compile it using -shared-intel:&lt;BR /&gt;&lt;BR /&gt; $ icc -shared-intel -limf ~/src/ceil.c -o foo &amp;amp;&amp;amp; env -i LD_LIBRARY_PATH=/ws/ompi-tools/intel/Compiler/11.0/084/lib/ia32 ./foo&lt;BR /&gt; $ ldd foo&lt;BR /&gt; linux-gate.so.1 =&amp;gt; (0xffffe000)&lt;BR /&gt; libimf.so =&amp;gt; not found&lt;BR /&gt; libsvml.so =&amp;gt; not found&lt;BR /&gt; libm.so.6 =&amp;gt; /lib/libm.so.6 (0xf7edc000)&lt;BR /&gt; libgcc_s.so.1 =&amp;gt; /lib/libgcc_s.so.1 (0xf7ed1000)&lt;BR /&gt; libintlc.so.5 =&amp;gt; not found&lt;BR /&gt; libc.so.6 =&amp;gt; /lib/libc.so.6 (0xf7dae000)&lt;BR /&gt; libdl.so.2 =&amp;gt; /lib/libdl.so.2 (0xf7daa000)&lt;BR /&gt; /lib/ld-linux.so.2 (0xf7f11000)&lt;BR /&gt; $ ls -l foo&lt;BR /&gt; -rwxr-xr-x 1 em162155 wheel 6967 Oct 5 2010 foo&lt;BR /&gt;&lt;BR /&gt;I'm stuck, because the file size of the -static-intel version is larger, implying that some of the math library stuff has been statically linked, yet there's still the "not found" in the "ldd" output.&lt;BR /&gt;&lt;BR /&gt;-Ethan&lt;/MATHIMF.H&gt;</description>
      <pubDate>Wed, 06 Oct 2010 13:13:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Another-static-intel-thread/m-p/749460#M6345</guid>
      <dc:creator>ethan_mallovesun_com</dc:creator>
      <dc:date>2010-10-06T13:13:11Z</dc:date>
    </item>
    <item>
      <title>Another -static-intel thread</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Another-static-intel-thread/m-p/749461#M6346</link>
      <description>Drop &lt;STRONG&gt;-limf&lt;/STRONG&gt; from your command-line and let the icc driver determine which and in what order to link libraries. Adding &lt;STRONG&gt;-limf&lt;/STRONG&gt; links the shared version as per the ld default. That should eliminate the use of the shared library when when using &lt;STRONG&gt;-static-intel&lt;/STRONG&gt;.</description>
      <pubDate>Wed, 06 Oct 2010 14:10:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Another-static-intel-thread/m-p/749461#M6346</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2010-10-06T14:10:22Z</dc:date>
    </item>
  </channel>
</rss>

