[MITgcm-support] Compiling error for high resolution configuration

Patrick Heimbach heimbach at MIT.EDU
Thu Aug 21 18:12:35 EDT 2008


Hi there,

Goran is right.
This type of error message is typical if the executable doesn't fit
into memory (i.e. too large memory footprint).
Some compilers choke at compile time in the way you described, others  
don't,
but the executable will fail (I think with seg. fault).
You can kind of extrapolate by doing
size mitgcmuv
and look at the 4th number that you'll get.
You'll have to go multi-processor and chose a tile size that fits  
your memory.

-Patrick



On Aug 21, 2008, at 3:01 PM, William Aiken wrote:

> HI,
>
>  Are you building 32 or 64 bit executables?
>
>  It appears that the size of an array or offset within common block  
> is  exceeding the maximum offset allowed.
>
> The R_X86_64_PC32 leads me to believe that the compiler is using 32  
> bit indexing and the array/common offset in bytes exceeds 32 bits.
>
> Bill
>
> On 08/21/08 12:52, Abbas Dorostkar wrote:
>> Hi all,
>> The MITgcm works well on our Opteron system with 4 cpus and 32 GB  
>> RAM when I use 240*96*97 grid spacing. However,as the resolution  
>> is increased to 2400*960*97, I get the following compiling error.  
>> I would appreciate if someone give me a clue.
>> cal_addtime.o: In function `cal_addtime_':
>> cal_addtime.f:(.text+0x68): relocation truncated to fit:  
>> R_X86_64_PC32 against symbol `cal_i_' defined in COMMON section in  
>> cal_addtime.o
>> cal_addtime.f:(.text+0x6e): relocation truncated to fit:  
>> R_X86_64_PC32 against symbol `cal_i_' defined in COMMON section in  
>> cal_addtime.o
>> cal_addtime.f:(.text+0x11e): relocation truncated to fit:  
>> R_X86_64_PC32 against symbol `cal_i_' defined in COMMON section in  
>> cal_addtime.o
>> cal_addtime.f:(.text+0x132): relocation truncated to fit:  
>> R_X86_64_PC32 against symbol `cal_l_' defined in COMMON section in  
>> cal_addtime.o
>> cal_addtime.f:(.text+0x149): relocation truncated to fit:  
>> R_X86_64_PC32 against symbol `cal_i_' defined in COMMON section in  
>> cal_addtime.o
>> cal_addtime.f:(.text+0x1b5): relocation truncated to fit:  
>> R_X86_64_PC32 against symbol `cal_i_' defined in COMMON section in  
>> cal_addtime.o
>> cal_addtime.f:(.text+0x244): relocation truncated to fit:  
>> R_X86_64_32S against symbol `cal_i_' defined in COMMON section in  
>> cal_addtime.o
>> cal_addtime.f:(.text+0x25c): relocation truncated to fit:  
>> R_X86_64_PC32 against symbol `cal_i_' defined in COMMON section in  
>> cal_addtime.o
>> cal_addtime.f:(.text+0x29d): relocation truncated to fit:  
>> R_X86_64_PC32 against symbol `cal_i_' defined in COMMON section in  
>> cal_addtime.o
>> cal_addtime.f:(.text+0x2c6): relocation truncated to fit:  
>> R_X86_64_PC32 against symbol `cal_i_' defined in COMMON section in  
>> cal_addtime.o
>> cal_addtime.f:(.text+0x2d2): additional relocation overflows  
>> omitted from the output
>> collect2: ld returned 1 exit status
>> make: *** [mitgcmuv] Error 1
>> Thanks
>> Abbas
>> --------------------------------------------------------------------- 
>> ---
>> _______________________________________________
>> MITgcm-support mailing list
>> MITgcm-support at mitgcm.org
>> http://mitgcm.org/mailman/listinfo/mitgcm-support
>
>
> -- 
> William Aiken          Sun Microsystems, Inc.
> Phone: 781.442.3312    ISV Engineering
> FAX: 781.442.1520      45 Network Drive UBUR01-204
>                        Burlington, Massachusetts 01803
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support

---
Patrick Heimbach | heimbach at mit.edu | http://www.mit.edu/~heimbach
MIT | EAPS 54-1518 | 77 Massachusetts Ave | Cambridge MA 02139 USA
FON +1-617-253-5259 | FAX +1-617-253-4464 | SKYPE patrick.heimbach





More information about the MITgcm-support mailing list