<?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: Bug in IFX - Standalone BLOCK DATA Source File in Library in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1654812#M174796</link>
    <description>&lt;P&gt;Is this bug still in work.&amp;nbsp; I see that it was reported a year ago.&amp;nbsp; I observed the same issue with my legacy applications.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jan 2025 21:16:50 GMT</pubDate>
    <dc:creator>Hiram_Brown</dc:creator>
    <dc:date>2025-01-06T21:16:50Z</dc:date>
    <item>
      <title>Bug in IFX - Standalone BLOCK DATA Source File in Library</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1559996#M170271</link>
      <description>&lt;P&gt;I'm seeing what I think may be a bug in the IFX compiler. I have a common block variable initialized in BLOCK DATA file in a standalone source file and a subroutine that are compiled into a library. The subroutine has a reference to "EXTERNAL &amp;lt;blockDataName&amp;gt;" to ensure that the BLOCK DATA file is compiled in. The library is then compiled into a program and the program writes out the value of the variable. In IFX, built into a Library, the value is 0 (not initialized to the BLOCK DATA value). In IFX compiled all at once, or in IFORT either way, the value is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue can be reproduced with the following files:&lt;/P&gt;&lt;P&gt;testsub.f:&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;      subroutine testSub
	      INCLUDE 'bd.fi'
	      EXTERNAL BDINIT
		  
		  WRITE(*,*) "myvar is",myvar
	  end subroutine&lt;/LI-CODE&gt;&lt;P&gt;bd.fi:&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;      double precision myvar
      common/mycommon/myvar&lt;/LI-CODE&gt;&lt;P&gt;bdinit.f:&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;      BLOCK DATA BDINIT
      INCLUDE 'BD.FI'
      DATA myvar / 3.14159 /
      END&lt;/LI-CODE&gt;&lt;P&gt;main.f:&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;      program testProgram
          call testSub
      end program&lt;/LI-CODE&gt;&lt;P&gt;build.bat:&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;ifx /Qsave /Qinit:zero /libs:static /c testsub.f bdinit.f
lib /out:IfxLib.lib testsub.obj bdinit.obj
ifx main.f IfxLib.lib /o IfxWithLib.exe
ifx main.f testsub.f bdinit.f /o IfxNoLib.exe
del *.obj

ifort /Qsave /Qinit:zero /libs:static /c testsub.f bdinit.f
lib /out:IfortLib.lib testsub.obj bdinit.obj
ifort main.f IfortLib.lib /o IfortWithLib.exe
ifort main.f testsub.f bdinit.f /o IfortNoLib.exe
del *.obj

IfxWithLib.exe
IfxNoLib.exe
IfortWithLib.exe
IfortNoLib.exe&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Result (Intel Fortran Compiler 2024.0.0):&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;I:\Temp\Limerick\ifx_blockdata&amp;gt;IfxWithLib.exe
 myvar is  0.000000000000000E+000

I:\Temp\Limerick\ifx_blockdata&amp;gt;IfxNoLib.exe
 myvar is   3.14159011840820

I:\Temp\Limerick\ifx_blockdata&amp;gt;IfortWithLib.exe
 myvar is   3.14159011840820

