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

Bug in ifx 2023.0.0?

andreasskeidsvoll
166 Views

The following minimal example

 

module module_name

  type :: object

    integer :: i

  contains

    final :: finalize_object

  end type object

  interface object

    procedure :: intialize_object

  end interface object

contains

  function intialize_object() result(this)

    type(object) :: this

    this%i = 0

  end function intialize_object

  subroutine finalize_object(this)

    type(object) :: this

  end subroutine finalize_object

  subroutine first_subroutine()

    type(object) :: object_instance

    object_instance = object()

  end subroutine first_subroutine

  subroutine second_subroutine()

    type(object) :: object_instance

    object_instance = object()

  end subroutine second_subroutine

end module module_name

 

fails compile with ifx 2023.0.0 with the -fopenmp flag

 

ifx main.F90 -c -fopenmp

 

on my Dell Latitude 7410 laptop with Ubuntu 22.10, giving the following error message

 

/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x1f563ca]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x1bef70e]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x1c55e52]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x1c55f80]
/lib/x86_64-linux-gnu/libc.so.6(+0x3bcf0)[0x7f539163bcf0]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x38bd73f]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x38bc334]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x38b98d1]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x2d1fcfd]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x2031303]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x2d1ad2d]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x2847992]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x2d303ed]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x28435ea]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x2b6549d]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x2845b88]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x2b658bd]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x2844b9c]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x2b6567d]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x202fe87]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x2b622fb]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x2d1dabd]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x202fe87]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x1b96f59]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x1b955dd]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x1b44a74]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x1d028ee]
/lib/x86_64-linux-gnu/libc.so.6(+0x23510)[0x7f5391623510]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x89)[0x7f53916235c9]
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/xfortcom[0x1982da9]

/tmp/ifx0396505090Uv3g06/ifxClMdEY.i90: error #5633: **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 main.F90 (code 3)

 

 For some reason, the compilation succeeds when any of the subroutines or the -fopenmp flag is removed. Is this a bug in the compiler?

0 Kudos
1 Solution
Barbara_P_Intel
Moderator
126 Views

Thanks for reporting this. It sounds familiar, but I can't find a bug report. I filed a new one, CMPLRLLVM-42903.

This compiles OK with ifort -qopenmp.

FYI... -qopenmp and -fiopenmp are equivalent. -fopenmp is deprecated. I've been told that -qopenmp has some Intel enhancements, no proof tho.



View solution in original post

2 Replies
andreasskeidsvoll
162 Views

Tested with the -qopenmp and -fiopenmp flags, giving the same error.

Barbara_P_Intel
Moderator
127 Views

Thanks for reporting this. It sounds familiar, but I can't find a bug report. I filed a new one, CMPLRLLVM-42903.

This compiles OK with ifort -qopenmp.

FYI... -qopenmp and -fiopenmp are equivalent. -fopenmp is deprecated. I've been told that -qopenmp has some Intel enhancements, no proof tho.



Reply