From: farnham@spot.Colorado.EDU (Farnham Dave)
Subject: Sun sparc 2 & libg++-2.0
Organization: University of Colorado, Boulder
Date: Fri, 10 Apr 1992 19:55:28 GMT


System: SunOS 4.1.1 1 sun4c  ( sparc 2 )

In running the first test in "test-install" of libg++-2.0
( basically: "c++ Foo.cc foo_func.cc foo_main.cc" )

I get the following output which differs from the "expected.out"
	Constructing Foo(1) "static_foo2"
	Initializing Foo(2) "static_foo2" with Foo(1)
	Destructing Foo(1) "static_foo2" (remaining foos: 1)
	Constructing Foo(2) "static_foo1"
	Initializing Foo(3) "static_foo1" with Foo(2)
	Destructing Foo(2) "static_foo1" (remaining foos: 2)
	Constructing Foo(3) "automatic_foo"
	Constructing Foo(4) "default-foo"
	Initializing Foo(5) "default-foo" with Foo(4)
	Destructing Foo(4) "default-foo" (remaining foos: 4)
	Constructing Foo(5) "other_foo1"
	Constructing Foo(6) "other_foo2"
	Copying Foo(5) "other_foo1" to Foo(6)
	Destructing Foo(6) "other_foo1" (remaining foos: 5)
	Destructing Foo(5) "other_foo1" (remaining foos: 4)
	Destructing Foo(5) "default-foo" (remaining foos: 3)
	Destructing Foo(3) "automatic_foo" (remaining foos: 2)
	Destructing Foo(3) "static_foo1" (remaining foos: 1)
	Destructing Foo(2) "static_foo2" (remaining foos: 0)

Anybody know what I did wrong?  gcc-2.1 built with no
errors, and so did libg++-2.0.  The "make tests" from the
"tests" directory in libg++-2.0 builds and runs fine.  I
installed "collect" when building gcc-2.1.  I'm confused.

Below is the output of "c++ -v Foo.cc foo_func.cc foo_main.cc" if
that helps anyone decipher where I mucked up.

Thanks,

Dave

================================================================
Dave Farnham
Ball Aerospace
Electro-Optical/Cryogenics Division  "Why is my office so cold?"
P.O. Box 1062
Boulder, CO  80306    (303) 939-5515
{ farnham@spot.colorado.edu, farnham@handel.cs.colostate.edu }


Reading specs from /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.1/specs
gcc version 2.1
 /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.1/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix Foo.cc /usr/tmp/cca23031.i
GNU CPP version 2.1 (sparc)
 /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.1/cc1plus /usr/tmp/cca23031.i -quiet -dumpbase Foo.cc -version -o /usr/tmp/cca23031.s
GNU C++ version 2.1 (sparc) compiled by GNU C version 2.1.
 as -o Foo.o /usr/tmp/cca23031.s
 /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.1/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix foo_func.cc /usr/tmp/cca23031.i
GNU CPP version 2.1 (sparc)
 /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.1/cc1plus /usr/tmp/cca23031.i -quiet -dumpbase foo_func.cc -version -o /usr/tmp/cca23031.s
GNU C++ version 2.1 (sparc) compiled by GNU C version 2.1.
 as -o foo_func.o /usr/tmp/cca23031.s
 /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.1/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix foo_main.cc /usr/tmp/cca23031.i
GNU CPP version 2.1 (sparc)
 /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.1/cc1plus /usr/tmp/cca23031.i -quiet -dumpbase foo_main.cc -version -o /usr/tmp/cca23031.s
GNU C++ version 2.1 (sparc) compiled by GNU C version 2.1.
 as -o foo_main.o /usr/tmp/cca23031.s
 /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.1/ld -e start -dc -dp /lib/crt0.o -L/usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.1/ -L/usr/local/lib/ Foo.o foo_func.o foo_main.o -lg++ -lgcc -lc -lgcc