[MITgcm-support] [EXTERNAL] Re: Compiling Problems

Jody Klymak jklymak at uvic.ca
Wed Aug 14 13:14:11 EDT 2024


Hi Madeleine

When I have linking problems like this I sometimes fine `make CLEAN` to be a useful step if I’m not starting from a clean install.

Just a shot in the dark.

Cheers,  Jody

On Aug 14, 2024, at 10:05 AM, Wang, Ou (US 329B) <ou.wang at jpl.nasa.gov> wrote:

You don't often get email from ou.wang at jpl.nasa.gov<mailto:ou.wang at jpl.nasa.gov>. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
Hi Madeleine,

Can you share your version of diagnostics_ini_io.f and diagnostics_ini_io.F? I would think the error is related to a broken link to “DIAGNOSTICS.h”, not something related to the opt file. Also, did the compilation successfully generate diagnostics_check.f, which uses the variable “diagMdsDir” as well?
It would be helpful if you can also share your versions of diagnostics_check.f and diagnostics_check.F.

Best,
Ou Wang


From: MITgcm-support <mitgcm-support-bounces at mitgcm.org<mailto:mitgcm-support-bounces at mitgcm.org>> on behalf of Madeleine Youngs <myoungs at umd.edu<mailto:myoungs at umd.edu>>
Date: Tuesday, August 13, 2024 at 8:08 PM
To: mitgcm-support at mitgcm.org<mailto:mitgcm-support at mitgcm.org> <mitgcm-support at mitgcm.org<mailto:mitgcm-support at mitgcm.org>>
Subject: [EXTERNAL] Re: [MITgcm-support] Compiling Problems
Hi Takaya,

That didn’t seem to fix the issue, but thank you for sending this along!

Madeleine


On Aug 13, 2024, at 6:10 PM, Takaya Uchida <tu22 at fsu.edu<mailto:tu22 at fsu.edu>> wrote:

Hi Madeleine,

I’ve copy and pasted below the opt file I ended up using to compile MITgcm on Derecho.

#
# Build options for Derecho at NCAR
#

FC=ftn
CC=cc
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4 -DNML_TERMINATOR'
CPP='cpp -P -traditional'
EXTENDED_SRC_FLAG='-132'
NOOPTFLAGS='-O2 -g -march=core-avx2'
LIBS=''
INCLUDES='-I/opt/cray/pe/mpich/8.1.25/ofi/intel/19.0/include/'

if test "x$DEVEL" != x ; then
    FFLAGS="$FFLAGS  -W0 -WB -convert big_endian -assume byterecl -fPIC -O0 -g -noalign -fpstkchk -check all -fpe0 -traceback -ftrapuv -fpmodel except -warn all -march=core-avx2"
else
    FFLAGS="$FFLAGS  -W0 -WB -convert big_endian -assume byterecl -fPIC -march=core-avx2 -g"
fi

if test "x$IEEE" = x ; then
        FOPTIM='-O2 -align -ip'
        else
        FOPTIM='-O2 -align -ip -mp'
fi
CFLAGS='-O2 -ip -fPIC'

The list of modules I load are:

module load ncarenv/23.09 craype/2.7.23 intel-classic/2023.2.1 ncarcompilers/1.0.0 cray-mpich/8.1.27 hdf5/1.12.2 netcdf/4.9.2

----------------------------------
Takaya Uchida (内田貴也)
Assistant Research Scientist
Florida State University
Center for Ocean-Atmospheric Prediction Studies
https://roxyboy.github.io/<https://urldefense.us/v3/__https:/roxyboy.github.io/__;!!PvBDto6Hs4WbVuu7!NnRx5vlbDYZWIRraW2gZnWzzXsE782jeSZ_0N-DP52xAVkHbj-uEwC3rZ_U5PHL8Ay0r9294n_QD_ImbsRJV$>

<Center for Ocean-Atmospheric Prediction Studies signature alt.png>


On Aug 13, 2024, at 8:51 PM, Madeleine Youngs <myoungs at umd.edu<mailto:myoungs at umd.edu>> wrote:

Hi Everyone,

I am working on compiling checkpoint68y on Derecho using no opt file (?) and I am getting this error.  Any advice on what the issue is?


mpif90 -W0 -WB -msse2 -convert big_endian -assume byterecl -O2 -align -lmpich -lnetcdff -lnetcdf  -c diagnostics_fract_fill.f
cat diagnostics_ini_io.F |  cpp  -traditional -P -DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4 -DALLOW_USE_MPI -DHAVE_SYSTEM -DHAVE_FDATE -DHAVE_ETIME_FCT -DHAVE_CLOC -DHAVE_SETRLSTK -DHAVE_SIGREG -DHAVE_STAT -DHAVE_FLUSH  -I.  | ../../../tools/set64bitConst.sh  > diagnostics_ini_io.f
mpif90 -W0 -WB -msse2 -convert big_endian -assume byterecl -O2 -align -lmpich -lnetcdff -lnetcdf  -c diagnostics_ini_io.f
Cannot disable Fortran error message 6404
diagnostics_ini_io.f(2005): error #6404: This name does not have a type, and must have an explicit type.   [DIAGMDSDIR]
      IF ( diag_mdsio .AND. (diagMdsDir.NE.' ') .AND.
-----------------------------^
Cannot disable Fortran error message 6404
diagnostics_ini_io.f(2006): error #6404: This name does not have a type, and must have an explicit type.   [DIAGMDSDIRCREATE]
     &     diagMdsDirCreate .AND. (mdsioLocalDir.EQ.' ') ) THEN
-----------^
Cannot disable Fortran error message 6514
diagnostics_ini_io.f(2009): error #6514: Substring or array slice notation requires CHARACTER type or array.   [DIAGMDSDIR]
        WRITE(namBuf,'(3A)') ' mkdir -p ', diagMdsDir(1:iL), ' '
-------------------------------------------^
compilation aborted for diagnostics_ini_io.f (code 1)
make[1]: *** [Makefile:1776: diagnostics_ini_io.o] Error 1
make[1]: Leaving directory '/glade/derecho/scratch/myoungs/MITgcm/MultiWidthExperiments/Present9.20.16/build'
make: *** [Makefile:1688: fwd_exe_target] Error 2




Thanks,
Madeleine
_______________________________________________
MITgcm-support mailing list
MITgcm-support at mitgcm.org<mailto:MITgcm-support at mitgcm.org>
http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support<https://urldefense.us/v3/__http:/mailman.mitgcm.org/mailman/listinfo/mitgcm-support__;!!PvBDto6Hs4WbVuu7!NnRx5vlbDYZWIRraW2gZnWzzXsE782jeSZ_0N-DP52xAVkHbj-uEwC3rZ_U5PHL8Ay0r9294n_QD_GmOPdGy$>

_______________________________________________
MITgcm-support mailing list
MITgcm-support at mitgcm.org<mailto:MITgcm-support at mitgcm.org>
http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support<https://urldefense.us/v3/__http:/mailman.mitgcm.org/mailman/listinfo/mitgcm-support__;!!PvBDto6Hs4WbVuu7!NnRx5vlbDYZWIRraW2gZnWzzXsE782jeSZ_0N-DP52xAVkHbj-uEwC3rZ_U5PHL8Ay0r9294n_QD_GmOPdGy$>

_______________________________________________
MITgcm-support mailing list
MITgcm-support at mitgcm.org<mailto:MITgcm-support at mitgcm.org>
http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mitgcm.org/pipermail/mitgcm-support/attachments/20240814/87713deb/attachment-0001.html>


More information about the MITgcm-support mailing list