This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-19980628 & blitz++
- To: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Subject: Re: egcs-19980628 & blitz++
- From: Ted Irons <ironst at aries dot tucson dot saic dot com>
- Date: Sat, 04 Jul 1998 08:33:31 -0700
- Cc: egcs at cygnus dot com, tveldhui at monet dot uwaterloo dot ca
- Organization: Science Applications
- References: <Pine.GSO.3.96.980704162222.10314A-100000@bootes.dbai.tuwien.ac.at>
Gerald -
Thanks for the tip. Even tho I set the binutils-2.9.1 bin
directory first in the PATH env variable (and binutils lib
first in LD_LIBRARY_PATH), it looks like
collect2 is picking up stuff from /usr/ccs/lib.
How can I make sure that the binutils as and ld will be
invoked?
Thanks again,
- Ted
Reading specs from
/local/swl/egcs-19980628/SunOS5/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.43/specs
gcc version egcs-2.91.43 19980628 (gcc2 ss-980502 experimental)
/local/swl/egcs-19980628/SunOS5/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.43/collect2
-V -Y P,/usr/ccs/lib:/usr/lib -Qy -o array
/local/swl/egcs-19980628/SunOS5/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.43/crt1.o
/local/swl/egcs-19980628/SunOS5/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.43/crti.o
/usr/ccs/lib/values-Xa.o
/local/swl/egcs-19980628/SunOS5/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.43/crtbegin.o
-L../lib
-L/local/swl/egcs-19980628/SunOS5/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.43
-L/local/swl/egcs-19980628/SunOS5/sparc-sun-solaris2.5.1/lib
-L/usr/ccs/bin -L/usr/ccs/lib -L/local/swl/egcs-19980628/SunOS5/lib
array.o -lblitz -lstdc++ -lm -lgcc -lc -lgcc
/local/swl/egcs-19980628/SunOS5/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.43/crtend.o
/local/swl/egcs-19980628/SunOS5/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.43/crtn.o
ld: Software Generation Utilities (SGU) SunOS/ELF (LK-2.0 (S/I) -
versioning)
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
Gerald Pfeifer wrote:
>
> On Fri, 3 Jul 1998, Ted Irons wrote:
> > On a Solaris 2.5.1 machine using egcs-19980628 and binutils-2.9.1:
> >
> > While compiling array.cpp in the examples directory of the blitz++
> > (blitz-0.3-alpha-01) library (from http://monet.uwaterloo.ca/blitz/ )
> > I get the following error.
>
> Hmm, this is just a wild guess, but just to make sure: Are you indeed
> using ld from binutils (and not Sun's as, e.g.)?
>
> You can check this out by adding the -v option the invocations of gcc/g++.
>
> Gerald
> --
> Gerald Pfeifer (Jerry) Vienna University of Technology
> pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/