<?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: Internal Compiler Error in ifort 2019+ in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Internal-Compiler-Error-in-ifort-2019/m-p/1248616#M153976</link>
    <description>&lt;P&gt;I'll open a bug report.&amp;nbsp; thanks for bringing this to our attention&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jan 2021 15:05:52 GMT</pubDate>
    <dc:creator>Ron_Green</dc:creator>
    <dc:date>2021-01-21T15:05:52Z</dc:date>
    <item>
      <title>Internal Compiler Error in ifort 2019+</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Internal-Compiler-Error-in-ifort-2019/m-p/1247738#M153929</link>
      <description>Hi,
the below code causes a crash with ifort/ifx 2019+ including ifort (IFORT) 2021.1.2 20201208 and ifx (IFORT) 2021.1.2 Beta 20201214

$ cat bug.f90
module exception_callback
  public :: f_err_set_callback
contains
  subroutine f_err_set_callback(callback)
    external :: callback
  end subroutine f_err_set_callback
end module exception_callback

module set_callback
   use exception_callback
   private
   public :: f_err_set_callback
end module set_callback

module main
  interface
     subroutine init()
       use set_callback
     end subroutine init
  end interface
end module main

end

$ ifort bug.f90
bug.f90: catastrophic error: **Internal compiler error: segmentation violation signal raised** Please report this error along with the circumstances in which it occurred in a Software Problem Report.  Note: File and line given may not be explicit cause of this error.
compilation aborted for bug.f90 (code 1)
$ ifx bug.f90
 #0 0x00000000019a20c2 __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x19a20c2)
 #1 0x00000000019a21f0 __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x19a21f0)
 #2 0x00002b6f2df00400 __restore_rt (/lib64/libc.so.6+0x36400)
 #3 0x000000000177e7cb __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x177e7cb)
 #4 0x00000000017565bf __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x17565bf)
 #5 0x00000000018c0dbc __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x18c0dbc)
 #6 0x000000000174a9a8 __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x174a9a8)
 #7 0x0000000001749c39 __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x1749c39)
 #8 0x000000000179bafb __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x179bafb)
 #9 0x00000000017a3337 __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x17a3337)
#10 0x000000000179c0b4 __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x179c0b4)
#11 0x0000000001796250 __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x1796250)
#12 0x00000000017ca5c4 __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x17ca5c4)
#13 0x00000000017cb8b4 __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x17cb8b4)
#14 0x000000000198de28 __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x198de28)
#15 0x00000000018c5d7c __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x18c5d7c)
#16 0x0000000001a28f18 __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x1a28f18)
#17 0x00002b6f2deec555 __libc_start_main (/lib64/libc.so.6+0x22555)
#18 0x00000000016e8182 __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x16e8182)

bug.f90: catastrophic error: **Internal compiler error: segmentation violation signal raised** Please report this error along with the circumstances in which it occurred in a Software Problem Report.  Note: File and line given may not be explicit cause of this error.
compilation aborted for bug.f90 (code 1)

The file was trimmed down from an actual crash compiling BigDFT 1.8.3.</description>
      <pubDate>Tue, 19 Jan 2021 14:44:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Internal-Compiler-Error-in-ifort-2019/m-p/1247738#M153929</guid>
      <dc:creator>Bart_O_</dc:creator>
      <dc:date>2021-01-19T14:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Compiler Error in ifort 2019+</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Internal-Compiler-Error-in-ifort-2019/m-p/1247741#M153930</link>
      <description>&lt;P&gt;Sorry, the formatting was messed up above. Here is the file again:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="fortran"&gt;module exception_callback
  public :: f_err_set_callback
contains
  subroutine f_err_set_callback(callback)
    external :: callback
  end subroutine f_err_set_callback
end module exception_callback

module set_callback
   use exception_callback
   private
   public :: f_err_set_callback
end module set_callback

module main
  interface
     subroutine init()
       use set_callback
     end subroutine init
  end interface
end module main

end
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 19 Jan 2021 14:47:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Internal-Compiler-Error-in-ifort-2019/m-p/1247741#M153930</guid>
      <dc:creator>Bart_O_</dc:creator>
      <dc:date>2021-01-19T14:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Compiler Error in ifort 2019+</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Internal-Compiler-Error-in-ifort-2019/m-p/1247744#M153931</link>
      <description>&lt;LI-CODE lang="none"&gt;$ ifort --version
ifort (IFORT) 2021.1.2 20201208
Copyright (C) 1985-2020 Intel Corporation.  All rights reserved.

$ ifx --version
ifx (IFORT) 2021.1.2 Beta 20201214
Copyright (C) 1985-2020 Intel Corporation. All rights reserved.

$ ifort bug.f90
bug.f90: catastrophic error: **Internal compiler error: segmentation violation signal raised** Please report this error along with the circumstances in which it occurred in a Software Problem Report.  Note: File and line given may not be explicit cause of this error.
compilation aborted for bug.f90 (code 1)

