<?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 mpif90 error while linking in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/mpif90-error-while-linking/m-p/1431239#M10059</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;mpif90 was giving error while executing it as given below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;home/arun/intel_mpi/mpi/2021.7.1/bin/mpif90 -DAdd_ -DInt=int -DUInt="unsigned int " -cpp -c a.f -o a.f.o &lt;BR /&gt;gfortran: warning: int: linker input file unused because linking not done &lt;BR /&gt;gfortran: error: int: linker input file not found: No such file or directory&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Seems the wrapper compiler has issue in parsing "unsigned int ".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The below patch is fixing this issue.&lt;/P&gt;
&lt;P&gt;$ cat intelmpi_mpif90_fix.patch&lt;BR /&gt;diff --git a/bin/mpif90 b/bin/mpif90&lt;BR /&gt;index cf0922a..1cb5fa2 100755&lt;BR /&gt;--- a/bin/mpif90&lt;BR /&gt;+++ b/bin/mpif90&lt;BR /&gt;@@ -550,6 +550,7 @@ for arg in "$@" ; do&lt;BR /&gt;;;&lt;BR /&gt;-D*)&lt;BR /&gt;cppflags="$cppflags $arg"&lt;BR /&gt;+ qarg="\"$arg\""&lt;BR /&gt;;;&lt;BR /&gt;*.F|*.F90|.fpp|.FPP)&lt;BR /&gt;# If FCCPP is not empty, then we need to do the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please comment about it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Arun&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Nov 2022 10:11:29 GMT</pubDate>
    <dc:creator>Arun_chandran</dc:creator>
    <dc:date>2022-11-18T10:11:29Z</dc:date>
    <item>
      <title>mpif90 error while linking</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/mpif90-error-while-linking/m-p/1431239#M10059</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;mpif90 was giving error while executing it as given below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;home/arun/intel_mpi/mpi/2021.7.1/bin/mpif90 -DAdd_ -DInt=int -DUInt="unsigned int " -cpp -c a.f -o a.f.o &lt;BR /&gt;gfortran: warning: int: linker input file unused because linking not done &lt;BR /&gt;gfortran: error: int: linker input file not found: No such file or directory&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Seems the wrapper compiler has issue in parsing "unsigned int ".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The below patch is fixing this issue.&lt;/P&gt;
&lt;P&gt;$ cat intelmpi_mpif90_fix.patch&lt;BR /&gt;diff --git a/bin/mpif90 b/bin/mpif90&lt;BR /&gt;index cf0922a..1cb5fa2 100755&lt;BR /&gt;--- a/bin/mpif90&lt;BR /&gt;+++ b/bin/mpif90&lt;BR /&gt;@@ -550,6 +550,7 @@ for arg in "$@" ; do&lt;BR /&gt;;;&lt;BR /&gt;-D*)&lt;BR /&gt;cppflags="$cppflags $arg"&lt;BR /&gt;+ qarg="\"$arg\""&lt;BR /&gt;;;&lt;BR /&gt;*.F|*.F90|.fpp|.FPP)&lt;BR /&gt;# If FCCPP is not empty, then we need to do the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please comment about it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Arun&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 10:11:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/mpif90-error-while-linking/m-p/1431239#M10059</guid>
      <dc:creator>Arun_chandran</dc:creator>
      <dc:date>2022-11-18T10:11:29Z</dc:date>
    </item>
    <item>
      <title>Re:mpif90 error while linking</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/mpif90-error-while-linking/m-p/1431699#M10066</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please let us know the OS and hardware details you are using?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;And also, could you please provide us with the complete sample reproducer code along with the steps to reproduce the issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Varsha&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Nov 2022 08:06:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/mpif90-error-while-linking/m-p/1431699#M10066</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2022-11-21T08:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Re:mpif90 error while linking</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/mpif90-error-while-linking/m-p/1431754#M10067</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The below reproduces the error for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;arun@arun-VirtualBox:~/fortran$ /opt/intel/oneapi/mpi/2021.7.1/bin/mpif90 -DAdd_ -DInt=int -DUInt="unsigned int " -cpp -c a.f90 -o a.f90.o&lt;BR /&gt;gfortran: error: int: No such file or directory&lt;BR /&gt;arun@arun-VirtualBox:~/fortran$ cat a.f90&lt;BR /&gt;program hello&lt;BR /&gt;print *, "Hello World!"&lt;BR /&gt;end program&lt;BR /&gt;arun@arun-VirtualBox:~/fortran$ /opt/intel/oneapi/mpi/2021.7.1/bin/mpif90 -DAdd_ -DInt=int -cpp -c a.f90 -o a.f90.o ----&amp;gt; no error&lt;BR /&gt;f951: Warning: Nonexistent include directory _I_MPI_SUBSTITUTE_INSTALLDIR/include/gfortran/9.1.0_ [-Wmissing-include-dirs]&lt;BR /&gt;f951: Warning: Nonexistent include directory _I_MPI_SUBSTITUTE_INSTALLDIR/include_ [-Wmissing-include-dirs]&lt;BR /&gt;&lt;A href="mailto:arun@arun-VirtualBox:~/fortran$" target="_blank"&gt;arun@arun-VirtualBox:~/fortran$&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Arun&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 11:30:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/mpif90-error-while-linking/m-p/1431754#M10067</guid>
      <dc:creator>Arun_chandran</dc:creator>
      <dc:date>2022-11-21T11:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: mpif90 error while linking</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/mpif90-error-while-linking/m-p/1432782#M10086</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please try using the 'mpiifort' at the time of compilation, as we are able to get the expected results? Please find the commands:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mpiifort -DAdd_ -DInt=int -DUInt="unsigned int " -cpp -c a.f90 -o a.f90.o
mpiifort a.f90.o -o a -lmpi
mpirun -n 2 ./userhello&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please find the below screenshot for more details.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mpiifort.png" style="width: 890px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/35447i6FC1F778190F2963/image-dimensions/890x122?v=v2&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" width="890" height="122" role="button" title="mpiifort.png" alt="mpiifort.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Varsha&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 10:08:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/mpif90-error-while-linking/m-p/1432782#M10086</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2022-11-24T10:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: mpif90 error while linking</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/mpif90-error-while-linking/m-p/1432832#M10087</link>
      <description>&lt;P&gt;Yes there is no issue with mpiifort, mpif90 is the problematic one.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 14:09:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/mpif90-error-while-linking/m-p/1432832#M10087</guid>
      <dc:creator>Arun_chandran</dc:creator>
      <dc:date>2022-11-24T14:09:48Z</dc:date>
    </item>
    <item>
      <title>Re:mpif90 error while linking</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/mpif90-error-while-linking/m-p/1435780#M10105</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for reporting the bug.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We were able to reproduce it and we have informed the development team about it.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Varsha&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Dec 2022 13:23:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/mpif90-error-while-linking/m-p/1435780#M10105</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2022-12-05T13:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: mpif90 error while linking</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/mpif90-error-while-linking/m-p/1461379#M10428</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your patience.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue raised by you has been fixed in the Intel MPI 2021.9 version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We will be closing this case from our side. If the issue still persists with the new release, then please create a new thread for us to investigate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Varsha&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 10:12:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/mpif90-error-while-linking/m-p/1461379#M10428</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2023-03-06T10:12:49Z</dc:date>
    </item>
  </channel>
</rss>