I:\Temp\Limerick\ifx_blockdata&amp;gt;IfortNoLib.exe
 myvar is   3.14159011840820&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 04 Jan 2024 21:19:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1559996#M170271</guid>
      <dc:creator>Stuart-McDonald</dc:creator>
      <dc:date>2024-01-04T21:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in IFX - Standalone BLOCK DATA Source File in Library</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1560175#M170278</link>
      <description>&lt;P&gt;I do not know what is or is not required by the standard vis-à-vis BLOCK DATA, but in the past I had to explicitly link in the BLOCK DATA object file because it would not work via a library. But I have never used the EXTERNAL statement to force a reference like that. I can imagine that this is a rather grey area in the standard.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 07:30:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1560175#M170278</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2024-01-05T07:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in IFX - Standalone BLOCK DATA Source File in Library</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1560312#M170284</link>
      <description>&lt;P&gt;Here is a slightly different way of establishing that IFX is not alert enough. Take the single file Tsub1.f containing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;      subroutine testSub

      double precision myvar
      common/mycommon/myvar
      EXTERNAL BDINIT

      WRITE(*,*) "myvar is",myvar

      end subroutine&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and compile with (a) Ifort and (b) Ifx, without attempting to link anything, and examine whether the resulting OBJ file contains the unsatisfied external BDINIT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="none"&gt;S:\LANG\smd&amp;gt;ifort.exe /c tsub1.f &amp;amp; dumpbin /symbols tsub1.obj | findstr /i bdinit
Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.11.0 Build 20231010_000000
Copyright (C) 1985-2023 Intel Corporation.  All rights reserved.

00F 00000000 UNDEF  notype ()    External     | BDINIT

S:\LANG\smd&amp;gt;ifx.exe /c tsub1.f &amp;amp; dumpbin /symbols tsub1.obj | findstr /i bdinit
Intel(R) Fortran Compiler for applications running on Intel(R) 64, Version 2024.0.0 Build 20231017
Copyright (C) 1985-2023 Intel Corporation. All rights reserved.


