MPAS compilation problem

Discussions related to downloading and compiling MPAS-Atmosphere.
Post Reply
Enea2301
Posts: 8
Joined: Sat Apr 04, 2020 10:20 am

MPAS compilation problem

Post by Enea2301 » Sat Apr 04, 2020 11:40 am

I've been recently trying to compile MPAS, as I'm into model forecasting (I've worked with WRF very often).

I'm trying to compile MPAS with PGI compilers (as I had done previously with WRF), but a problem appears while compiling MPAS init_atmosphere.

-Computer SO: Ubuntu 20.04 (changed recently because of better support for my CPU, which is Zen 2 architecture)
-Compiler version: 19.10 (community edition). Using no-llvm.
-MPI: the one provided with PGI (OpenMPI 3.x)
-NetCDF: 4.6.1 and Fortran 4.5.2. Compiled with PGI for WRF before.
-PnetCDF: 1.12.1. Compiled with PGI apparently without problems.
-PIO: 1.7.1

-Makeline used: make pgi CORE=init_atmosphere

This is the problem that is returned when trying to compile:

Code: Select all

driver/mpas_subdriver.o: en la función `mpas_subdriver_mpas_init_':
/home/roberto/MPAS/MPAS-Model-7.0/src/driver/./mpas_subdriver.F:141:(.text+0x546): reubicación truncada para ajustar: R_X86_64_32 contra el símbolo `_mpas_subdriver_0_' definido en la sección COMMON en driver/mpas_subdriver.o
/home/roberto/MPAS/MPAS-Model-7.0/src/driver/./mpas_subdriver.F:141:(.text+0x56f): reubicación truncada para ajustar: R_X86_64_PC32 contra el símbolo `_mpas_subdriver_0_' definido en la sección COMMON en driver/mpas_subdriver.o
/home/roberto/MPAS/MPAS-Model-7.0/src/driver/./mpas_subdriver.F:141:(.text+0x5de): reubicación truncada para ajustar: R_X86_64_PC32 contra el símbolo `_mpas_subdriver_0_' definido en la sección COMMON en driver/mpas_subdriver.o
/home/roberto/MPAS/MPAS-Model-7.0/src/driver/./mpas_subdriver.F:141:(.text+0x5ff): reubicación truncada para ajustar: R_X86_64_32 contra el símbolo `_mpas_subdriver_0_' definido en la sección COMMON en driver/mpas_subdriver.o
/home/roberto/MPAS/MPAS-Model-7.0/src/driver/./mpas_subdriver.F:141:(.text+0x604): reubicación truncada para ajustar: R_X86_64_32 contra el símbolo `_mpas_subdriver_0_' definido en la sección COMMON en driver/mpas_subdriver.o
/home/roberto/MPAS/MPAS-Model-7.0/src/driver/./mpas_subdriver.F:141:(.text+0x615): reubicación truncada para ajustar: R_X86_64_PC32 contra el símbolo `_mpas_subdriver_0_' definido en la sección COMMON en driver/mpas_subdriver.o
/home/roberto/MPAS/MPAS-Model-7.0/src/driver/./mpas_subdriver.F:141:(.text+0x626): reubicación truncada para ajustar: R_X86_64_PC32 contra el símbolo `_mpas_subdriver_0_' definido en la sección COMMON en driver/mpas_subdriver.o
/home/roberto/MPAS/MPAS-Model-7.0/src/driver/./mpas_subdriver.F:141:(.text+0x638): reubicación truncada para ajustar: R_X86_64_PC32 contra el símbolo `_mpas_subdriver_0_' definido en la sección COMMON en driver/mpas_subdriver.o
/home/roberto/MPAS/MPAS-Model-7.0/src/driver/./mpas_subdriver.F:141:(.text+0x64e): reubicación truncada para ajustar: R_X86_64_32 contra el símbolo `_mpas_subdriver_0_' definido en la sección COMMON en driver/mpas_subdriver.o
/home/roberto/MPAS/MPAS-Model-7.0/src/driver/./mpas_subdriver.F:141:(.text+0x653): reubicación truncada para ajustar: R_X86_64_32 contra el símbolo `_mpas_subdriver_0_' definido en la sección COMMON en driver/mpas_subdriver.o
/home/roberto/MPAS/MPAS-Model-7.0/src/driver/./mpas_subdriver.F:141:(.text+0x65d): se omitieron desbordamientos de reubicación adicionales de la salida
make[2]: *** [Makefile:18: mpas] Error 2
make[2]: se sale del directorio '/home/roberto/MPAS/MPAS-Model-7.0/src'
make[1]: *** [Makefile:780: mpas_main] Error 2
make[1]: se sale del directorio '/home/roberto/MPAS/MPAS-Model-7.0'
make: *** [Makefile:72: pgi] Error 2
Please note that in I tried with Makefile by default (pgf90 and pgcc) and changing fortran compiler to the one I used to build everything (pgfortran and pgcc), and same output was thrown.

I'm not used to fortran language or to almost any language, so I'm not able to research it on my own more than on the surface.

Thanks for your help,
Roberto

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

Re: MPAS compilation problem

Post by mgduda » Mon Apr 06, 2020 5:50 pm

I think this might be the same compilation issue that arun2019 was having in this post. Essentially, the PIO 1.7.1 library is defining some static arrays with dimension "nf_max_var_dims", which in newer parallel-netCDF libraries is 2^31-1. In case this is the same issue, could you try modifying the PIO 1.7.1 code as described in the post linked above, and see whether that resolves the issue?
NCAR/MMM

Post Reply

Return to “Compilation / installation”