NOAA-EMC / NCEPLIBS-grib_util

This is a collection of NCEP GRIB related utilities.
Other
19 stars 11 forks source link

Compile failure using latest LLVM based OneAPI fortran compiler (ifx) #206

Closed dkokron closed 1 year ago

dkokron commented 1 year ago

/opt/intel/oneapi/compiler/2023.1.0/linux/bin/ifx -isystem /home/dkokron/opt/intelLLVM-2023.1.0/g2/3.4.5/include_d -isystem /home/dkokron/opt/intelLLVM-2023.1.0/libpng/1.6.35/include -isystem /home/dkokron/opt/intelLLVM-2023.1.0/zlib/1.2.11/include -isystem /home/dkokron/opt/intelLLVM-2023.1.0/bacio/2.4.1/include_4 -isystem /home/dkokron/opt/intelLLVM-2023.1.0/w3emc/2.9.2/include_d -isystem /home/dkokron/opt/intelLLVM-2023.1.0/ip/3.3.3/include_d -isystem /home/dkokron/opt/intelLLVM-2023.1.0/sp/2.3.3/include_d -g -r8 -auto -convert big_endian -fpp -fPIC -w -O3 -g -r8 -auto -convert big_endian -fpp -fPIC -w -fiopenmp -c /home/dkokron/Projects/NCEP/UFS/hpc-stack/pkg/grib_util-v1.2.4/src/copygb2/copygb2.F90 -o CMakeFiles/copygb2.dir/copygb2.F90.o

/home/dkokron/Projects/NCEP/UFS/hpc-stack/pkg/grib_util-v1.2.4/src/copygb2/copygb2.F90(956): error #6633: The type of the actual argument differs from the type of the dummy argument. [FLD] GFLD1%FLD,GFLDV%FLD,IGDTN,KGDTI,MI, & ------------------^ /home/dkokron/Projects/NCEP/UFS/hpc-stack/pkg/grib_util-v1.2.4/src/copygb2/copygb2.F90(956): error #6633: The type of the actual argument differs from the type of the dummy argument. [FLD] GFLD1%FLD,GFLDV%FLD,IGDTN,KGDTI,MI, & ----------------------------^ /home/dkokron/Projects/NCEP/UFS/hpc-stack/pkg/grib_util-v1.2.4/src/copygb2/copygb2.F90(1110): error #6633: The type of the actual argument differs from the type of the dummy argument. [FLD] KM,IBM,GFLDM%BMAP,GFLDM%FLD,GFLDMV%FLD, & ------------------------------------------^ /home/dkokron/Projects/NCEP/UFS/hpc-stack/pkg/grib_util-v1.2.4/src/copygb2/copygb2.F90(1110): error #6633: The type of the actual argument differs from the type of the dummy argument. [FLD] KM,IBM,GFLDM%BMAP,GFLDM%FLD,GFLDMV%FLD, & -----------------------------------------------------^ /home/dkokron/Projects/NCEP/UFS/hpc-stack/pkg/grib_util-v1.2.4/src/copygb2/copygb2.F90(1167): error #6795: The target must be of the same type and kind type parameters as the pointer. [FLD] GFLD1%FLD => F1I -------------^ /home/dkokron/Projects/NCEP/UFS/hpc-stack/pkg/grib_util-v1.2.4/src/copygb2/copygb2.F90(1174): error #6795: The target must be of the same type and kind type parameters as the pointer. [FLD] GFLD1%FLD => G1I ----------------^ /home/dkokron/Projects/NCEP/UFS/hpc-stack/pkg/grib_util-v1.2.4/src/copygb2/copygb2.F90(1204): error #6106: Not a valid argument for ASSOCIATE or SELECT TYPE. [ASSOCIATED] IF (ASSOCIATED(GFLD1%FLD,G1I)) then -------------------^

edwardhartnett commented 1 year ago

Yes.

This is old old code. I don't know how to fix this, do you?

dkokron commented 1 year ago

Ed, I'll need to investigate further. Might have something to do with C/Fortran interoperability. Dan

On Fri, Apr 14, 2023 at 10:27 AM Edward Hartnett @.***> wrote:

Yes.

This is old old code. I don't know how to fix this, do you?

— Reply to this email directly, view it on GitHub https://github.com/NOAA-EMC/NCEPLIBS-grib_util/issues/206#issuecomment-1508792379, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACODV2GPZ2DDUGEDNPXOXGTXBFUGNANCNFSM6AAAAAAW2VPTPA . You are receiving this because you authored the thread.Message ID: @.***>

edwardhartnett commented 1 year ago

OK, we just added support for OneAPI compiler, and it's tested on the CI. This is also now supported in the g2 library.

Reopen this issue or open a new one if this doesn't work for you.