I was compiling vasp 6.6.0: it compiled std but with gam I got:
mpiifort -free -names lowercase -w -xHOST -xHOST -O2 -I/cm/shared/apps/spack/0.21.2/cpu/opt/spack/linux-rocky9-skylake_avx512/oneapi-2023.2.1/intel-oneapi-mkl-2023.2.0-o4fdd3mu3qi67dhsie646al5q6tyuppp/mkl/2023.2.0/include/fftw -c rnd_orb_mp2.f90
fpp -f_com=no -free -w0 greens_real_space.F greens_real_space.f90 -DMPI -DMPI_BLOCK=8000 -Duse_collective -DCACHE_SIZE=4000 -Davoidalloc -Duse_bse_te -Dtbdyn -Duse_shmem -Dfock_dblbuf -DHOST=\"LinuxGNU\" -Dvasp6 -DscaLAPACK -DNGZhalf -DwNGZhalf
mpiifort -free -names lowercase -w -xHOST -xHOST -O2 -I/cm/shared/apps/spack/0.21.2/cpu/opt/spack/linux-rocky9-skylake_avx512/oneapi-2023.2.1/intel-oneapi-mkl-2023.2.0-o4fdd3mu3qi67dhsie646al5q6tyuppp/mkl/2023.2.0/include/fftw -c greens_real_space.f90
#0 0x00000000021c51e2
#1 0x0000000002228e97
#2 0x0000000002228fc0
#3 0x000015555503fc30
#4 0x0000000001fa57a5
#5 0x0000000001fd16f8
#6 0x0000000001fca483
#7 0x0000000001fa63e6
#8 0x0000000001fc554e
#9 0x0000000001fa65e2
#10 0x0000000001fd133a
#11 0x0000000001fc9427
#12 0x0000000001fa633b
#13 0x0000000001fa2df1
#14 0x0000000001fa20ea
#15 0x00000000020223dd
#16 0x000000000220e781
#17 0x0000000002111066
#18 0x00000000022e13ce
#19 0x000015555502a610
#20 0x000015555502a6c0 __libc_start_main + 128
#21 0x0000000001f51aa9
greens_real_space.f90: 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 greens_real_space.f90 (code 3)
make[2]: *** [makefile:195: greens_real_space.o] Error 3
This is with intel oneapi 2023.2.1 and intel-oneapi-mpi 2021.10.0 on a rocky 9 cluster

