[MITgcm-support] compiling problems

Martin Losch Martin.Losch at awi.de
Mon Oct 19 02:05:19 EDT 2020


Hi Andreas,

I have no idea, what compiler you are using, but “relocation” would make me think that the compiler/loader cannot allocate the size of the executable/fields within the executable (that’s an error that I often get with gfortran/ifort). Since reducing the tiles makes the problem go away, I would guess that size is the problem and you may need additional compiler flags (‘—no-relax’?). 

Martin

> On 19. Oct 2020, at 07:09, Andreas Klocker <andreas.klocker at utas.edu.au> wrote:
> 
> Hi everyone,
> 
> During compiling MITgcm I currently get this error which makes no sense to me:
> 
> /bin/ld: failed to convert GOTPCREL relocation; relink with --no-relax
> make[1]: *** [Makefile:1226: mitgcmuv] Error 1
> make[1]: Leaving directory '/scratch/ds0/axk157/mitgcm/codebase/MITgcm/exp/channel_jet_global/build'
> make: *** [Makefile:1222: fwd_exe_target] Error 2
> 
> Nevertheless, if I make tiles smaller in SIZE.h compilation works fine. So, this problem seems to depend on the exact grid configuration.
> 
> Does anyone know what's going on here?
> 
> cheers,
> Andreas
> 
> 
> University of Tasmania Electronic Communications Policy (December, 2014). 
> This email is confidential, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone outside the intended recipient organisation is prohibited and may be a criminal offence. Please delete if obtained in error and email confirmation to the sender. The views expressed in this email are not necessarily the views of the University of Tasmania, unless clearly intended otherwise.
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support



More information about the MITgcm-support mailing list