Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
15 Views

Relocation truncated to fit

Jump to solution

Hi,

I tried to increase the size of some arrays in COMMON, but when I compile the code I got many messages like this:

for_diags_intel.c:(.text+0x13aa): relocation truncated to fit: R_X86_64_PC32 against symbol `message_catalog' defined in COMMON section in /usr/local/intel/Composer/composer_xe_2013_sp1.2.144/compiler/lib/intel64/libifcore.a(for_diags_intel.o)

What does it mean? how can I avoid it?

Thanks

GB

0 Kudos

Accepted Solutions
Highlighted
15 Views

Try adding "-mcmodel medium"

Jump to solution

Try adding "-mcmodel medium" to your compile/link options. This is needed when you have static data that exceeds 2GB. As an alternative, consider using allocatable arrays rather than huge COMMONs.

Retired 12/31/2016

View solution in original post

0 Kudos
4 Replies
Highlighted
16 Views

Try adding "-mcmodel medium"

Jump to solution

Try adding "-mcmodel medium" to your compile/link options. This is needed when you have static data that exceeds 2GB. As an alternative, consider using allocatable arrays rather than huge COMMONs.

Retired 12/31/2016

View solution in original post

0 Kudos
Highlighted
Beginner
15 Views

Thanks,

the first method works.

GB

0 Kudos
Highlighted
Beginner
15 Views

Is it possible that this

Jump to solution

Is it possible that this option disable the -traceback ? Should I use -g -O2 or -g -O0?

Thanks

GB

0 Kudos
Highlighted
15 Views

No, -mcmodel medium should

Jump to solution

No, -mcmodel medium should have no effect on traceback. -g implies -O0.

Retired 12/31/2016
0 Kudos