[Wien] Intels Oneapi 2024: Compiler bug ?

Jan Doumont jan.doumont at tuwien.ac.at
Thu Jan 25 19:52:57 CET 2024


Dear Peter,

I could compile wien2k 23.2 with no issues using gfortran 13.2.1 (the 
version supplied with Fedora 39). I double checked the compile.msg of 
SRC_wplot and there are no errors.

Best Wishes

Jan Doumont



On 25/01/2024 19:00, Peter Blaha wrote:
> Dear users,
>
> Maybe there is a Fortran expert who knows if this syntax is correct or 
> not.
>
> A user reported recently a compilation problem using   the most recent 
> ifort (or ifx, which will become soon the new fortran compiler) 
> (oneapi-2024.0)   in SRC_wplot:
>
> ifx -O -FR -mp1 -w -prec_div -pc80 -pad -ip -DINTEL_VML -traceback 
> -assume buffered_io -I/home/aarav/intel/mkl/2024.0/include 
> -DHAVE_PTR_ALLOC_GENERICS -Ilib -free -gen-interface nosource 
> -traceback -g -I../SRC_w2w/lib -I../SRC_w2w/lib -c modules.f 
> -olib/modules.o -module lib
> modules.f(195): error #6911: The syntax of this substring is invalid. 
> [CART]
>        inw%grid%len = (/( sqrt(sum( inw%grid%Cart(:,i)**2 )), i=1,3 )/)
> ---------------------------------------------^
>
> So the error is in line 195 of SRC_wplot/modules.f.
>
> It appear ONLY with the most recent oneapi 2024.0, not with older 
> versions nor with gfortran-12.
>
> Thus the question is: Is this a compiler bug or is this due to a very 
> new fortran-standard which this version enforces ?
> Has anybody an even newer gfortran (higher than version 12) and can 
> test it with this compiler ?
>
> Best regards
> Peter Blaha



More information about the Wien mailing list