This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Solaris-- relocation against external symbol
- To: Todd Veldhuizen <tveldhui at seurat dot uwaterloo dot ca>
- Subject: Re: Solaris-- relocation against external symbol
- From: Ted Irons <ironst at aries dot tucson dot saic dot com>
- Date: Fri, 31 Jul 1998 18:27:16 -0700
- Cc: blitz-bugs-archive at monet dot uwaterloo dot ca, kan at egr dot msu dot edu, egcs-bugs at cygnus dot com
- Organization: Science Applications
- References: <199807311933.PAA34184@seurat.uwaterloo.ca>
Todd -
Yes this is the problem I had. I never got a reply from
the egcs folks.
As far as I could tell the problem that I had was that
I kept picking up the ld from /usr/ccs/bin. I wanted to
use the ld from binutils-2.9.1 (a newer ld). I could never figure
out how to have egcs use the binutils-2.9.1 ld. I changed PATH,
LD_LIBRARY_PATH, etc. I tried differing ways of configuring
egcs (--with-gnu-ld, etc). I tried setting different
egcs environment variables. I looked at gcc faq's.
All to no avail.
This is when I decided to switch to RedHat 5.1 Linux on an Intel
machine. The ld there is from binutils-2.9.1.
- Ted
Todd Veldhuizen wrote:
>
> Hi Ted, you encountered this problem too.
> Was there ever any answer from the egcs
> folks about this?
>
> Thanks,
> Todd
>
> Forwarded message:
make[1]: Entering directory `/home/u8/kan/temp/blitz/examples'
g++ array.o -o array -L../lib -lblitz -lm
ld: warning: file array.o: relocation against external symbol
`__t13_bz_ArrayExpr1Zt15_bz_ArrayExprOp3Zt21_bz_ArrayExprConstant1ZdZt13_bz_ArrayExpr1Zt15_bz_ArrayExprOp3Zt13_bz_ArrayExpr1Zt15_bz_ArrayExprOp3Zt13_bz_ArrayExpr1Zt15_bz_ArrayExprOp3Zt13_bz_ArrayExpr1Zt15_bz_ArrayExprOp3Zt13_bz_ArrayExpr1Zt15_bz_ArrayExprOp3Zt13_bz_ArrayExpr1Zt15_bz_ArrayExprOp3Zt13_bz_ArrayExpr1Zt15_bz_ArrayExprOp3Zt21_bz_ArrayExprConstant1ZdZt13ArrayIterator2Zfi3Zt8Multiply2ZdZfZt13ArrayIterator2Zfi3Zt3Add2ZdZfZt13ArrayIterator2Zfi3Zt3Add2ZdZfZt13ArrayIterator2Zfi3Zt3Add2ZdZfZt13ArrayIterator2Zfi3Zt3Add2ZdZfZt13ArrayIterator2Zfi3Zt3Add2ZdZfZt13ArrayIterator2Zfi3Zt3Add2ZdZfZt8Multiply2ZdZdRCt13_bz_ArrayExpr1Zt15_bz_ArrayExprOp3Zt21_bz_ArrayExprConstant1ZdZt13_bz_ArrayExpr1Zt15_bz_ArrayExprOp3Zt13_bz_ArrayExpr1Zt15_bz_ArrayExprOp3Zt13_bz_ArrayExpr1Zt15_bz_ArrayExprOp3Zt1'
from a non-allocatable section `.stab'
cannot be processed at runtime: relocation ignored
Undefined first referenced
symbol in file
__t13_bz_ArrayExpr1Zt15_bz_ArrayExprOp3Zt21_bz_ArrayExprConstant1ZdZt13_bz_ArrayExpr1Zt15_bz_ArrayExprOp3Zt13_bz_ArrayExpr1Zt15_bz_ArrayExprOp3Zt13_bz_ArrayExpr1Zt15_bz_ArrayExprOp3Zt13_bz_ArrayExpr1Zt15_bz_ArrayExprOp3Zt13_bz_ArrayExpr1Zt15_bz_ArrayExprOp3Zt13_bz_ArrayExpr1Zt15_bz_ArrayExprOp3Zt13_bz_ArrayExpr1Zt15_bz_ArrayExprOp3Zt21_bz_ArrayExprConstant1ZdZt13ArrayIterator2Zfi3Zt8Multiply2ZdZfZt13ArrayIterator2Zfi3Zt3Add2ZdZfZt13ArrayIterator2Zfi3Zt3Add2ZdZfZt13ArrayIterator2Zfi3Zt3Add2ZdZfZt13ArrayIterator2Zfi3Zt3Add2ZdZfZt13ArrayIterator2Zfi3Zt3Add2ZdZfZt13ArrayIterator2Zfi3Zt3Add2ZdZfZt8Multiply2ZdZdRCt13_bz_ArrayExpr1Zt15_bz_ArrayExprOp3Zt21_bz_ArrayExprConstant1ZdZt13_bz_ArrayExpr1Zt15_bz_ArrayExprOp3Zt13_bz_ArrayExpr1Zt15_bz_ArrayExprOp3Zt13_bz_ArrayExpr1Zt15_bz_ArrayExprOp3Zt1
array.o
ld: fatal: Symbol referencing errors. No output written to array
collect2: ld returned 1 exit status
make[1]: *** [array] Error 1
make[1]: Leaving directory `/home/u8/kan/temp/blitz/examples'
make: *** [all] Error 1