MPAS Make Error

Discussions related to downloading and compiling MPAS-Atmosphere.
Post Reply
hychen
Posts: 2
Joined: Fri Jun 19, 2020 3:48 am

MPAS Make Error

Post by hychen » Fri Jun 19, 2020 4:51 am

Hi all,
I've been trying to build MPAS libralies following the post:
https://github.com/MPAS-Dev/MPAS-Model/issues/24
The libralies versions that I use are:
mpich-3.3.1
zlib-1.2.11
hdf5-1.10.5
pnetcdf-1.11.2
netcdf-c-4.4.1.1
netcdf-fortran-4.4.5
pio-2.4.4

The installation script attached is slight modification to duda's script:
https://www2.mmm.ucar.edu/people/duda/f ... s/sources/

When I try to install MPAS model through the command
make ifort CORE=ocean USE_PIO2=true >&mpas.log
It errors.

Code: Select all

./libframework.a(mpas_io.o): In function `mpas_io_mp_mpas_io_init_':
/home/chy/Documents/models/MPAS-Model/src/framework/mpas_io.F:154: undefined reference to `piolib_mod_mp_seterrorhandlingiosystem_'
/home/chy/Documents/models/MPAS-Model/src/framework/mpas_io.F:144: undefined reference to `piolib_mod_mp_init_intracom_'
make[2]: *** [mpas] Error 1
make[1]: *** [mpas_main] Error 2
make: *** [ifort] Error 2]
It seems to be a link problem with my piolib but I can't tell the reason, nor can I find any subroutine named `piolib_mod_mp_init_intracom_'.

Please help me solve it.Thanks in advance!

Haiyun
Attachments
mpas.log
(60.63 KiB) Downloaded 16 times
iolib_installation.txt
(3.96 KiB) Downloaded 17 times

hychen
Posts: 2
Joined: Fri Jun 19, 2020 3:48 am

Re: MPAS Make Error

Post by hychen » Sun Jun 21, 2020 4:37 am

Alright I think I figure it out.

The problem is that the paths of those environment variables are not set correctly.

I just thought they would be automatically exported when installation done, which was not the case.

After mannually exporting the environment variables' paths, The MPAS model compilation comletes!

Regards,
Haiyun

mgduda
Posts: 362
Joined: Mon Feb 26, 2018 7:35 pm

Re: MPAS Make Error

Post by mgduda » Mon Jun 22, 2020 6:36 pm

Thanks for posting an update, and I'm glad to hear you were able to get MPAS compiled successfully!
NCAR/MMM

Post Reply

Return to “Compilation / installation”