Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

MPAS compilation problem

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.

Enea2301

New member
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:
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
 
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?
 
Top