Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28384 Discussions

An ICE with ifort (IFORT) 2021.5.0 20211109 using coarray=shared compiler flag

jdelia
New Contributor I
920 Views

Dear developers,

Apologies in advance because I'm a new user in this forum and I don't know if this is the right place to report a Software Problem Report.

Below there is a simple session with a reduced test case (please see attached file) that produces an Internal Compiler Error (ICE) with the ifort compiler using Fedora 35 on a x86_64-pc-linux-gnu machine, but it is ok with the gfortran one.

Regards.
Jorge.

$ cat /proc/cpuinfo
  Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz

$ cat /proc/version
Linux version 5.15.16-200.fc35.x86_64 (mockbuild@bkernel01.iad2.fedoraproject.org) (gcc (GCC) 11.2.1 20211203 (Red Hat 11.2.1-7), GNU ld version 2.37-10.fc35) #1 SMP Thu Jan 20 15:38:18 UTC 2022

$ which ifort
/opt/intel/oneapi/compiler/2022.0.2/linux/bin/intel64/ifort

$ ifort --version
ifort (IFORT) 2021.5.0 20211109
Copyright (C) 1985-2021 Intel Corporation. All rights reserved.

$ ifort -c -coarray=shared -std18 -O0 -warn all -WB -Winline bug-ice-03.f90
bug-ice-03.f90(6): warning #5268: Extension to standard: The text exceeds right hand column allowed on the line.
! Linux version 5.15.16-200.fc35.x86_64 (mockbuild@bkernel01.iad2.fedoraproject.org) (gcc (GCC) 11.2.1 20211203 (Red Hat 11.2.1-7), GNU ld version 2.37-10.fc35) #1 SMP Thu Jan 20 15:38:18 UTC 2022
----------------------------------------------------------------------------------------
bug-ice-03.f90(42): catastrophic error: **Internal compiler error: internal abort** 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-ice-03.f90 (code 1)

$ which mpifort
/usr/beta/openmpi/bin/mpifort

$ mpifort --version
GNU Fortran (GCC) 12.0.0 20220101 (experimental)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ mpifort -c -march=native -mtune=native -fall-intrinsics -fargument-alias -fautomatic -fcoarray=lib -fimplicit-none -fmax-errors=4 -fPIC -std=f2018 -Wall -Waliasing -Warray-temporaries -Wcharacter-truncation -Werror -Wextra -Wimplicit-interface -Wimplicit-procedure -Wintrinsic-shadow -Wline-truncation -Wrealloc-lhs-all -Wsurprising -Wtabs -Wunused-parameter -Wuninitialized -Wunsafe-loop-optimizations -O3 bug-ice-03.f90

$

Labels (1)
0 Kudos
1 Solution
Barbara_P_Intel
Moderator
627 Views

This ICE is fixed in the Fortran compilers, ifort 2021.7.0 and ifx 2022.2.0, that were released earlier this month. Both compilers are available as part of the oneAPI HPC Toolkit.

Give it a try!



View solution in original post

3 Replies
Barbara_P_Intel
Moderator
876 Views

Thank you for reporting this ICE. I filed a bug report on your behalf, CMPLRIL0-34546. I'll let you know when it's fixed.



0 Kudos
jdelia
New Contributor I
847 Views

Dear Barbara: ok, I will look forward to hearing from you when it is fixed. Thanks! Regards. Jorge.

0 Kudos
Barbara_P_Intel
Moderator
628 Views

This ICE is fixed in the Fortran compilers, ifort 2021.7.0 and ifx 2022.2.0, that were released earlier this month. Both compilers are available as part of the oneAPI HPC Toolkit.

Give it a try!



Reply