This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


The following reply was made to PR bootstrap/3314; it has been noted by GNATS.

From: Craig Rodrigues <rodrigc@mediaone.net>
To: harri.pasanen@trema.com, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
   jdonner@schedsys.com, ljrittle@gcc.gnu.org, gcc-bugs@gcc.gnu.org
Cc:  
Subject: Re: bootstrap/3314: --enable-threads does not seem to be working for 
 HP-UX 11.00
Date: Tue, 15 Jan 2002 11:39:24 -0500

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]