threads not in configure file for some HPUX?
Robert A Nesius
rnesiusATichips.intel.com
Tue Sep 14 23:05:00 GMT 1999
Hi there,
I noticed that there was no code in the gcc/configure script
in the hppa1.1-*-hp* paragraph as opposed to the
hppa1.0-*-hpux10* paragraph.
My config.guess yeilds: hppa1.1-hp-hpux10.20
But even though I built with --enable-threads=dce, my build would
still be broken for threads because of the configure code below,
yes?
Could the gcc build gods offer some thoughts on this?
Thanks,
-Rob
-- excerpt of threads-enabled build dying on simple program:
[dtthp204]-> ~ 209> g++ -v
Reading specs from /usr/local/pkgs/gcc/2.95.1/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.1/specs
gcc version 2.95.1 19990816 (release)
[dtthp204]-> ~ 210> cat hello.C
#include <stream.h>
main()
{
cout << "Hello, world! -C++\n";
}
[dtthp204]-> ~ 211> g++ hello.C
/usr/ccs/bin/ld: Unsatisfied symbols:
pthread_once (code)
pthread_setspecific (code)
pthread_getspecific (code)
pthread_keycreate (code)
collect2: ld returned 1 exit status
---
building with 'g++ -ldce hello.C' /does/ work.
-------excerpt of suspect configure code--------
hppa1.0-*-hpux10*)
tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
tmake_file=pa/t-pa
if test x$gas = xyes
then
tm_file="${tm_file} pa/pa-gas.h"
fi
if test x$enable_threads = x; then
enable_threads=$have_pthread_h
fi
if test x$enable_threads = xyes; then
thread_file='dce'
tmake_file="${tmake_file} pa/t-dce-thr"
fi
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
hppa1.1-*-hpux* | hppa2*-*-hpux*)
target_cpu_default="MASK_PA_11"
tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
xm_file=pa/xm-pahpux.h
xmake_file=pa/x-pa-hpux
if test x$gas = xyes
then
tm_file="${tm_file} pa/pa-gas.h"
fi
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
--
#include <sig.h>
------------------------------------------------------------------
Robert Nesius rnesius@ichips.intel.com 503.264.2830
More information about the Gcc-help
mailing list