Skip to content

Issues to compile ESM4 #4

Description

@JFA-Mbule

Hello, my name is Jaime a new user. I'm trying to run the ESM4 model from GFDL and, I found some issues with the compilation process. The problem was found in the general Makefile.

I made some changes in the codes to compile. The changes allowed me to compile all subfolders in ESM4/exec/. So, the error is in the generation of the executable (esm4.1.x file). However, to examine the general Makefile and the mpp.F90 file, I found that the issue is in

<esm4.1.x: coupler/libcoupler.a atmos_dyn/libatmos_dyn.a sis2/libsis2.a atmos_cubed_sphere/libatmos_cubed_sphere.a mom6/libmom6.a icebergs/libicebergs.a lm4P/liblm4P.a atmos_phys/libatmos_phys.a fms/libfms.a
$(LD) $^ $(LDFLAGS) -o $@  $(STATIC_LIBS) >". 

The gnu.mk is not creating esm4.1.x in the general Makefile becouse the fms/libfms.a (mpp.o): in the funtion "_mpp_mod_MOD_get_peset": is not defined for this reference to "mpi_comm_create_group"

In summary the error is:

/home/jaime/ESM4_original/src/atmos_phys/atmos_param/clubb/CLUBB_core/lapack_wrap.F90:720: Undefined reference to "disnan_"
/usr/bin/ld: fms/libfms.a(mpp.o): in the funtion "__mpp_mod_MOD_get_peset":
mpp.F90:(.text+0x5134): Undefined reference to "mpi_comm_create_group_"
collect2: error: ld returned 1 exit status
make: *** [Makefile:22: esm4.1.x] Erro 1

Another information dealing with the error says that:

make [1]: Leaving the '/ home / jaime / ESM4_original / exec / coupler' directory

mpif90 coupler / libcoupler.a atmos_dyn / libatmos_dyn.a sis2 / libsis2.a atmos_cubed_sphere / libatmos_cubed_sphere.a mom6 / libmom6.a icebergs / libicebergs.a lm4P / liblm4P.a atmos_phys / libatmos_phys / libatmos_phys-lib.mos -L / usr / lib / x86_64-linux-gnu -lnetcdff -Wl, -Bsymbolic-functions -Wl, -z, clock -Wl, -z, now -lnetcdf -lnetcdf -ldl -lm -o esm4.1.x "

which seems to me that some command is not being appropriate to connect the files.

please, someone could tell me the real reason for this and how can I resolve it?
In addition, someone could tell me if is possible to create the executable (esm4.1.x file) in another way? once I've already managed to compile for other subfolders.

please someone help me!

I'm run on my laptop, Linux-ubuntu-gnu operational system.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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