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

Relocation truncated to fit

wongyung
Beginner
1,048 Views
Hi



I hope people can help me with a problem I am having. I keep on getting this error message when I try to compile my program:



ifort NRTYPE.F90 debug2.f90 factorial.f90 comp_2_arrays.f90 population_c.f90 pop_fluctuation2_c.f90 get_rho2.f90 -check all -o BH_Ar6 BH_Ar6.f90 -L/home/wy/ARPACK/ -larpack_OPT -L$MKL -lmkl_lapack -lmkl_em64t -lguide -lpthread





/tmp/ifortkvUiEu.o(.text+0x1dd5): In function `MAIN__':

BH_Ar6.f90: relocation truncated to fit: R_X86_64_PC32 against `.bss'

/tmp/ifortkvUiEu.o(.text+0x1dfe):BH_Ar6.f90: relocation truncated to fit: R_X86_64_PC32 against `.bss'



There's more but it's on the same lines.



I have tried what some people have suggested about using -i-dynamic and -mcmodel=large and it doesn't help. It does change the error message though:



ifort NRTYPE.F90 debug2.f90 factorial.f90 comp_2_arrays.f90 population_c.f90 pop_fluctuation2_c.f90 get_rho2.f90 -check all -mcmodel=large -i-dynamic -o BH_Ar6 BH_Ar6.f90 -L/home/wy/ARPACK/ -larpack_OPT -L$MKL -lmkl_lapack -lmkl_em64t -lguide -lpthread



/home/wy/ARPACK//libarpack_OPT.a(znaupd.o)(.text+0x59): In function `znaupd_':

znaupd.f: relocation truncated to fit: R_X86_64_PC32 against symbol `debug_' defined in COMMON section in /home/wy/ARPACK//libarpack_OPT.a(znaupd.o)

/home/wy/ARPACK//libarpack_OPT.a(znaupd.o)(.text+0x70):znaupd.f: relocation truncated to fit: R_X86_64_PC32 against `.bss'



And more on the same lines.




I am running SUSE 9.2 Professional with Intel Fortran compiler:

Version 9.0 Build 20050430

My system is a dual Opteron.

Thanks in advance for any help!
0 Kudos
3 Replies
TimP
Honored Contributor III
1,048 Views
I don't know if -check all is always practical for large programs.
You are using a rather old version of the compiler. However, if you change to a compiler with a newer version of libguide than your MKL, it's better to link the libguide which comes with the compiler.
-O1 might help, particularly if you want to use -xW.
0 Kudos
wongyung
Beginner
1,048 Views
Resurrecting an old thread with new developments.

OK, from the compiler output as seen on the 1st post, it clearly looks like the problem is with ARPACK. I recompiled arpack with "-mcmodel=large -i-dynamic" and voila the compiler errors related to arpack disappeared...to be replaced by the same "relocation truncated to fit" messages for mkl:

/opt/intel/mkl721/lib/em64t/libmkl_lapack.a(zhetrd_omp.o)(.text+0xebf): In function `_mkl_lapack_zhetrd_347__par_region2':
ker_zhetrd_omp.f: relocation truncated to fit: R_X86_64_PC32 against `.bss'
/opt/intel/mkl721/lib/em64t/libmkl_lapack.a(zhetrd_omp.o)(.text+0x11d0):ker_zhetrd_omp.f: relocation truncated to fit: R_X86_64_PC32 against `.bss'

So it seems that the mkl libraries are not compiled with the large or medium memory profile options. Unfortunately, unlike arpack I can't exactly recompile the intel mkl libraries myself.

So does anyone have any ideas on what I can do?

0 Kudos
Steven_L_Intel1
Employee
1,048 Views
I'd suggest you ask in the MKL section of the forum.
0 Kudos
Reply