public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* egcs-19980628 & blitz++
@ 1998-07-03 15:29 Ted Irons
  1998-07-04  7:26 ` Gerald Pfeifer
  0 siblings, 1 reply; 4+ messages in thread
From: Ted Irons @ 1998-07-03 15:29 UTC (permalink / raw)
  To: egcs; +Cc: tveldhui

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.  Could someone please explain it
to me?


g++ -ftemplate-depth-30 -g -DBZ_DEBUG -I./.. -c ./array.cpp
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
gmake: *** [array] Error 1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: egcs-19980628 & blitz++
  1998-07-03 15:29 egcs-19980628 & blitz++ Ted Irons
@ 1998-07-04  7:26 ` Gerald Pfeifer
  1998-07-04  8:32   ` Ted Irons
  0 siblings, 1 reply; 4+ messages in thread
From: Gerald Pfeifer @ 1998-07-04  7:26 UTC (permalink / raw)
  To: Ted Irons; +Cc: egcs, tveldhui

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/


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: egcs-19980628 & blitz++
  1998-07-04  7:26 ` Gerald Pfeifer
@ 1998-07-04  8:32   ` Ted Irons
  1998-07-06  4:08     ` Gerald Pfeifer
  0 siblings, 1 reply; 4+ messages in thread
From: Ted Irons @ 1998-07-04  8:32 UTC (permalink / raw)
  To: Gerald Pfeifer; +Cc: egcs, tveldhui

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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: egcs-19980628 & blitz++
  1998-07-04  8:32   ` Ted Irons
@ 1998-07-06  4:08     ` Gerald Pfeifer
  0 siblings, 0 replies; 4+ messages in thread
From: Gerald Pfeifer @ 1998-07-06  4:08 UTC (permalink / raw)
  To: Ted Irons; +Cc: egcs

On Sat, 4 Jul 1998, Ted Irons wrote:
> Thanks for the tip. 

Glad I could help! :-)

> How can I make sure that the binutils as and ld will be invoked? 

I haven't tried this for ld, but simply copying binutils as to
$EGCS/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.*/ or making
a symbolic link there works fine for me!


BTW, Ted, how about contributing a FAQ entry ( http://egcs.cygnus.com/faq.html )
about those Sun `as` problems and how to solve them? ;-)

Ciao,
Gerald
-- 
Gerald Pfeifer (Jerry)      Vienna University of Technology
pfeifer@dbai.tuwien.ac.at   http://www.dbai.tuwien.ac.at/~pfeifer/


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-07-06  4:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-07-03 15:29 egcs-19980628 & blitz++ Ted Irons
1998-07-04  7:26 ` Gerald Pfeifer
1998-07-04  8:32   ` Ted Irons
1998-07-06  4:08     ` Gerald Pfeifer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).