Skip to content

Compilation error when building RegCM with OASIS-MCT and CLM4.5 using Intel OneAPI 2025 #91

Description

@arief121

Hi everyone,

I'm currently trying to install RegCM coupled with OASIS-MCT on our server using Intel OneAPI 2025 (ifx/icx compilers).

Earlier, I successfully compiled OASIS-MCT. I also tried compiling RegCM with CLM4.5 alone (without OASIS), and it built without any issues. However, when I enable both CLM4.5 and OASIS-MCT during the configuration, the compilation fails at mod_oasis_regcm_field.F90.

Here is the build error output I encountered during make:

./configure FC=mpiifx --enable-clm45 --enable-oasis --with-oasis-path=/home/arief-rahman/model/oasis3-mct/intel_oneapi --with-netcdf=$PREFIX

make

mod_oasis_regcm_field.F90(137): error #8212: Omitted component is not initialized. Component initialization missing: [TP] [ regcm_oasis_field_3d(0,'RCM_TSOI', .false.,null( ),null( ),null( )), & ------^ mod_oasis_regcm_field.F90(137): error #9211: In a structure constructor, the intrinsic function NULL must only be used for a POINTER or ALLOCATABLE component. [NZ] [ regcm_oasis_field_3d(0,'RCM_TSOI', .false.,null( ),null( ),null( )), & -----------------------------------------------------------------^ mod_oasis_regcm_field.F90(136): error #6680: A constant is not permitted in this context. type(regcm_oasis_field_3d), dimension(oasis_3d_maxfields) :: exch_3d = & ^ mod_oasis_regcm_field.F90(138): error #8212: Omitted component is not initialized. Component initialization missing: [TP] regcm_oasis_field_3d(0,'RCM_H2OV', .false.,null( ),null( ),null( )), & ------^ mod_oasis_regcm_field.F90(138): error #9211: In a structure constructor, the intrinsic function NULL must only be used for a POINTER or ALLOCATABLE component. [NZ] regcm_oasis_field_3d(0,'RCM_H2OV', .false.,null( ),null( ),null( )), & -----------------------------------------------------------------^ mod_oasis_regcm_field.F90(139): error #8212: Omitted component is not initialized. Component initialization missing: [TP] regcm_oasis_field_3d(0,'RCM_H2OL', .false.,null( ),null( ),null( )), & ------^ mod_oasis_regcm_field.F90(139): error #9211: In a structure constructor, the intrinsic function NULL must only be used for a POINTER or ALLOCATABLE component. [NZ] regcm_oasis_field_3d(0,'RCM_H2OL', .false.,null( ),null( ),null( )), & -----------------------------------------------------------------^ mod_oasis_regcm_field.F90(140): error #8212: Omitted component is not initialized. Component initialization missing: [TP] regcm_oasis_field_3d(0,'RCM_H2OI', .false.,null( ),null( ),null( )), & ------^ mod_oasis_regcm_field.F90(140): error #9211: In a structure constructor, the intrinsic function NULL must only be used for a POINTER or ALLOCATABLE component. [NZ] regcm_oasis_field_3d(0,'RCM_H2OI', .false.,null( ),null( ),null( )), & -----------------------------------------------------------------^ mod_oasis_regcm_field.F90(141): error #8212: Omitted component is not initialized. Component initialization missing: [TP] regcm_oasis_field_3d(0,'RCM_FVOC', .false.,null( ),null( ),null( )), & ------^ mod_oasis_regcm_field.F90(141): error #9211: In a structure constructor, the intrinsic function NULL must only be used for a POINTER or ALLOCATABLE component. [NZ] regcm_oasis_field_3d(0,'RCM_FVOC', .false.,null( ),null( ),null( )), & -----------------------------------------------------------------^ mod_oasis_regcm_field.F90(142): error #8212: Omitted component is not initialized. Component initialization missing: [TP] regcm_oasis_field_3d(0,'RCM_FDST', .false.,null( ),null( ),null( )), & ------^ mod_oasis_regcm_field.F90(142): error #9211: In a structure constructor, the intrinsic function NULL must only be used for a POINTER or ALLOCATABLE component. [NZ] regcm_oasis_field_3d(0,'RCM_FDST', .false.,null( ),null( ),null( )), & -----------------------------------------------------------------^ mod_oasis_regcm_field.F90(143): error #8212: Omitted component is not initialized. Component initialization missing: [TP] regcm_oasis_field_3d(0,'RCM_DDVEL',.false.,null( ),null( ),null( )) ] ------^ mod_oasis_regcm_field.F90(143): error #9211: In a structure constructor, the intrinsic function NULL must only be used for a POINTER or ALLOCATABLE component. [NZ] regcm_oasis_field_3d(0,'RCM_DDVEL',.false.,null( ),null( ),null( )) ] -----------------------------------------------------------------^ mod_oasis_regcm_field.F90(164): error #6796: The variable must have the TARGET attribute or be a subobject of an object with the TARGET attribute, or it must have the POINTER attribute. [EXCH_2D] call add_field(flist, exch_2d(i)) ----------------------------^ mod_oasis_regcm_field.F90(164): error #7496: A non-pointer actual argument shall have a TARGET attribute when associated with a pointer dummy argument. [EXCH_2D] call add_field(flist, exch_2d(i)) ----------------------------^ mod_oasis_regcm_field.F90(167): error #6796: The variable must have the TARGET attribute or be a subobject of an object with the TARGET attribute, or it must have the POINTER attribute. [EXCH_3D] call add_field(flist, exch_3d(i)) ----------------------------^ mod_oasis_regcm_field.F90(167): error #7496: A non-pointer actual argument shall have a TARGET attribute when associated with a pointer dummy argument. [EXCH_3D] call add_field(flist, exch_3d(i)) ----------------------------^ compilation aborted for mod_oasis_regcm_field.F90 (code 1) make[3]: *** [Makefile:626: mod_oasis_regcm_field.o] Error 1 make[3]: Leaving directory '/home/arief-rahman/model/RegCM_OASIS/RegCM/Main/oasislib' make[2]: *** [Makefile:612: all-recursive] Error 1 make[2]: Leaving directory '/home/arief-rahman/model/RegCM_OASIS/RegCM/Main' make[1]: *** [Makefile:432: all-recursive] Error 1 make[1]: Leaving directory '/home/arief-rahman/model/RegCM_OASIS/RegCM' make: *** [Makefile:364: all] Error 2

Has anyone encountered this issue with Intel OneAPI 2025, or is there a recommended patch/flag to bypass or fix this? Any guidance or suggestions would be greatly appreciated as I'm working on this for my research/study.

Thank you so much for your time and help!

Best regards,

Arief

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions