error linking library in g77 YDL 4 G5

General discussion Forum. All YDL related question which are not Install or Beginner questions.

Which Fortran 77 compiler do you use on YDL Linux?

g77
0
No votes
Absoft
0
No votes
IBM
0
No votes
Other
0
No votes
What's Fortran 77?
1
100%
 
Total votes : 1

error linking library in g77 YDL 4 G5

Postby bernard.b.yoo » 19 May 2005, 22:47

I've been trying to compile a Fortran 77 program using g77 on YDL 3 on G4s and YDL 4 on G5. All of my source files compile fine into object files, but I get an error when linking to a library:

/usr/lib/gcc-lib/ppc64-yellowdog-linux/3.3.3/../../../../lib/crt1.o(.text+0x20): In function `_start':
: relocation truncated to fit: R_PPC_REL24 __libc_start_main@@GLIBC_2.0
/usr/lib/gcc-lib/ppc64-yellowdog-linux/3.3.3/../../../../lib/crti.o(.text+0x10): In function `call_gmon_start':
: relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffffffffff
ffffc
revisit.o(.text+0x2c): In function `MAIN__':
: relocation truncated to fit: R_PPC_PLTREL24 s_rsle
revisit.o(.text+0x44): In function `MAIN__':
: relocation truncated to fit: R_PPC_PLTREL24 do_lio
revisit.o(.text+0x48): In function `MAIN__':
: relocation truncated to fit: R_PPC_PLTREL24 e_rsle
revisit.o(.text+0x5c): In function `MAIN__':
: relocation truncated to fit: R_PPC_PLTREL24 s_rsne
revisit.o(.text+0xc0): In function `MAIN__':
: relocation truncated to fit: R_PPC_PLTREL24 s_wsfe
revisit.o(.text+0xd4): In function `MAIN__':
: relocation truncated to fit: R_PPC_PLTREL24 do_fio
revisit.o(.text+0xe8): In function `MAIN__':
: relocation truncated to fit: R_PPC_PLTREL24 do_fio
revisit.o(.text+0xec): In function `MAIN__':
: relocation truncated to fit: R_PPC_PLTREL24 e_wsfe

I have no problems when linking the same library to a smaller demo program, but the linker produces the errors shown above when linking to this large program.

I remember having this problem before on G3's running YDL 2 or 3, but I forgot what the fix is.

Please help!

Thanks!
bernard.b.yoo
ydl newbie
ydl newbie
 
Posts: 1
Joined: 19 May 2005, 22:38

Return to General

Who is online

Users browsing this forum: No registered users and 6 guests