Ask Your Question
0

Error in compilation of large domain (814x519x42)

asked 2022-04-08 23:16:57 +0200

andres gravatar image

Hi,

I have a domain that is

if defined BENGUELA_LR

  parameter (LLm0=814,   MMm0=519,   N=42)   ! BENGUELA_LR

And I can't compile (MPI and OPENMP) a basic configuration (plus define TIDES) with v1.2.1, the errors are the following

MPI

19.2.187/imkl/2019.2.187/mkl/lib/intel64 -L/home/lmod/software/MPI/intel/2019.2.187-GCC-8.2.0-2.31.1/impi/2019.2.187/imkl/2019.2.187/lib -L/home/lmod/software/MPI/intel/2019.2.187-GCC-8.2.0-2.31.1/impi/2019.2.187/netCDF/4.6.2/lib64 -lnetcdf -lnetcdf -liomp5 -lpthread
main.o:main_.f:function MAIN__: error: relocation overflow: reference to 'scalars_main_' main.o:main_.f:function MAIN__: error: relocation overflow: reference to 'scalars_main_'

Full compilation output here

C:\fakepath\compile.log

something similar goes for OPEMNP

OPENMP

clm_tides.o:clm_tides_.f:function clm_tides_tile_: error: relocation overflow: reference to 'tides_ptide_' collect2: error: ld returned 1 exit status gmake: * [croco] Error 1

Is there a library problem?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2022-04-11 14:31:56 +0200

Rachid gravatar image

Hi Andres

You can try to add -mcmodel=medium or -mcmodel=large to your compilation options

regards

Rachid

edit flag offensive delete link more

Comments

Thanks Rachid, that was it.

andres gravatar imageandres ( 2022-04-11 16:02:41 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2022-04-08 23:16:57 +0200

Seen: 127 times

Last updated: Apr 11 '22