[MITgcm-support] Link problem on OSX
Ruth Musgrave
rmusgrave at whoi.edu
Wed Jul 3 12:17:04 EDT 2019
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 <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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mitgcm.org/pipermail/mitgcm-support/attachments/20190703/71ed13a9/attachment.html>
More information about the MITgcm-support
mailing list