[MITgcm-support] Compiler error when doubling horizontal resolution

Roland Young Roland.Young at physics.ox.ac.uk
Wed Dec 23 13:43:08 EST 2015


Hi,

I have just increased the horizontal resolution of my model from 512x256x33 to 1024x512x33, but I am getting the following compiler error (example given for a C routine, but similar for Fortran):

/home/jupiter/gfd/young/runs/testing/h222_test/build/sigreg.c:34:(.text+0x3): relocation truncated to fit: R_X86_64_PC32 against symbol `sigreg_ip' defined in COMMON section in sigreg.o

I managed to remove this error from the Fortran routines by adding the following compiler flags

FFLAGS="$FFLAGS -mcmodel=medium -shared-intel”

However, I have not been able to remove it from the C routines. I have tried

CFLAGS="$CFLAGS -mcmodel=medium”
CFLAGS="$CFLAGS -mcmodel=large”
CFLAGS="$CFLAGS -mmodel=medium”
CFLAGS="$CFLAGS -mmodel=large”

and all give the same error (the -shared-intel flag is not recognised by gcc). I think I’m on the right lines but what else needs to be done to fix the C compiler error?

Thanks,

Roland

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20151223/ff03634c/attachment.htm>


More information about the MITgcm-support mailing list