<?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 Re: error #5082: Syntax error, found END-OF-STATEMENT when expecting one of ... in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-5082-Syntax-error-found-END-OF-STATEMENT-when-expecting/m-p/1304170#M157066</link>
    <description>&lt;P&gt;Hi, yes! B&lt;SPAN&gt;y changing "&lt;/SPAN&gt;&lt;SPAN&gt;!dir$ inlinenever areaave&lt;/SPAN&gt;&lt;SPAN&gt;" to "&lt;/SPAN&gt;&lt;SPAN&gt;!DIR$ ATTRIBUTES NOINLINE&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;::&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;areaave&lt;/SPAN&gt;&lt;SPAN&gt;", the error go away. It turned out to be a format issue.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;The ATTRIBUTES directive option NOINLINE&amp;nbsp;should be written as "!DIR$ ATTRIBUTES NOINLINE&amp;nbsp;::&amp;nbsp;procedure" for OneAPI fortran compiler.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Aug 2021 06:34:50 GMT</pubDate>
    <dc:creator>Jervie</dc:creator>
    <dc:date>2021-08-06T06:34:50Z</dc:date>
    <item>
      <title>error #5082: Syntax error, found END-OF-STATEMENT when expecting one of ...</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-5082-Syntax-error-found-END-OF-STATEMENT-when-expecting/m-p/1303903#M157038</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to compile my Fortran code using OneAPI mpiifort, and I got the following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;mpiifort -O2 -ip -w -ftz -align all -fno-alias -no-heap-arrays -c -i4 -r8 -convert big_endian -assume byterecl -mcmodel=medium -extend_source -fp-model strict -free -I. -I/usr/local/include -I/usr/include -I/opt/intel/oneapi/mpi/2021.2.0/include endrun.f90&lt;/P&gt;
