Problem with ./case.setup

paulino

Paulino Ajiquichi
New Member
What version of the code are you using?
CESM3


Have you made any changes to files in the source tree?
No


Describe every step you took leading up to the problem:
-I create a new case using ./create_newcase in cime/scripts/ directory


If this is a port to a new machine: Please attach any files you added or changed for the machine port (e.g., config_compilers.xml, config_machines.xml, and config_batch.xml) and tell us the compiler version you are using on this machine.
Please attach any log files showing error messages or other useful information.

-I am using Coeus supercomputer


Describe your problem or question:
Hello guys. I am trying to run cesm on my Coeus machine. When I execute ./case.setup I get the following error :
ERROR: module command /usr/bin/modulecmd python purge failed with message:
/bin/sh: line 1: /usr/bin/modulecmd: No such file or directory

I would really appreciate it if anyone has any ideas on how to solve this problem.
 

jedwards

CSEG and Liaisons
Staff member
That seems to be the path to modules that you have in your config_machines.xml file. Did you complete and test a port
before trying to build a case? I see an email address in the file: oit-rc-groups@pdx.edu. have you tried contacting them?
 

paulino

Paulino Ajiquichi
New Member
Hi Dear Jedwards,
Thanks for your comments. I already solved the problem. So, when I run ./case.setup it ends with success message. But when I run ./case.build I get an error message like:

Calling /home/paulino/code/my_cesm_sandbox/cime/src/drivers/mct/cime_config/buildnml
Building gptl with output to file /scratch/paulino/b.day1.0/bld/gptl.bldlog.250329-024313
Calling /home/paulino/code/my_cesm_sandbox/cime/src/build_scripts/buildlib.gptl
ERROR: /home/paulino/code/my_cesm_sandbox/cime/src/build_scripts/buildlib.gptl FAILED, cat /scratch/paulino/b.day1.0/bld/gptl.bldlog.250329-024313



I checked the file " gptl.bldlog.250329-024313 " that appears to see the errors. And this is part of its content (I attach the file too):
/home/paulino/code/my_cesm_sandbox/cime/src/share/timing/gptl.c:3444:8: warning: cast from pointer to integer of different size
[-Wpointer-to-int-cast]
3444 | if (((int) comm) == 0)
| ^
/home/paulino/code/my_cesm_sandbox/cime/src/share/timing/perf_utils.F90:282:18:

282 | call MPI_BCAST(vec,lsize,MPI_INTEGER,0,comm,ierr)
| 1
......
314 | call MPI_BCAST(vec,lsize,MPI_LOGICAL,0,comm,ierr)
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/LOGICAL(4)).
make: *** [/home/paulino/code/my_cesm_sandbox/cime/src/share/timing/Makefile:87: perf_utils.o] Error 1
ERROR: /home/paulino/code/my_cesm_sandbox/cime/src/share/timing/gptl.c: In function GPTLpr_summary_file :
/home/paulino/code/my_cesm_sandbox/cime/src/share/timing/gptl.c:3444:8: warning: cast from pointer to integer of different size
[-Wpointer-to-int-cast]
3444 | if (((int) comm) == 0)
| ^
/home/paulino/code/my_cesm_sandbox/cime/src/share/timing/perf_utils.F90:282:18:

282 | call MPI_BCAST(vec,lsize,MPI_INTEGER,0,comm,ierr)
| 1
......
314 | call MPI_BCAST(vec,lsize,MPI_LOGICAL,0,comm,ierr)
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/LOGICAL(4)).
make: *** [/home/paulino/code/my_cesm_sandbox/cime/src/share/timing/Makefile:87: perf_utils.o] Error 1


I tried to solve the problem looking for the scritps "gptl.c", "perf_utils.F90" and making some changes. So I would really appreciate it if anyone has any ideas. As extra information my OS is Linux, the compiler is "gnu" . Thanks again
 

Attachments

jedwards

CSEG and Liaisons
Staff member
For newer gnu compilers you will need an additional flag to the fortran compiler:
-fallow-argument-mismatch
 

paulino

Paulino Ajiquichi
New Member
Dear Jedwards,
Thanks for the information. I ran successfully ./case.build.

If somebody else is having the same problem. I made a change in config_compilers.xml. I added these flags " -fallow-argument-mismatch" and " -fallow-invalid-boz"
<FFLAGS>

<base> -fconvert=big-endian -ffree-line-length-none -ffixed-line-length-none -fallow-argument-mismatch -fallow-invalid-boz </base>
.
.
.
</FFLAGS
 
Back
Top