./case.build error

RG5

Ir.5NA
New Member
Hello,

I'm facing issues when coming to ./case.build step following tutorial guidelines.

[...]
Calling /home/CESM/cime/src/components/stub_comps/sesp/cime_config/buildnml
Calling /home/CESM/cime/src/drivers/mct/cime_config/buildnml
Finished creating component namelists
Building gptl with output to file /home/CESM/projects/cesm/scratch/testrun3/bld/gptl.bldlog.250728-121939
Calling /home/CESM/cime/src/build_scripts/buildlib.gptl
[B]ERROR: /home/CESM/cime/src/build_scripts/buildlib.gptl FAILED, cat /home/CESM/projects/cesm/scratch/testrun3/bld/gptl.bldlog.250728-121939[/B]

I know this is related to some porting issue and compilers, but I can't figure out.
Here are the related lines in the [B]config_compilers.xml[/B]

<compiler COMPILER="gnu" MACH="NB">
<!-- LINUX -->
<CPPDEFS>
<append>-DFORTRANUNDERSCORE -DNO_R16</append>
</CPPDEFS>
<LDFLAGS>
<append compile_threaded="true"> -fopenmp </append>
</LDFLAGS>
<SFC>gfortran</SFC>
<SCC>gcc</SCC>
<SCXX>g++</SCXX>
<MPIFC>mpif90</MPIFC>
<MPICC>mpicc</MPICC>
<MPICXX>mpicxx</MPICXX>
<CXX_LINKER>FORTRAN</CXX_LINKER>
<SUPPORTS_CXX>TRUE</SUPPORTS_CXX>
<NETCDF_PATH>/opt/netcdf</NETCDF_PATH>
<PNETCDF_PATH>/home/CESM_dep/Libs/pnetcdf-1.12.3</PNETCDF_PATH>
<LAPACK_LIBDIR> /usr/lib/x86_64-linux-gnu/lapack </LAPACK_LIBDIR>
<SLIBS>
<append>-L/opt/netcdf/lib -lnetcdff -lnetcdf -lm</append>
<append>-L/usr/lib/x86_64-linux-gnu/ -lapack -L/usr/lib/x86_64-linux-gnu/ -lblas</append>
</SLIBS>
</compiler>


And the [B]config_machines.xml[/B] (btw both passed the xmllint --noout --schema test)

<machine MACH="NB">
<DESC>NB machine, os is Linux, 4 pes/node </DESC>
<NODENAME_REGEX>NB</NODENAME_REGEX>
<OS>LINUX</OS>
<COMPILERS>gnu</COMPILERS>
<MPILIBS>mpich</MPILIBS>
<CIME_OUTPUT_ROOT>/home/CESM/projects/cesm/scratch</CIME_OUTPUT_ROOT>
<DIN_LOC_ROOT>/home/CESM/projects/cesm/inputdata</DIN_LOC_ROOT>
<DIN_LOC_ROOT_CLMFORC>/home/CESM/projects/cesm/inputdata/atm/datm7</DIN_LOC_ROOT_CLMFORC>
<DOUT_S_ROOT>/home/CESM/projects/cesm/archive/case</DOUT_S_ROOT>
<BASELINE_ROOT>/home/CESM/projects/cesm/baselines</BASELINE_ROOT>
<CCSM_CPRNC>$CIMEROOT/tools/cprnc/build/cprnc</CCSM_CPRNC>
<GMAKE_J>4</GMAKE_J>
<BATCH_SYSTEM>none</BATCH_SYSTEM>
<SUPPORTED_BY>no</SUPPORTED_BY>
<MAX_TASKS_PER_NODE>4</MAX_TASKS_PER_NODE>
<MAX_MPITASKS_PER_NODE>4</MAX_MPITASKS_PER_NODE>
<mpirun mpilib="default">
<executable>mpiexec</executable>
<arguments>
<arg name="anum_tasks"> -np $TOTALPES</arg>
<arg name="labelstdout">--prepend-rank</arg>
</arguments>
</mpirun>
<module_system type="none"/>
</machine>

All mpicxx, mpicc, mpif90, g++, gcc, fortran are well installed in /usr/bin/*
I guess the default compiler is the right one, but maybe it faces some conflits somewhere.

Any help would be appreciated, thanks a lot.
 

RG5

Ir.5NA
New Member
Detailed log :

Creating component namelists
Calling /home/CESM/components/cam//cime_config/buildnml
...calling cam buildcpp to set build time options
[B]CAM namelist copy: file1 /home/CESM/projects/scratch/testrun3/Buildconf/camconf/atm_in file2 /home/CESM/projects/cesm/scratch/testrun3/run/atm_in [/B]
Calling /home/CESM/cime/src/components/stub_comps/slnd/cime_config/buildnml
Calling /home/CESM/cime/src/components/stub_comps/sice/cime_config/buildnml
Calling /home/CESM/cime/src/components/data_comps/docn/cime_config/buildnml
[B]File not found: domainfile = "/home/CESM/projects/cesm/inputdata/share/domains/domain.ocn.4x5_gx3v7_100120.nc", will attempt to download in check_input_data phase[/B]


[B][See previous post][/B]
 
Vote Upvote 0 Downvote

RG5

Ir.5NA
New Member
A temporary fix would be to switch in Macros.make from FFLAGS := -fconvert=big-endian -ffree-line-length-none -ffixed-line-length-none to FFLAGS := -fconvert=big-endian -ffree-line-length-none -ffixed-line-length-none -fallow-argument-mismatch

But this is not clean, and still raises an error after on pio then.
 

Attachments

Vote Upvote 0 Downvote

slevis

Moderator
Staff member
Same user (@RG5) has continued posting in a new thread:
 
Vote Upvote 0 Downvote
Back
Top