Personal tools
You are here: Home UiT Stallo Documentation Error References large arrays (>2GB memory)
Document Actions

large arrays (>2GB memory)


This Error Reference is intended for: Any audience.

relocation truncated to fit: R_X86_64_PC32S

If you compile a fortran code with arrays larger than 2GB, you need to add the "-shared-intel" and  "-mcmodel=medium" options :

ifort -shared-intel -mcmodel=medium mycode.f90

 

Otherwise you may get errors:

stallo-1 test]$  ifort mycode.f90

mycode.f90:(.text+0xc5): relocation truncated to fit: R_X86_64_PC32 against `.bss'

/global/apps/intel/Compiler/11.1/038/lib/intel64/libifcore.a(for_init.o): In function `for__signal_handler':

for_init.c:(.text+0xfc): relocation truncated to fit: R_X86_64_PC32 against symbol `for__l_excpt_info' defined in .bss section in /global/apps/intel/Compiler/11.1/038/lib/intel64/libifcore.a(for_init.o)

 
stallo-1 test]$ ifort  -shared-intel large.f90

/tmp/ifortpReK6f.o: In function `MAIN__':
large.f90:(.text+0xc5): relocation truncated to fit: R_X86_64_PC32 against `.bss'

by Peter Wind last modified Mar 17, 2011 09:31 AM Notur