[MITgcm-support] Compiling error for high resolution configuration

William Aiken William.Aiken at Sun.COM
Thu Aug 21 15:01:12 EDT 2008


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




More information about the MITgcm-support mailing list