I am currently developing a Fortran77 code for computational fluid dynamics (CFD).
Environment: SUSE Linux Enterprise Server 10 SP2 (x86_64), Intel ifort, Fortran77
I do have to use a huge array in my code which results in error.
This array used in my code has 250,000*42*18=189,000,000 elements.
Compile error message: “additional relocation overflows omitted from the output”,
“relocation truncated to fit: R_X86_64_32S against symbol `kiva6_' defined in COMMON section in…”
While, codes with smaller array, such as 120,000*42*18=90,720,000 , will be successfully compiled.
This problem is not rare. I have tried to solve it with the help of Google.
FFlags in makefile is initially “-r8 -132”. In order to solve this problem, “-mcmodel=medium”, ” -i-dynamic” and “shared-intel” were added. Unfortunately, the problem remains.
Would you please give me some comments? I’m looking forward and will be very grateful to your reply.
Please let me know if you need more information.
Thanks a lot.
PhD Student in Engineering