<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Oliver,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Yes, this helped, and the model compiled! Thanks a lot!!</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I use a different opt file which has been put together by some people specifically for the machine we're using, but it didn't have the -mcmodel flag.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Andreas</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> MITgcm-support <mitgcm-support-bounces@mitgcm.org> on behalf of Oliver Jahn <jahn@mit.edu><br>
<b>Sent:</b> Tuesday, 20 October 2020 12:54 AM<br>
<b>To:</b> mitgcm-support@mitgcm.org <mitgcm-support@mitgcm.org><br>
<b>Subject:</b> Re: [MITgcm-support] compiling problems</font>
<div> </div>
</div>
<div>Hi Andreas,<br>
<br>
I agree with Martin that this points to an executable size issue. With<br>
ifort, this can usually be resolved with "-mcmodel=medium". This seems<br>
to have helped others with the same error:<br>
<br>
<a href="https://bb.cgd.ucar.edu/cesm/threads/failed-to-convert-gotpcrel-relocation-relink-with-no-relax.4494">https://bb.cgd.ucar.edu/cesm/threads/failed-to-convert-gotpcrel-relocation-relink-with-no-relax.4494/</a><br>
<br>
The linux_amd64_ifort+impi optfile has this already, but maybe you are<br>
using a different one?<br>
<br>
Cheers,<br>
Oliver<br>
<br>
<br>
On 2020-10-19 02:18, Andreas Klocker wrote:<br>
> Hi Martin,<br>
> <br>
> That's what happens if I add this flag:<br>
> <br>
> mpif90 -WB -convert big_endian -assume byterecl -g -traceback -fPIC<br>
> --no-relax -O2 -align -xHost -ip  -c write_state.f<br>
> ifort: command line warning #10006: ignoring unknown option '-fno-relax'<br>
> ifort: command line warning #10006: ignoring unknown option '-fno-relax'<br>
> ifort: command line warning #10006: ignoring unknown option '-fno-relax'<br>
> ifort: command line warning #10006: ignoring unknown option '-fno-relax'<br>
> ifort: command line warning #10006: ignoring unknown option '-fno-relax'<br>
> ifort: command line warning #10006: ignoring unknown option '-fno-relax'<br>
> <br>
> So no luck here..<br>
> A><br>
> <br>
> ------------------------------------------------------------------------<br>
> *From:* MITgcm-support <mitgcm-support-bounces@mitgcm.org> on behalf of<br>
> Martin Losch <Martin.Losch@awi.de><br>
> *Sent:* Monday, 19 October 2020 5:05 PM<br>
> *To:* MITgcm Support <mitgcm-support@mitgcm.org><br>
> *Subject:* Re: [MITgcm-support] compiling problems<br>
>  <br>
> Hi Andreas,<br>
> <br>
> I have no idea, what compiler you are using, but “relocation” would make<br>
> me think that the compiler/loader cannot allocate the size of the<br>
> executable/fields within the executable (that’s an error that I often<br>
> get with gfortran/ifort). Since reducing the tiles makes the problem go<br>
> away, I would guess that size is the problem and you may need additional<br>
> compiler flags (‘—no-relax’?).<br>
> <br>
> Martin<br>
> <br>
>> On 19. Oct 2020, at 07:09, Andreas Klocker<br>
> <andreas.klocker@utas.edu.au> wrote:<br>
>><br>
>> Hi everyone,<br>
>><br>
>> During compiling MITgcm I currently get this error which makes no<br>
> 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<br>
> '/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<br>
> 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.<br>
> Access, disclosure, copying, distribution, or reliance on any of it by<br>
> anyone outside the intended recipient organisation is prohibited and may<br>
> be a criminal offence. Please delete if obtained in error and email<br>
> confirmation to the sender. The views expressed in this email are not<br>
> necessarily the views of the University of Tasmania, unless clearly<br>
> intended otherwise.<br>
>> _______________________________________________<br>
>> MITgcm-support mailing list<br>
>> MITgcm-support@mitgcm.org<br>
>> <a href="http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support">
http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support</a><br>
> <br>
> _______________________________________________<br>
> MITgcm-support mailing list<br>
> MITgcm-support@mitgcm.org<br>
> <a href="http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support">
http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support</a><br>
> <br>
> _______________________________________________<br>
> MITgcm-support mailing list<br>
> MITgcm-support@mitgcm.org<br>
> <a href="http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support">
http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support</a><br>
> <br>
_______________________________________________<br>
MITgcm-support mailing list<br>
MITgcm-support@mitgcm.org<br>
<a href="http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support">http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support</a><br>
</div>
</div>
</body>
</html>