[MITgcm-support] compiling problems

Andreas Klocker andreas.klocker at utas.edu.au
Mon Oct 19 02:18:49 EDT 2020


Hi Martin,

That's what happens if I add this flag:

mpif90 -WB -convert big_endian -assume byterecl -g -traceback -fPIC --no-relax -O2 -align -xHost -ip  -c write_state.f
ifort: command line warning #10006: ignoring unknown option '-fno-relax'
ifort: command line warning #10006: ignoring unknown option '-fno-relax'
ifort: command line warning #10006: ignoring unknown option '-fno-relax'
ifort: command line warning #10006: ignoring unknown option '-fno-relax'
ifort: command line warning #10006: ignoring unknown option '-fno-relax'
ifort: command line warning #10006: ignoring unknown option '-fno-relax'

So no luck here..
A>

________________________________
From: MITgcm-support <mitgcm-support-bounces at mitgcm.org> on behalf of Martin Losch <Martin.Losch at awi.de>
Sent: Monday, 19 October 2020 5:05 PM
To: MITgcm Support <mitgcm-support at mitgcm.org>
Subject: Re: [MITgcm-support] compiling problems

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<http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support>

_______________________________________________
MITgcm-support mailing list
MITgcm-support at mitgcm.org
http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support<http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mitgcm.org/pipermail/mitgcm-support/attachments/20201019/976a4859/attachment-0001.html>


More information about the MITgcm-support mailing list