Relocation truncated problem with large *allocatable* arrays
807575Aug 17 2010 — edited Aug 23 2010Hello,
I am currently encountering a problem I don't really understand, with a f90 code in which I've just switched a whole load of
large arrays from static declaration (in modules) to allocatable (still in modules).
The reason for switching was to avoid the data limit in the .bss and thus allow larger computations on a given computer.
The code compiles and runs properly with the intel fortran compiler + mpich2.
With the sun compiler and mpich2, I still get relocation truncated errors during the linking phase, this time referring to the .lbss , such as :
...
new_interp_stuff_for_airfoil2.o: In function `initialize_interp_':
new_interp_stuff_for_airfoil2.f90:(.text+0xfc0f): relocation truncated to fit: R_X86_64_PC32 against symbol `maillage_curv.curv_rank_from_index_' defined in .lbss section in airfoil_allocatable.o
...
This occurs whether I specify xmodel=medium or not. If I reduce the size of the (allocatable) arrays, the linking phase completes successfully and the
resulting binary works as expected.
Am I missing anything obvious here? Can anyone point me towards a solution?
Many thanks,
Olivier M.
Environment:
linux 2.6.28 x86-64 (caos linux)