NVFORTRAN (based on flang-17) does not support some F2008 features that are required here (flang-19+ should work)
Suggest using gfortran instead. Satish On Fri, 1 Aug 2025, Renato E Poli wrote: > Hi, > > I see the error below when compiling with --with-cuda. > > Any suggestion? > > > CC arch-linux-c-opt/obj/src/mat/impls/aij/seq/inode2.o > CC arch-linux-c-opt/obj/src/mat/impls/aij/seq/aijperm/aijperm.o > CC arch-linux-c-opt/obj/src/mat/impls/aij/seq/mattransposematmult.o > CC arch-linux-c-opt/obj/src/mat/impls/aij/seq/matptap.o > CC arch-linux-c-opt/obj/src/mat/impls/aij/seq/matrart.o > FC arch-linux-c-opt/obj/src/sys/ftn-mod/petscsysmod.o > NVFORTRAN-S-0034-Syntax error at or near end of line > (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 6) > NVFORTRAN-S-0034-Syntax error at or near end of line > (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 18) > NVFORTRAN-S-0034-Syntax error at or near end of line > (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 30) > NVFORTRAN-S-0034-Syntax error at or near end of line > (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 42) > NVFORTRAN-S-0034-Syntax error at or near end of line > (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 54) > NVFORTRAN-S-0034-Syntax error at or near end of line > (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 65) > NVFORTRAN-S-0034-Syntax error at or near end of line > (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 76) > NVFORTRAN-S-0034-Syntax error at or near end of line > (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 88) > NVFORTRAN-S-0034-Syntax error at or near end of line > (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 100) > NVFORTRAN-S-0034-Syntax error at or near end of line > (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 112) > NVFORTRAN-S-0034-Syntax error at or near end of line > (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 124) > NVFORTRAN-S-0034-Syntax error at or near end of line > (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 136) > NVFORTRAN-S-0034-Syntax error at or near end of line > (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 148) > NVFORTRAN-S-0034-Syntax error at or near end of line > (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 160) > NVFORTRAN-S-0034-Syntax error at or near end of line > (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscviewer.h: 6) > NVFORTRAN-S-0034-Syntax error at or near end of line > (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscviewer.h: > 17) > NVFORTRAN-S-0034-Syntax error at or near end of line > (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscoptions.h: > 6) > NVFORTRAN-S-0034-Syntax error at or near end of line > (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscoptions.h: > 18) > NVFORTRAN-S-0034-Syntax error at or near end of line > (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscoptions.h: > 30) > NVFORTRAN-S-0034-Syntax error at or near end of line > (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petsclog.h: 5) > NVFORTRAN-S-0034-Syntax error at or near end of line > (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petsclog.h: 17) > NVFORTRAN-S-0034-Syntax error at or near end of line > (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petsclog.h: 29) > NVFORTRAN-S-0034-Syntax error at or near end of line > (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscdevice.h: 6) > NVFORTRAN-S-0034-Syntax error at or near end of line > (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscdevice.h: > 17) > 0 inform, 0 warnings, 24 severes, 0 fatal for petscsysdef >