This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gfortran compilation problems
- From: adewar <dewar at ysbl dot york dot ac dot uk>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 16 Jul 2007 10:19:51 -0700 (PDT)
- Subject: gfortran compilation problems
I'm having a few problems compiling my Fortran code using gfortran with
64-bit architecture (AMD Opteron processors - part of a cluster) and the
program will not compile. I have had no problems with 32-bit compilation on
a different computer. When I compile the program using:
gfortran -O1 Latest_tpi.f90 global_data.f90 -o tpi
I get the following errors:
/tmp/ccZ3fKWW.o: In function `complex_energy_':
Latest_tpi.f90:(.text+0x70): relocation truncated to fit: R_X86_64_PC32
against symbol `__global_data__nt4p' defined in .bss section in
/tmp/ccm7YFJ1.o
Latest_tpi.f90:(.text+0x95): relocation truncated to fit: R_X86_64_PC32
against symbol `__global_data__solvent_sites_vdw' defined in .bss section in
/tmp/ccm7YFJ1.o
Latest_tpi.f90:(.text+0xe2): relocation truncated to fit: R_X86_64_PC32
against symbol `__global_data__lz' defined in .bss section in
/tmp/ccm7YFJ1.o
Latest_tpi.f90:(.text+0x231): additional relocation overflows omitted from
the output
collect2: ld returned 1 exit status
The variables mentioned are simple integer variables (Other errors were
reported but have been omitted - all related to integer or real variables)
Uname -a gives - 2.6.21-1.3194.fc7 #1 SMP Wed May 23 22:47:07 EDT 2007
x86_64 x86_64 x86_64 GNU/Linux
and I am running gcc version 4.1.2 20070502 (Red Hat 4.1.2-12).
I am unsure as to why I am getting these errors and as how to resolve them.
Thanks in advance
Alastair
--
View this message in context: http://www.nabble.com/gfortran-compilation-problems-tf4088815.html#a11622190
Sent from the gcc - Help mailing list archive at Nabble.com.