pro64-support
[Top] [All Lists]

Re: link error

To: rat@xxxxxxxxxxxxxxxxxxx (Ross A. Towle)
Subject: Re: link error
From: Arvind Amin <aamin@xxxxxxxxxxxxxxx>
Date: Tue, 22 Aug 2000 11:35:48 -0500 (CDT)
Cc: aamin@xxxxxxxxxxxxxxx, pro64-support@xxxxxxxxxxx (Pro64-Support)
In-reply-to: <10008220928.ZM7640@xxxxxxxxxxxxxxxxxxx> from "Ross A. Towle" at Aug 22, 2000 09:28:26 AM
Sender: owner-pro64-support@xxxxxxxxxxx
I tried the -Wl,--relax option as shown below. But, still the same
error. How do isolate the object that causes this error?

sgif90  -v -o  ../bin/marc -Wl,--relax ../lib/main.o  ../lib/blkdta.o   
../lib/comm?.o ../lib/srclib.a ../lib/mdsrc.a ./../lib/stubs.a    
./../lib/clib.a  -lm -lgcc

SGIcc Compilers: Version 0.01.0-9
/usr/bin/gcc -v --relax -L/usr/lib/gcc-lib/ia64-sgi-linux/sgicc-1.0 -o 
../bin/marc ../lib/main.o ../lib/blkdta.o ../lib/comm1.o ../lib/comm2.o 
../lib/comm3.o ../lib/srclib.a ../lib/mdsrc.a ./../lib/stubs.a ./../lib/clib.a 
-lm -lmv -lmsgi -lgcc -lfortran -lffio -lmsgi -lmv -lm 
Reading specs from /usr/lib/gcc-lib/ia64-hp-linux/2.9-ia64-000216/specs
gcc version 2.9-ia64-000216 snap-000324
 /usr/lib/gcc-lib/ia64-hp-linux/2.9-ia64-000216/collect2 -dynamic-linker 
/lib/ld-linux-ia64.so.1 -o ../bin/marc 
/usr/lib/gcc-lib/ia64-hp-linux/2.9-ia64-000216/../../../../ia64-hp-linux/lib/crt1.o
 
/usr/lib/gcc-lib/ia64-hp-linux/2.9-ia64-000216/../../../../ia64-hp-linux/lib/crti.o
 /usr/lib/gcc-lib/ia64-hp-linux/2.9-ia64-000216/crtbegin.o 
-L/usr/lib/gcc-lib/ia64-sgi-linux/sgicc-1.0 
-L/usr/lib/gcc-lib/ia64-hp-linux/2.9-ia64-000216 
-L/usr/lib/gcc-lib/ia64-hp-linux/2.9-ia64-000216/../../../../ia64-hp-linux/lib 
../lib/main.o ../lib/blkdta.o ../lib/comm1.o ../lib/comm2.o ../lib/comm3.o 
../lib/srclib.a ../lib/mdsrc.a ./../lib/stubs.a ./../lib/clib.a -lm -lmv -lmsgi 
-lgcc -lfortran -lffio -lmsgi -lmv -lm -lgcc -lc -lgcc 
/usr/lib/gcc-lib/ia64-hp-linux/2.9-ia64-000216/crtend.o 
/usr/lib/gcc-lib/ia64-hp-linux/2.9-ia64-000216/../../../../ia64-hp-linux/lib/crtn.o
/usr/lib/gcc-lib/ia64-hp-linux/2.9-ia64-000216/crtbegin.o(.fini+0x2): 
relocation truncated to fit: PCREL21B fini
collect2: ld returned 1 exit status
sgif90 ERROR:  /usr/bin/gcc returned non-zero status 1

> 
> You need to pass the --relax option to the linker.   I would use
> -Wl,--relax.
> 
> -Ross
> 
-- 
Arvind Amin, Ph.D.
Sr. Applications Consultant
NEC Systems, Inc.
e-mail: aamin@xxxxxxxxxxxxxxx
phone: (281) 465-1557

<Prev in Thread] Current Thread [Next in Thread>