Bug 3456

Summary: bootstrapping gcc-3.0 with threadmodel=posix fails on IRIX64 6.5
Product: gcc Reporter: boris.waibel
Component: bootstrapAssignee: Rainer Orth <ro>
Status: RESOLVED FIXED    
Severity: normal CC: gcc-bugs, rodrigc
Priority: P3 Keywords: build
Version: 3.0   
Target Milestone: ---   
Host: mips-sgi-irix6.5 Target: mips-sgi-irix6.5
Build: mips-sgi-irix6.5 Known to work:
Known to fail: Last reconfirmed: 2007-07-05 18:17:26

Description boris.waibel 2001-06-28 03:56:01 UTC
bootstrapping gcc-3.0 on IRIX64 6.5 fails if threadmodel
posix is chosen, since stage1/xgcc does not link libpthread.

Release:
unknown

How-To-Repeat:
try building on this system
Comment 1 boris.waibel 2001-06-28 03:56:01 UTC
Fix:
add "-lpthread" to *link options in specs file.
Comment 2 Craig Rodrigues 2001-11-18 19:49:18 UTC
State-Changed-From-To: open->suspended
State-Changed-Why: The release notes for GCC at http://gcc.gnu.org/install/specific.html#mips-sgi-irix6
    say the following:
    
    "The --enable-threads option doesn't currently work, 
    a patch is in preparation for a future release."
    
    I don't know what the status of the patch is, but
    basically --enable-threads option does not work on IRIX.
Comment 3 Craig Rodrigues 2001-11-19 03:49:19 UTC
From: rodrigc@gcc.gnu.org
To: boris.waibel@gmx.de, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org,
  gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org
Cc:  
Subject: Re: bootstrap/3456: bootstrapping gcc-3.0 with treadmodel=posix fails on IRIX64 6.5
Date: 19 Nov 2001 03:49:19 -0000

 Synopsis: bootstrapping gcc-3.0 with treadmodel=posix fails on IRIX64 6.5
 
 State-Changed-From-To: open->suspended
 State-Changed-By: rodrigc
 State-Changed-When: Sun Nov 18 19:49:18 2001
 State-Changed-Why:
     The release notes for GCC at http://gcc.gnu.org/install/specific.html#mips-sgi-irix6
     say the following:
     
     "The --enable-threads option doesn't currently work, 
     a patch is in preparation for a future release."
     
     I don't know what the status of the patch is, but
     basically --enable-threads option does not work on IRIX.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=3456&database=gcc

Comment 4 Dara Hazeghi 2003-05-21 01:18:41 UTC
From: Dara Hazeghi <dhazeghi@yahoo.com>
To: boris.waibel@gmx.de, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org,
   nobody@gcc.gnu.org, echristo@redhat.com
Cc:  
Subject: Re: bootstrap/3456: bootstrapping gcc-3.0 with treadmodel=posix fails on IRIX64 6.5
Date: Wed, 21 May 2003 01:18:41 -0700

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- 
 trail&database=gcc&pr=3456
 
 Hello,
 
 this bug report deals with the inavailability of thread support on Irix  
 6.5, as mentioned in the target specific install instructions. Does  
 anybody know how current this statement is? Is such support still  
 lacking? Does gcc 3.3 still exhibit this problem? Thanks,
 
 Dara
Comment 5 Andrew Pinski 2003-08-05 01:42:38 UTC
I just looked in the source and the LINK_SPEC does not have -lpthread in there at all so thi is not 
fixed at all.
Comment 6 Rainer Orth 2007-07-05 18:17:25 UTC
Working on a patch.
Comment 7 Rainer Orth 2007-07-12 17:43:39 UTC
Patch here:

http://gcc.gnu.org/ml/gcc-patches/2007-07/msg01185.html
Comment 8 Rainer Orth 2007-07-16 17:21:22 UTC
Subject: Bug 3456

Author: ro
Date: Mon Jul 16 17:21:10 2007
New Revision: 126685

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126685
Log:
	gcc:
	PR bootstrap/3456
	* config.gcc (mips-sgi-irix[56]*): Enable pthread support.
	* doc/install.texi (mips-sgi-irix6): pthread support works now.

	libstdc++-v3:
	PR bootstrap/3456
	* testsuite/22_locale/locale/cons/12658_thread-1.cc: Enable on
	mips-sgi-irix6*.
	* testsuite/22_locale/locale/cons/12658_thread-2.cc: Likewise.
	* testsuite/thread/18185.cc: Likewise.
	* testsuite/thread/pthread1.cc: Likewise.
	* testsuite/thread/pthread2.cc: Likewise.
	* testsuite/thread/pthread3.cc: Likewise.
	* testsuite/thread/pthread4.cc: Likewise.
	* testsuite/thread/pthread5.cc: Likewise.
	* testsuite/thread/pthread6.cc: Likewise.
	* testsuite/thread/pthread7-rope.cc: Likewise.
	* testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc: Likewise.
	* testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc: Likewise.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config.gcc
    trunk/gcc/doc/install.texi
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/testsuite/22_locale/locale/cons/12658_thread-1.cc
    trunk/libstdc++-v3/testsuite/22_locale/locale/cons/12658_thread-2.cc
    trunk/libstdc++-v3/testsuite/thread/18185.cc
    trunk/libstdc++-v3/testsuite/thread/pthread1.cc
    trunk/libstdc++-v3/testsuite/thread/pthread2.cc
    trunk/libstdc++-v3/testsuite/thread/pthread3.cc
    trunk/libstdc++-v3/testsuite/thread/pthread4.cc
    trunk/libstdc++-v3/testsuite/thread/pthread5.cc
    trunk/libstdc++-v3/testsuite/thread/pthread6.cc
    trunk/libstdc++-v3/testsuite/thread/pthread7-rope.cc
    trunk/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc
    trunk/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc

Comment 9 Rainer Orth 2007-07-16 17:22:05 UTC
Fixed for 4.3.