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

relocation truncated to fit: R_X86_64_PC32 .bss

rrodriguez
Beginner
3,071 Views
Hi all,
I get some problems when I try to compile a code (VAC, Versatile Advection Code) in a
Intel Xeon CPU 2.80GHz machine. The compiler I am using is the fce ifort 9.1.039 version with the flags -FR -implicitnone -O3 -tpp7 -fpic -mcmodel=medium.
The error it gets is:
relocation truncated to fit: R_X86_64_PC32 .bss
(in fact, several of these ones)

I guess it is something related with the memory storage but how can I solve it? Can somebody give me a clue, please?
Thank you very much!

Rosa
0 Kudos
7 Replies
rrodriguez
Beginner
3,071 Views
Sorry, I have forgotten to say that the Kernel is 2.6.9 and the architecture x86_64 GNU/Linux :-)
0 Kudos
Steven_L_Intel1
Employee
3,071 Views
Try also adding -i-dynamic to the ifort line.
0 Kudos
rrodriguez
Beginner
3,071 Views
I have tried also with the -i-dynamic flag, being now the compilation line:

/opt/intel/fce/9.1.039/bin/ifort -FR -implicitnone -O3 -tpp7 -fPIC -i-dynamic -mcmodel=large

and I have realized that the correct compilation depends on the size of the grid of my simulation. When the grid is not so big, the compilation finishes well, but from a number of points on, the compilation crashes.
So, how can I solve this problem?
I have run the code in an Altix machine (SGI Altix 3700 Bx2, kernel: 2.6.5, ia64 GNU/Linux, with the compiler fc_8.1.019 ifort, with the compilation line ifort -FR -implicitnone -O3 -tpp2) and everything worked well.
Thank you very much!

Rosa

0 Kudos
Steven_L_Intel1
Employee
3,071 Views
I don't have more suggestions for you. I suggest you send a test case to Intel Premier Support and ask for assistance.
0 Kudos
rrodriguez
Beginner
3,071 Views
Ok, thank you very much for your help.
0 Kudos
gelsa
Beginner
3,071 Views
Dear Rosa,
Hello, I am Gelsomina Mattia of Bologna University
(Dept of Environmental Sciences). I am working in the framework
of an European Project to the implementation and use of a coupled physica-biogeochemical model of the Mediterranean Sea.
I am writing you because I carried out an internet search aime at solving some compilation problems I am experiencing with my code. I found a message you sent to http://softwarecommunity.intel.com
concerning the error message
relocation truncated to fit: R_X86_64_PC32 .bss
This is the very same error message I am getting and I am still receiving it also after following the suggestions you received
in reply to your message.
I just wanted to ask you if you could provide me with some more
additional information about the solution of theisx problem
(if any).
I am running my code using the intel compiler ifort version 10.0.23 and the processor is an opteron AMD 8214
0 Kudos
Martyn_C_Intel
Employee
3,071 Views

Hi,

Applications containing more than 2 GB of static data should be built with

-mcmodel medium -shared-intel but WITHOUT -fpic

Please see the thread http://software.intel.com/en-us/forums/showthread.php?t=43717#18089 for further details.

(-shared-intel in recent compilers is the same as -i-dynamic in earlier compilers).

0 Kudos
Reply