[MITgcm-support] Link problem on OSX

Edward W Doddridge ewd at mit.edu
Wed Jul 3 14:01:50 EDT 2019


Hi Ruth,

Can you give some more details about the setup you’re trying to compile? Can you compile any of the verification experiments, or run `testreport`?

Ed


________________________________
Edward Doddridge
Postdoctoral researcher
Earth, Atmospheric and Planetary Sciences
Massachusetts Institute of Technology

www.doddridge.me<http://www.doddridge.me>

On 3 Jul 2019, at 12:17, Ruth Musgrave <rmusgrave at whoi.edu<mailto:rmusgrave at whoi.edu>> wrote:

Hi

after some OS updates I suddenly found myself unable to compile MITgcm on my laptop. The initial issue was a problem with XCode, which I have resolved by upgrading my entire OS to Mojave, and doing all the updates. I am now running the latest, and undoubtably greatest, OSX.

However, I still cannot compile MITgcm. The issue seems to be in linking, with the following error in the last step:

ld: 32-bit RIP relative reference out of range (2154362563 max is +/-2GB): from _impldiff_ (0x10021DAF0) to _loctr.4787 (0x1808B09E0) in '_impldiff_' from impldiff.o for architecture x86_64

I have seen errors like this before and solved them with flags like -mcmodel=medium etc., but this time it doesn't work.

I followed with great interest this thread:

http://mailman.mitgcm.org/pipermail/mitgcm-support/2013-December/008687.html

but it is left with a cliffhanger! I did verify that my compilers are all 64 bit.

I would be very very grateful for any suggestions, as I am entirely out of ideas and desperate to run some simulations. I am using the build options in darwin_amd64_gfortran_netcdf.

Thank you
Ruth
_______________________________________________
MITgcm-support mailing list
MITgcm-support at mitgcm.org<mailto:MITgcm-support at mitgcm.org>
http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mitgcm.org/pipermail/mitgcm-support/attachments/20190703/bcda33a2/attachment.html>


More information about the MITgcm-support mailing list