Linking fails ..

Hi,

a user reported the following problem:

Simple source code:

more test.f
program abc
real x(300,180,12,1948:2006)
open(1,file=‘REMO_temp1948_2006.dat’)
do 10 iy=1948, 2006
read(1,)
do 20 m=1, 12
read(1,
) ((x(i,j,m,iy),i=1,nx),j=1,ny)
20 continue
10 continue
stop
end

Can be compiled on a 32-bit machine without any problems.
On our linux cluster (64bit) we see:
taiga:~ # pgf90 test.f

/tmp/pgf90y1EbiN17glOL.o(.text+0x200): In function `MAIN_’:
: relocation truncated to fit: R_X86_64_32S .bss

pgf90 -c shows NO ERRORS, just the linking fails.

What’s wrong here ?

Bye, Peer

Hi,

Please compile and link with -mcmodel=medium as when we compute the address of x , the computed address is larger than 2GB.

Hongyon