S:\LANG\smd&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IFX probably sees that there is a declaration for BDINIT but no reference to it, and there is nothing in the code to tell IFX that BDINIT is a code symbol and not a data symbol. In situations such as this, I feel handicapped by not having a way of declaring, "BDINIT is a typeless procedure, i.e., one that returns no value, i.e., a subroutine", or, alternatively, "BDINIT is not a data section/segment item".&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 16:36:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1560312#M170284</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2024-01-05T16:36:35Z</dc:date>
    </item>
    <item>
      <title>Re:Bug in IFX - Standalone BLOCK DATA Source File in Library</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1560321#M170285</link>
      <description>&lt;P&gt;Thank you for reporting this. I think I see what you see on Windows, but not on Linux. Interesting that Linux cares about the case in the INCLUDE statement file name, but Windows does not. &lt;/P&gt;&lt;P&gt;I'll get a bug filed.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Jan 2024 17:17:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1560321#M170285</guid>
      <dc:creator>Barbara_P_Intel</dc:creator>
      <dc:date>2024-01-05T17:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in IFX - Standalone BLOCK DATA Source File in Library</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1560348#M170286</link>
      <description>&lt;P&gt;I'll comment that an EXTERNAL declaration, without a reference, is exactly the way a BLOCK DATA is supposed to be pulled in from a library. It does not astonish me that this detail was missed in IFX, but it does need to work.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 18:42:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1560348#M170286</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2024-01-05T18:42:15Z</dc:date>
    </item>
    <item>
      <title>Re:Bug in IFX - Standalone BLOCK DATA Source File in Library</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1560371#M170291</link>
      <description>&lt;P&gt;I filed CMPLRLLVM-55045 to get this fixed.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Jan 2024 19:43:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1560371#M170291</guid>
      <dc:creator>Barbara_P_Intel</dc:creator>
      <dc:date>2024-01-05T19:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in IFX - Standalone BLOCK DATA Source File in Library</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1594656#M172036</link>
      <description>&lt;P&gt;I am facing the same issue. Is it fixed or not?&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 05:28:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1594656#M172036</guid>
      <dc:creator>NasarAli</dc:creator>
      <dc:date>2024-05-03T05:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in IFX - Standalone BLOCK DATA Source File in Library</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1594815#M172049</link>
      <description>&lt;P&gt;The fix is in progress. I don't have a due date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 15:01:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1594815#M172049</guid>
      <dc:creator>Barbara_P_Intel</dc:creator>
      <dc:date>2024-05-03T15:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in IFX - Standalone BLOCK DATA Source File in Library</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1628399#M173544</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I can only tell that I am also experiencing issue with this bug, i.e. when building with IFX rather than IFORT with hexacty the same project structure&amp;nbsp; (Common block etc.).&lt;/P&gt;&lt;P&gt;Please note that I have the latest Intel Fortran compiler installed (2024.2.1)&amp;nbsp; and this issue is still present.&lt;/P&gt;&lt;P&gt;With IFORT being planned for a withdrawal near end of 2024 it would be good to know when this is going to be fixed, unless there is some clear advice with a workaround.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way, the "Release Notes" for Fortran 2024.2.1:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/developer/articles/release-notes/oneapi-fortran-compiler-release-notes.html" target="_blank"&gt;Intel® Fortran Compiler for oneAPI Release Notes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;point to Release Notes that say "2024.2.0" and the date mentioned is 13 June rather than 05 August (as seen in the individual components page for Intel Fortran compiler)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Lukasz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 21:32:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1628399#M173544</guid>
      <dc:creator>Lukasz_H_1</dc:creator>
      <dc:date>2024-09-03T21:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in IFX - Standalone BLOCK DATA Source File in Library</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1628459#M173548</link>
      <description>&lt;P&gt;There were no changes to the IFX compiler between 2024.2.0 and 2024.2.1 oneAPI Toolkits releases - hence, the Release Notes remained unchanged.&amp;nbsp;&lt;BR /&gt;The compiler development team is working on the fix. I will update you when it will be available.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 04:20:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1628459#M173548</guid>
      <dc:creator>Devorah_H_Intel</dc:creator>
      <dc:date>2024-09-04T04:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in IFX - Standalone BLOCK DATA Source File in Library</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1654812#M174796</link>
      <description>&lt;P&gt;Is this bug still in work.&amp;nbsp; I see that it was reported a year ago.&amp;nbsp; I observed the same issue with my legacy applications.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 21:16:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1654812#M174796</guid>
      <dc:creator>Hiram_Brown</dc:creator>
      <dc:date>2025-01-06T21:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in IFX - Standalone BLOCK DATA Source File in Library</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1654815#M174797</link>
      <description>&lt;P&gt;My latest download of ONEAPI did not include IFORT so I am dependent on IFX.&amp;nbsp; I have a very unpopular work around that involves pulling all BLOCK DATA code from the static library code to a single file so that it can be manually compiled into the application that requires the static library.&amp;nbsp; I would request that this issue be addressed so that legacy applications can be built properly.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 21:24:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1654815#M174797</guid>
      <dc:creator>Hiram_Brown</dc:creator>
      <dc:date>2025-01-06T21:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in IFX - Standalone BLOCK DATA Source File in Library</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1654818#M174798</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/404897"&gt;@Hiram_Brown&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is this bug still in work.&amp;nbsp; I see that it was reported a year ago.&amp;nbsp; I observed the same issue with my legacy applications.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;There is no fix.&lt;/P&gt;
&lt;P&gt;Please check the Release Notes&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/developer/articles/release-notes/oneapi-fortran-compiler-release-notes.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/developer/articles/release-notes/oneapi-fortran-compiler-release-notes.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Particularly this part under Known Issues:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;BLOCK DATA&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;On Windows systems, a subprogram built into a library that references a common block variable initialized in a BLOCK DATA subprogram that is compiled separately and linked with the library will not get initialized but will have a zero value.&amp;nbsp; The workaround for this problem is to compile the subprogram and the BLOCK DATA subprogram together, or pass the object file with&amp;nbsp;BLOCK DATA&amp;nbsp;separately&amp;nbsp;on the link line.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 21:39:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-in-IFX-Standalone-BLOCK-DATA-Source-File-in-Library/m-p/1654818#M174798</guid>
      <dc:creator>Devorah_H_Intel</dc:creator>
      <dc:date>2025-01-06T21:39:02Z</dc:date>
    </item>
  </channel>
</rss>

