Intel® Fortran Compiler for Linux* and Mac OS X*

Relocation truncated to fit


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'

about the parallel usuage.

Up to now I have bought the following software of intel:
1) Intel fortran compiler 9.0
2) math library 7.0.

Now I have questions as following
1) If I want to use parallel calculation function, i.e. mpi module,
what kind of software do i need to buy? I didn't find the mpi fortan compiler of intel. If Intel has, where could I found that?

2) what's difference of fortran 8.0 and fortran 9.0?

Your advices is greatly appreciated.


Seek debug tips for crash, when using optimized code; no crash otherwise


this is with l_fc_c_9.0.032/EM64T.

If I compile with

-g -check -r8

it does not crash -- whereas it does crash using

-O3 -r8 -assume buffered_io -ipo -traceback -g

Unfortunally, the traceback does not help:

forrtl: severe (174): SIGSEGV, segmentation fault occurred

Image PC Routine Line Source 00002B4B9973662E Unknown Unknown Unknown


Any idea?


why automatic variables can not be compiled on Intel fortran compiler

Hi,I am using Intel Fortran compiler 32 bit for linux. In the process of running my model on linux, I alwasy encounter this kind of error message:Syntax error, found END-OF-STATEMENT when expecting one of:
That is because one of my subroutine variables are defined as AUTOMATIC.I check the Intel literature and it saysVersion 9.0 support automatic variables. And I also add some argument after command 'ifort', howeverit does not work.I hope someone can give me some tips on this.Thanks a lot.Rui

Procedure interface


with the following example :

module m_alloc

implicit none

interface alloc
module procedure alloc_a , alloc_p
end interface


subroutine alloc_a(n,a)
integer, intent(in) :: n
real*8, allocatable :: a(:)
end subroutine alloc_a

subroutine alloc_p(n,p)
integer, intent(in) :: n
real*8, pointer :: p(:)
end subroutine alloc_p

end module m_alloc

I get the error :

qustion about compilation and linking

fortran System:IA-32-based system with Intel extended Memory64Technology (Intel EM64T)old system: IA-32-based systemifort -pc80 -prec-div -mp -shared -w -c -O3ld -shared -o $(OBJECTS)On the old system, everything is fine. However, when I make on the new system, the following warnings and errors generated:ld: warning: i386 architecture of input file `disl_field.o' is incompatible with i386:x86-64 output....disl_field.o(.text+0x26): In function `disl_displ_':

error linking library

Hi, I'm trying to link a library to my fortran code in this way:

ifort main.f90 -o main -L/home/dirLib my_lib.a

I certainly know that my_lib.a is in that directory and there's no blank space between -L and the name of the directory but I receive this message

ld: my_lib.a: No such file: No such file or directory


allocatable in derived type


my code works ok with ifort 9.0.021.
I've just installed 9.0.031 and it no more works.
I've found what was going wrong, which can be illustrated with this little example :

program test

type t
real*8, allocatable :: d(:,:)
end type t

type(t) :: tab(2)

call alloc(tab)


subroutine alloc(tab)

type(t), intent(out) :: tab(:)

end subroutine alloc

end program test

Subscribe to Intel® Fortran Compiler for Linux* and Mac OS X*