<div dir="ltr"><div dir="ltr">Would -mcmodel=large help?</div><div><a href="https://software.intel.com/content/www/us/en/develop/documentation/fortran-compiler-developer-guide-and-reference/top/compiler-reference/compiler-options/compiler-option-details/data-options/mcmodel.html">https://software.intel.com/content/www/us/en/develop/documentation/fortran-compiler-developer-guide-and-reference/top/compiler-reference/compiler-options/compiler-option-details/data-options/mcmodel.html</a></div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 19, 2020 at 2:19 AM Andreas Klocker <<a href="mailto:andreas.klocker@utas.edu.au">andreas.klocker@utas.edu.au</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hi Martin,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
That's what happens if I add this flag:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
mpif90 -WB -convert big_endian -assume byterecl -g -traceback -fPIC --no-relax -O2 -align -xHost -ip  -c write_state.f
<div>ifort: command line warning #10006: ignoring unknown option '-fno-relax'</div>
<div>ifort: command line warning #10006: ignoring unknown option '-fno-relax'</div>
<div>ifort: command line warning #10006: ignoring unknown option '-fno-relax'</div>
<div>ifort: command line warning #10006: ignoring unknown option '-fno-relax'</div>
<div>ifort: command line warning #10006: ignoring unknown option '-fno-relax'</div>
<div>ifort: command line warning #10006: ignoring unknown option '-fno-relax'</div>
<br>
So no luck here..</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
A></div>
<div>
<div id="gmail-m_4708640090054103269appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_4708640090054103269divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> MITgcm-support <<a href="mailto:mitgcm-support-bounces@mitgcm.org" target="_blank">mitgcm-support-bounces@mitgcm.org</a>> on behalf of Martin Losch <<a href="mailto:Martin.Losch@awi.de" target="_blank">Martin.Losch@awi.de</a>><br>
<b>Sent:</b> Monday, 19 October 2020 5:05 PM<br>
<b>To:</b> MITgcm Support <<a href="mailto:mitgcm-support@mitgcm.org" target="_blank">mitgcm-support@mitgcm.org</a>><br>
<b>Subject:</b> Re: [MITgcm-support] compiling problems</font>
<div> </div>
</div>
<div>Hi Andreas,<br>
<br>
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’?).
<br>
<br>
Martin<br>
<br>
> On 19. Oct 2020, at 07:09, Andreas Klocker <<a href="mailto:andreas.klocker@utas.edu.au" target="_blank">andreas.klocker@utas.edu.au</a>> wrote:<br>
> <br>
> Hi everyone,<br>
> <br>
> During compiling MITgcm I currently get this error which makes no sense to me:<br>
> <br>
> /bin/ld: failed to convert GOTPCREL relocation; relink with --no-relax<br>
> make[1]: *** [Makefile:1226: mitgcmuv] Error 1<br>
> make[1]: Leaving directory '/scratch/ds0/axk157/mitgcm/codebase/MITgcm/exp/channel_jet_global/build'<br>
> make: *** [Makefile:1222: fwd_exe_target] Error 2<br>
> <br>
> Nevertheless, if I make tiles smaller in SIZE.h compilation works fine. So, this problem seems to depend on the exact grid configuration.<br>
> <br>
> Does anyone know what's going on here?<br>
> <br>
> cheers,<br>
> Andreas<br>
> <br>
> <br>
> University of Tasmania Electronic Communications Policy (December, 2014). <br>
> 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.<br>
> _______________________________________________<br>
> MITgcm-support mailing list<br>
> <a href="mailto:MITgcm-support@mitgcm.org" target="_blank">MITgcm-support@mitgcm.org</a><br>
> <a href="http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support" target="_blank">
http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support</a><br>
<br>
_______________________________________________<br>
MITgcm-support mailing list<br>
<a href="mailto:MITgcm-support@mitgcm.org" target="_blank">MITgcm-support@mitgcm.org</a><br>
<a href="http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support" target="_blank">http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support</a><br>
</div>
</div>
</div>

_______________________________________________<br>
MITgcm-support mailing list<br>
<a href="mailto:MITgcm-support@mitgcm.org" target="_blank">MITgcm-support@mitgcm.org</a><br>
<a href="http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support" rel="noreferrer" target="_blank">http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support</a><br>
</blockquote></div></div>