Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

What is a "relocation overflow?

grenfell
Beginner
3,167 Views

I am developing a Fortran 90program on a Linux parallel cluster using Intel Fortran (v10). There are several large (double complex) arrays declared specifically at the start (i.e., not allocated later). Beyond a certain size (8000 x 8000)I get compiler errors like -

abc.f90:(.text+0x118) relocation truncated to fit: R_X86_64_PC32 against '.hss'

ending with "additional relocation overflows ommitted from the output'.

There is plenty of memory on each node (4 Gbytes). Can anyone explain this? I can't find anything in the docs.

Thanks!

0 Kudos
2 Replies
grenfell
Beginner
3,167 Views

OK, I fouund itworks OKif I allocate memory from within the program. Why can't the error messages give poor beginners like me more of a hint as to the problem?

I found some references to this, or similar, problems in the release notes and past forum posts. But using -shared and/or-fpic as suggested just gives a different set of errors.

0 Kudos
Steven_L_Intel1
Employee
3,167 Views
The error message is from the gcc/Apple linker, not the compiler. If following the advice in the release notes doesn't help, please post the new symptoms and your build commands.

This particular error relates to having more than 2GB of static code and data on a 64-bit Mac. You can do this, but the compiler and linker have to do some extra work to make it happen. Best solution is to use allocatable rather than static arrays for big arrays.
0 Kudos
Reply