First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 11903
Product:  
Component:  
Status: RESOLVED
Resolution: FIXED
Assigned To: Kazumoto Kojima <kkojima@gcc.gnu.org>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: dank@kegel.com
Add CC:
CC:
Remove selected CCs
Build:
URL:
Summary:
Keywords:
Known to work:
Known to fail:

Attachment Description Type Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 11903 depends on: Show dependency tree
Show dependency graph
Bug 11903 blocks:

Additional Comments:






View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: 2003-08-13 03:52 Opened: 2003-08-13 03:48
Linking any program with -pthread fails with error
"ld: cannot find -lthread".  This is a silly mistake
in the spec file.  A patch to fix this is at 
http://www.kegel.com/crosstool/current/gcc-3.3-patches/sh4-pthread.patch
Please apply for gcc-3.3.2.

------- Comment #1 From Andrew Pinski 2003-08-13 03:52 -------
Same as before:
        * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
        (LIB_SPEC): Set -lpthread always when -pthread set.  Set -lieee
        when -mieee-fp set and -shared not set.   
        (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
In fact this and bug 11902 can be fixed in one commit.

------- Comment #2 From kkojima@rr.iij4u.or.jp 2003-08-13 04:11 -------
Subject: Re:  [3.3 only] -pthread fails to link due to error
 in spec file on sh4

> Same as before:
>         * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
>         (LIB_SPEC): Set -lpthread always when -pthread set.  Set -lieee
>         when -mieee-fp set and -shared not set.   
>         (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
> In fact this and bug 11902 can be fixed in one commit.

Yes. This is also fixed already on 3.3.2 with:
2003-08-08  Kaz Kojima  <kkojima@gcc.gnu.org>

        * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
        (LIB_SPEC): Set -lpthread always when -pthread set.  Set -lieee
        when -mieee-fp set and -shared not set.

------- Comment #3 From Andrew Pinski 2003-08-13 04:16 -------
Closing as fixed.  I should have looked before confirming bugs (it is too late
for me need sleep).

------- Comment #4 From dank@kegel.com 2003-08-13 04:25 -------
Sorry for the noise!

First Last Prev Next    No search results available      Search page      Enter new bug