public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: target/5383: 3.0.3 with threads enabled links with unsatisfied thread symbols, even with -threads
@ 2002-01-15  8:06 Jeff Donner
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff Donner @ 2002-01-15  8:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: Jeff Donner <jdonner@schedsys.com>
To: rodrigc@gcc.gnu.org, jdonner@schedsys.com, nobody@gcc.gnu.org,
	gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: target/5383: 3.0.3 with threads enabled links with unsatisfied thread symbols, even with -threads
Date: Tue, 15 Jan 2002 11:00:59 -0500

 > Synopsis: 3.0.3 with threads enabled links with unsatisfied thread symbols, even with -threads
 
 >     Duplicate of PR 3314, see:
 
 
 >     http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3314
 > 
 > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5383
 
 
 I don't think it's a duplicate of 3314;  unlike 3314 I explicitly 
 specify --enable-threads=posix, and indeed the resulting gcc -v says:
 
 ...
 
 Thread model: posix
 gcc version 3.0.3
 
 
 3314 is about how if you just say --enable-threads
 it may default to no threads.  5383 shows details of how the thread 
 support is bad, when you do get it (by asking explicitly).
 
 Unless you mean, '3314 and 5383 both show that thread support is messed 
 up on hp 11'.  However, I think 5383 has more helpful detail, enough to 
 be worth keeping.  3314 just shows an indirect stumble over the fact 
 that something is wrong.
 
 Jeff
 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: target/5383: 3.0.3 with threads enabled links with unsatisfied thread symbols, even with -threads
@ 2002-01-14 19:12 rodrigc
  0 siblings, 0 replies; 3+ messages in thread
From: rodrigc @ 2002-01-14 19:12 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, jdonner, nobody

Synopsis: 3.0.3 with threads enabled links with unsatisfied thread symbols, even with -threads

State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Mon Jan 14 19:12:05 2002
State-Changed-Why:
    --enable-threads does not currently work under HP-UX.
    Duplicate of PR 3314, see:
    
    http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3314

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* target/5383: 3.0.3 with threads enabled links with unsatisfied thread symbols, even with -threads
@ 2002-01-14 13:06 jdonner
  0 siblings, 0 replies; 3+ messages in thread
From: jdonner @ 2002-01-14 13:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         5383
>Category:       target
>Synopsis:       3.0.3 with threads enabled links with unsatisfied thread symbols, even with -threads
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 14 13:06:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jeff Donner
>Release:        3.0.3
>Organization:
>Environment:
HP-UX tango B.11.00 A 9000/785,
hppa2.0w-hp-hpux11.00,
binutils 2.11.2,
(jpararas@tango ~ >as --version
GNU assembler 2.11.2
Copyright 2001 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `hppa2.0w-hp-hpux11.00'.
)
>Description:
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

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-01-15 16:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-15  8:06 target/5383: 3.0.3 with threads enabled links with unsatisfied thread symbols, even with -threads Jeff Donner
  -- strict thread matches above, loose matches on Subject: below --
2002-01-14 19:12 rodrigc
2002-01-14 13:06 jdonner

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