nncarlson / petaca

Petaca: A collection of foundational Fortran modules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ICE when compiling with Intel ifx

zjibben opened this issue · comments

Using Intel ifx 2024.0:

$ make
[  1%] Building Fortran object src/CMakeFiles/petaca.dir/fortran_dynamic_loader.F90.o
[  3%] Building Fortran object src/CMakeFiles/petaca.dir/yajl_fort.F90.o
[  4%] Building Fortran object src/CMakeFiles/petaca.dir/json.F90.o
[  6%] Building Fortran object src/CMakeFiles/petaca.dir/map_any_type.F90.o
[  8%] Building Fortran object src/CMakeFiles/petaca.dir/parameter_entry_class.F90.o
[  9%] Building Fortran object src/CMakeFiles/petaca.dir/parameter_list_type.F90.o
[ 11%] Building Fortran object src/CMakeFiles/petaca.dir/parameter_list_json.F90.o
[ 13%] Building Fortran object src/CMakeFiles/petaca.dir/secure_hash/secure_hash_class.F90.o
[ 14%] Building Fortran object src/CMakeFiles/petaca.dir/secure_hash/md5_hash_type.F90.o
[ 16%] Building Fortran object src/CMakeFiles/petaca.dir/secure_hash/sha1_hash_type.F90.o
[ 18%] Building Fortran object src/CMakeFiles/petaca.dir/secure_hash/secure_hash_factory.F90.o
[ 19%] Building Fortran object src/CMakeFiles/petaca.dir/state_history_type.F90.o
[ 21%] Building Fortran object src/CMakeFiles/petaca.dir/timer_tree_type.F90.o
[ 22%] Building Fortran object src/CMakeFiles/petaca.dir/f90_assert.F90.o
[ 24%] Building C object src/CMakeFiles/petaca.dir/yajl_ext.c.o
[ 26%] Linking Fortran shared library libpetaca.so
[ 26%] Built target petaca
[ 27%] Building Fortran object test/fortran_dynamic_loader/CMakeFiles/test_fortran_dynamic_loader.dir/test_fortran_dynamic_loader.F90.o
 #0 0x0000000002394df7 (/opt/intel/oneapi/compiler/2024.0/bin/compiler/xfortcom+0x2394df7)
 #1 0x0000000002394f20 (/opt/intel/oneapi/compiler/2024.0/bin/compiler/xfortcom+0x2394f20)
 #2 0x000014968ac5c710 (/usr/lib/libc.so.6+0x3e710)
 #3 0x00000000036873d6 (/opt/intel/oneapi/compiler/2024.0/bin/compiler/xfortcom+0x36873d6)
 #4 0x0000000003684e8f (/opt/intel/oneapi/compiler/2024.0/bin/compiler/xfortcom+0x3684e8f)
 #5 0x000000000329d5bd (/opt/intel/oneapi/compiler/2024.0/bin/compiler/xfortcom+0x329d5bd)
 #6 0x00000000026d10e3 (/opt/intel/oneapi/compiler/2024.0/bin/compiler/xfortcom+0x26d10e3)
 #7 0x00000000022e19fd (/opt/intel/oneapi/compiler/2024.0/bin/compiler/xfortcom+0x22e19fd)
 #8 0x0000000002f425b4 (/opt/intel/oneapi/compiler/2024.0/bin/compiler/xfortcom+0x2f425b4)
 #9 0x00000000032ae80d (/opt/intel/oneapi/compiler/2024.0/bin/compiler/xfortcom+0x32ae80d)
#10 0x0000000002f3dc45 (/opt/intel/oneapi/compiler/2024.0/bin/compiler/xfortcom+0x2f3dc45)
#11 0x0000000003297e0d (/opt/intel/oneapi/compiler/2024.0/bin/compiler/xfortcom+0x3297e0d)
#12 0x0000000002f4027d (/opt/intel/oneapi/compiler/2024.0/bin/compiler/xfortcom+0x2f4027d)
#13 0x00000000032aeafd (/opt/intel/oneapi/compiler/2024.0/bin/compiler/xfortcom+0x32aeafd)
#14 0x0000000002f3f33a (/opt/intel/oneapi/compiler/2024.0/bin/compiler/xfortcom+0x2f3f33a)
#15 0x0000000003297fed (/opt/intel/oneapi/compiler/2024.0/bin/compiler/xfortcom+0x3297fed)
#16 0x00000000026cfce3 (/opt/intel/oneapi/compiler/2024.0/bin/compiler/xfortcom+0x26cfce3)
#17 0x00000000032fcb75 (/opt/intel/oneapi/compiler/2024.0/bin/compiler/xfortcom+0x32fcb75)
#18 0x000000000329a7ad (/opt/intel/oneapi/compiler/2024.0/bin/compiler/xfortcom+0x329a7ad)
#19 0x00000000026cfce3 (/opt/intel/oneapi/compiler/2024.0/bin/compiler/xfortcom+0x26cfce3)
#20 0x00000000022c9d9a (/opt/intel/oneapi/compiler/2024.0/bin/compiler/xfortcom+0x22c9d9a)
#21 0x00000000022c7d6d (/opt/intel/oneapi/compiler/2024.0/bin/compiler/xfortcom+0x22c7d6d)
#22 0x0000000002270263 (/opt/intel/oneapi/compiler/2024.0/bin/compiler/xfortcom+0x2270263)
#23 0x0000000002452e7e (/opt/intel/oneapi/compiler/2024.0/bin/compiler/xfortcom+0x2452e7e)
#24 0x000014968ac45cd0 (/usr/lib/libc.so.6+0x27cd0)
#25 0x000014968ac45d8a __libc_start_main (/usr/lib/libc.so.6+0x27d8a)
#26 0x00000000020ab129 (/opt/intel/oneapi/compiler/2024.0/bin/compiler/xfortcom+0x20ab129)

/tmp/ifx1027734257LAoUzI/ifxXBrFOe.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 /home/zjibben/codes/telluride/petaca/build/test/fortran_dynamic_loader/test_fortran_dynamic_loader.F90 (code 3)
make[2]: *** [test/fortran_dynamic_loader/CMakeFiles/test_fortran_dynamic_loader.dir/build.make:75: test/fortran_dynamic_loader/CMakeFiles/test_fortran_dynamic_loader.dir/test_fortran_dynamic_loader.F90.o] Error 3
make[1]: *** [CMakeFiles/Makefile2:403: test/fortran_dynamic_loader/CMakeFiles/test_fortran_dynamic_loader.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

I've pushed a commit that works around this compiler bug. All tests are passing for me now with ifx 2024.0.0.
I reported the bug to Intel here, and the reproducer is also here.