&lt;P&gt;areaMod.f90(313): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: &amp;lt;LABEL&amp;gt; &amp;lt;IDENTIFIER&amp;gt; TYPE MODULE ELEMENTAL IMPURE NON_RECURSIVE PURE RECURSIVE ...&lt;BR /&gt;do jo = 1, nlat_o&lt;BR /&gt;----^&lt;BR /&gt;mpiifort -O2 -ip -w -ftz -align all -fno-alias -no-heap-arrays -c -i4 -r8 -convert big_endian -assume byterecl -mcmodel=medium -extend_source -fp-model strict -free -I. -I/usr/local/include -I/usr/include -I/opt/intel/oneapi/mpi/2021.2.0/include mkrank.f90&lt;BR /&gt;areaMod.f90(273): error #6218: This statement is positioned incorrectly and/or has syntax errors.&lt;BR /&gt;subroutine areaave (nlat_i , nlon_i , numlon_i, fld_i , &amp;amp;&lt;BR /&gt;-------------^&lt;BR /&gt;areaMod.f90(346): error #6702: END statement confusion.&lt;BR /&gt;end subroutine areaave&lt;BR /&gt;^&lt;BR /&gt;compilation aborted for areaMod.f90 (code 1)&lt;BR /&gt;gmake: *** [/home/bianqy/BCC_ESM_OneAPI//models/bld/Makefile:138: areaMod.o] Error 1&lt;BR /&gt;gmake: *** Waiting for unfinished jobs....&lt;BR /&gt;exit 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the code could be compiled using Intel 2018 (&lt;SPAN&gt;2018.1.163&lt;/SPAN&gt;) mpiifort. But for some reason, I have to use OneAPI to compile my code. Any suggestions are aprreciated!&lt;/P&gt;
&lt;P&gt;I attached the code of&amp;nbsp;areaMod.f90 in case.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 09:16:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-5082-Syntax-error-found-END-OF-STATEMENT-when-expecting/m-p/1303903#M157038</guid>
      <dc:creator>Jervie</dc:creator>
      <dc:date>2021-08-05T09:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: error #5082: Syntax error, found END-OF-STATEMENT when expecting one of ...</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-5082-Syntax-error-found-END-OF-STATEMENT-when-expecting/m-p/1303909#M157040</link>
      <description>&lt;P&gt;When I compiled it, I noticed an error message about "!dir$ inlinenever areaave. The complaint was about an identifier "never", so I guess the keyword "inlinenever" is unknown. Removing that line made the error about subroutine areaave go away.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 09:52:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-5082-Syntax-error-found-END-OF-STATEMENT-when-expecting/m-p/1303909#M157040</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2021-08-05T09:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: error #5082: Syntax error, found END-OF-STATEMENT when expecting one of ...</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-5082-Syntax-error-found-END-OF-STATEMENT-when-expecting/m-p/1303924#M157043</link>
      <description>&lt;DIV&gt;!DIR$ ATTRIBUTES NOINLINE&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;::&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;procedure&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 10:48:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-5082-Syntax-error-found-END-OF-STATEMENT-when-expecting/m-p/1303924#M157043</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2021-08-05T10:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: error #5082: Syntax error, found END-OF-STATEMENT when expecting one of ...</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-5082-Syntax-error-found-END-OF-STATEMENT-when-expecting/m-p/1303928#M157044</link>
      <description>&lt;P&gt;Check the INLINE directives in your source files. They appear to be be meant for the Cray Fortran compiler, and not all are supported in Intel Fortran.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 10:54:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-5082-Syntax-error-found-END-OF-STATEMENT-when-expecting/m-p/1303928#M157044</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2021-08-05T10:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: error #5082: Syntax error, found END-OF-STATEMENT when expecting one of ...</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-5082-Syntax-error-found-END-OF-STATEMENT-when-expecting/m-p/1304161#M157064</link>
      <description>&lt;P&gt;Hi, thank you very much for your reply. Following you advice, I commented the line "&lt;SPAN&gt;!dir$ inlinenever areaave&lt;/SPAN&gt;", and the error go away.&amp;nbsp; I also tried Andrew's advice, by changing "&lt;SPAN&gt;!dir$ inlinenever areaave&lt;/SPAN&gt;" to "&lt;SPAN&gt;!DIR$ ATTRIBUTES NOINLINE&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;::&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;areaave&lt;/SPAN&gt;", the error also go away. It turned out to be a format issue.&amp;nbsp;&lt;SPAN&gt;The ATTRIBUTES directive option NOINLINE&amp;nbsp;should be written as "!DIR$ ATTRIBUTES NOINLINE&amp;nbsp;::&amp;nbsp;procedure" for OneAPI fortran compiler.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 06:02:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-5082-Syntax-error-found-END-OF-STATEMENT-when-expecting/m-p/1304161#M157064</guid>
      <dc:creator>Jervie</dc:creator>
      <dc:date>2021-08-06T06:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: error #5082: Syntax error, found END-OF-STATEMENT when expecting one of ...</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-5082-Syntax-error-found-END-OF-STATEMENT-when-expecting/m-p/1304168#M157065</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you very much! It solves my issue.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 06:32:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-5082-Syntax-error-found-END-OF-STATEMENT-when-expecting/m-p/1304168#M157065</guid>
      <dc:creator>Jervie</dc:creator>
      <dc:date>2021-08-06T06:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: error #5082: Syntax error, found END-OF-STATEMENT when expecting one of ...</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-5082-Syntax-error-found-END-OF-STATEMENT-when-expecting/m-p/1304170#M157066</link>
      <description>&lt;P&gt;Hi, yes! B&lt;SPAN&gt;y changing "&lt;/SPAN&gt;&lt;SPAN&gt;!dir$ inlinenever areaave&lt;/SPAN&gt;&lt;SPAN&gt;" to "&lt;/SPAN&gt;&lt;SPAN&gt;!DIR$ ATTRIBUTES NOINLINE&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;::&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;areaave&lt;/SPAN&gt;&lt;SPAN&gt;", the error go away. It turned out to be a format issue.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;The ATTRIBUTES directive option NOINLINE&amp;nbsp;should be written as "!DIR$ ATTRIBUTES NOINLINE&amp;nbsp;::&amp;nbsp;procedure" for OneAPI fortran compiler.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 06:34:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-5082-Syntax-error-found-END-OF-STATEMENT-when-expecting/m-p/1304170#M157066</guid>
      <dc:creator>Jervie</dc:creator>
      <dc:date>2021-08-06T06:34:50Z</dc:date>
    </item>
  </channel>
</rss>

