public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* threads on the HPUX.
@ 1998-04-23 23:23 Arvind Sankar
  0 siblings, 0 replies; only message in thread
From: Arvind Sankar @ 1998-04-23 23:23 UTC (permalink / raw)
  To: egcs

The latest 2-3 snapshots(including 19980418) have some exception
handling routines which require pthread_* functions. On my HPUX system,
lots of g++ tests fail because about 4-5 of these functions are not
linked in. I can't figure out why: I looked in the specs file, and
libcma.a (from the DCE threads package) is supposed to be linked in with
-threads, but the tests don't specify it. Why do the eh routines require
thread functions even without -threads?

To get the tests working, I tried adding libcma.a to libgcc.a, but this
results in _all_ executables getting the full cma library, which bloats
the executable unacceptably.

I configured egcs with
/test1/arvind/egcs-19980418/configure --host=hppa1.1-hp-hpux10.20
	--prefix=/pkgs/egcs --with-gnu-as --verbose

The following was generated while compiling hello.cc:
Reading specs from /pkgs/egcs/lib/gcc-lib/hppa1.1-hp-hpux10.20/
	egcs-2.91.24/specs
gcc version egcs-2.91.24 19980418 (gcc2 ss-980401 experimental)
 /pkgs/egcs/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.91.24/cpp -lang-c++
 	-v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -Dhppa -Dhp9000s800 -D__hp9000s800 -Dhp9k8 -DPWB -Dhpux -Dunix -D__hppa__ -D__hp9000s800__ -D__hp9000s800 -D__hp9k8__ -D__PWB__ -D__hpux__ -D__unix__ -D__hppa -D__hp9000s800 -D__hp9k8 -D__PWB -D__hpux -D__unix -Asystem(unix) -Asystem(hpux) -Acpu(hppa) -Amachine(hppa) -D__EXCEPTIONS -D__hp9000s700 -D_PA_RISC1_1 -D_HPUX_SOURCE -D_HIUX_SOURCE src/c/hello.cc /var/tmp/cca19666.ii
GNU CPP version egcs-2.91.24 19980418 (gcc2 ss-980401 experimental) (hppa)
#include "..." search starts here:
#include <...> search starts here:
 /pkgs/egcs/include/g++
 /usr/local/include
 /pkgs/egcs/hppa1.1-hp-hpux10.20/include
 /pkgs/egcs/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.91.24/include
 /usr/include
End of search list.
 /pkgs/egcs/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.91.24/cc1plus
 	/var/tmp/cca19666.ii -quiet -dumpbase hello.cc
	-version -o /var/tmp/cca19666.s
GNU C++ version egcs-2.91.24 19980418 (gcc2 ss-980401 experimental)
	(hppa1.1-hp-hpux10.20) compiled by GNU C
		version egcs-2.91.24 19980418 (gcc2 ss-980401 experimental).
 /pkgs/egcs/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.91.24/as
 	-o /var/tmp/cca196661.o /var/tmp/cca19666.s
 /pkgs/egcs/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.91.24/collect2
 	-L/lib/pa1.1 -L/usr/lib/pa1.1 -z -u main /usr/ccs/lib/crt0.o
	-L/pkgs/local/lib
	-L/pkgs/egcs/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.91.24
	-L/pkgs/egcs/hppa1.1-hp-hpux10.20/lib
	-L/usr/ccs/bin -L/usr/ccs/lib -L/pkgs/egcs/lib
	/var/tmp/cca196661.o -lstdc++ -lm -lgcc -lc -lgcc
/usr/ccs/bin/ld: Unsatisfied symbols:
   pthread_once (code)
   pthread_setspecific (code)
   pthread_getspecific (code)
   pthread_keycreate (code)
collect2: ld returned 1 exit status

-- arvind

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-04-23 23:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-04-23 23:23 threads on the HPUX Arvind Sankar

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).