bootstrap/3314: --enable-threads does not seem to be working for HP-UX 11.00

Craig Rodrigues rodrigc@mediaone.net
Tue Jan 15 08:39:00 GMT 2002


http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3314

Information added from PR 5383 which is a duplicate of this:
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3314

--enable-threads configure option does not abort on HP-UX 11, and
consequently
creates a badly configured compiler.
============================================================================================================

> jpararas@tango ~ >gcc -v
> Reading specs from /usr/local/gcc303/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.3/specs
> Configured with: ../gcc-3.0.3/configure --prefix=/usr/local/gcc303 --with-gnu-as --with-as=/usr/local/bin/as --with-ld=/usr/ccs/bin/ld --enable-threads=posix
> Thread model: posix
> gcc version 3.0.3
>
>
> This was compiled with thread support.  However, a simple
> Hello World app, Foo.cpp fails to link, as follows:
>
> jpararas@tango ~ >g++ Foo.cpp
> /usr/ccs/bin/ld: Unsatisfied symbols:
>    pthread_once (code)
>    pthread_key_create (code)
>    pthread_setspecific (code)
>    pthread_mutex_unlock (code)
>    pthread_getspecific (code)
>    pthread_mutex_lock (code)
> collect2: ld returned 1 exit status
>
>
> And even:
>
> jpararas@tango ~ >g++ -threads Foo.cpp
> /usr/ccs/bin/ld: Unsatisfied symbols:
>    pthread_key_create (code)
> collect2: ld returned 1 exit status
>
> A precompiled, single-thread gcc 3.0.1 (binary from HP)
>
> jpararas@tango ~ >gcc -v
> Reading specs from /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/specs
> Configured with: ./configure  : (reconfigured) ./configure  : (reconfigured) ./configure  : (reconfigured) ./configure  : (reconfigured) ./configure
> Thread model: single
> gcc version 3.0.1
>
> compiles & runs fine:
> jpararas@tango ~ >g++ Foo.cpp
> jpararas@tango ~ >./a.out
> Hello world
>
>





More information about the Gcc-bugs mailing list