$ ifx bug.f90
 #0 0x00000000019a20c2 __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x19a20c2)
 #1 0x00000000019a21f0 __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x19a21f0)
 #2 0x00002b6f2df00400 __restore_rt (/lib64/libc.so.6+0x36400)
 #3 0x000000000177e7cb __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x177e7cb)
 #4 0x00000000017565bf __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x17565bf)
 #5 0x00000000018c0dbc __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x18c0dbc)
 #6 0x000000000174a9a8 __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x174a9a8)
 #7 0x0000000001749c39 __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x1749c39)
 #8 0x000000000179bafb __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x179bafb)
 #9 0x00000000017a3337 __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x17a3337)
#10 0x000000000179c0b4 __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x179c0b4)
#11 0x0000000001796250 __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x1796250)
#12 0x00000000017ca5c4 __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x17ca5c4)
#13 0x00000000017cb8b4 __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x17cb8b4)
#14 0x000000000198de28 __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x198de28)
#15 0x00000000018c5d7c __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x18c5d7c)
#16 0x0000000001a28f18 __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x1a28f18)
#17 0x00002b6f2deec555 __libc_start_main (/lib64/libc.so.6+0x22555)
#18 0x00000000016e8182 __tls_get_addr (/tmp/oldeman/easybuild_intel/oneapi/compiler/2021.1.2/linux/bin/xfortcom+0x16e8182)

bug.f90: catastrophic error: **Internal compiler error: segmentation violation signal raised** Please report this error along with the circumstances in which it occurred in a Software Problem Report.  Note: File and line given may not be explicit cause of this error.
compilation aborted for bug.f90 (code 1)
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 19 Jan 2021 14:52:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Internal-Compiler-Error-in-ifort-2019/m-p/1247744#M153931</guid>
      <dc:creator>Bart_O_</dc:creator>
      <dc:date>2021-01-19T14:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Compiler Error in ifort 2019+</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Internal-Compiler-Error-in-ifort-2019/m-p/1247746#M153932</link>
      <description>&lt;P&gt;You probably already know that but ICEs (internal compiler errors) are always serious errors, independent of whether your code is correct or not.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 14:58:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Internal-Compiler-Error-in-ifort-2019/m-p/1247746#M153932</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2021-01-19T14:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Compiler Error in ifort 2019+</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Internal-Compiler-Error-in-ifort-2019/m-p/1248605#M153971</link>
      <description>&lt;P&gt;Note that there are at least two ways to workaround the issue:&lt;/P&gt;
&lt;P&gt;1.&lt;/P&gt;
&lt;P&gt;use the import statement and move the use to module scope like this:&lt;/P&gt;
&lt;LI-CODE lang="fortran"&gt;module main
  use set_callback
  interface
     subroutine init()
       import set_callback
     end subroutine init
  end interface
end module main
&lt;/LI-CODE&gt;
&lt;P&gt;or using the original module directly instead of the one that wraps it:&lt;/P&gt;
&lt;LI-CODE lang="fortran"&gt;module main
  interface
     subroutine init()
       use exception_callback
     end subroutine init
  end interface
end module main
&lt;/LI-CODE&gt;
&lt;P&gt;the second method worked well for BigDFT (viz.&amp;nbsp;&lt;A href="https://github.com/ComputeCanada/easybuild-easyconfigs/blob/computecanada-master/easybuild/easyconfigs/b/BigDFT/ifort_no_ice.patch" target="_self"&gt;https://github.com/ComputeCanada/easybuild-easyconfigs/blob/computecanada-master/easybuild/easyconfigs/b/BigDFT/ifort_no_ice.patch&lt;/A&gt;&amp;nbsp; )&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 14:28:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Internal-Compiler-Error-in-ifort-2019/m-p/1248605#M153971</guid>
      <dc:creator>Bart_O_</dc:creator>
      <dc:date>2021-01-21T14:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Compiler Error in ifort 2019+</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Internal-Compiler-Error-in-ifort-2019/m-p/1248616#M153976</link>
      <description>&lt;P&gt;I'll open a bug report.&amp;nbsp; thanks for bringing this to our attention&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 15:05:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Internal-Compiler-Error-in-ifort-2019/m-p/1248616#M153976</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2021-01-21T15:05:52Z</dc:date>
    </item>
    <item>
      <title>Re:Internal Compiler Error in ifort 2019+</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Internal-Compiler-Error-in-ifort-2019/m-p/1248629#M153978</link>
      <description>&lt;P&gt;bug ID CMPLRLLVM-25770&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Jan 2021 15:51:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Internal-Compiler-Error-in-ifort-2019/m-p/1248629#M153978</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2021-01-21T15:51:54Z</dc:date>
    </item>
    <item>
      <title>Re:Internal Compiler Error in ifort 2019+</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Internal-Compiler-Error-in-ifort-2019/m-p/1364907#M160394</link>
      <description>&lt;P&gt;sorry for the late update - In reviewing older issues I found this report.  This bug was fixed in oneapi 2021.4 last year.  And I tested the latest ifort and ifx to confirm it's no longer causing Internal Compiler Error.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;ron&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Mar 2022 22:26:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Internal-Compiler-Error-in-ifort-2019/m-p/1364907#M160394</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2022-03-01T22:26:48Z</dc:date>
    </item>
  </channel>
</rss>

