public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcc/56482] New: missing -lpthread in configure when checking for pthreads_num_processors_np
@ 2013-02-28 12:02 k2k at narod dot ru
  2013-02-28 12:27 ` [Bug libstdc++/56482] " redi at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: k2k at narod dot ru @ 2013-02-28 12:02 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56482

             Bug #: 56482
           Summary: missing -lpthread in configure when checking for
                    pthreads_num_processors_np
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: k2k@narod.ru
              Host: mingw32
            Target: mingw32, mingw32-w64


>From configure.log:

configure:20205: checking for pthreads_num_processors_np
configure:20244:  /dvlp/packages/gcc/build/4.7.2-i686-w64-mingw32/./gcc/xgcc
-shared-libgcc -B/dvlp/packages/gcc/build/4.7.2-i686-w64-mingw32/./gcc
-nostdinc++
-L/dvlp/packages/gcc/build/4.7.2-i686-w64-mingw32/i686-w64-mingw32/libstdc++-v3/src
-L/dvlp/packages/gcc/build/4.7.2-i686-w64-mingw32/i686-w64-mingw32/libstdc++-v3/src/.libs
-L/dvlp/mingw-w64-i686/i686-w64-mingw32/lib -L/dvlp/mingw-w64-i686/mingw/lib
-isystem /dvlp/mingw-w64-i686/i686-w64-mingw32/include -isystem
/dvlp/mingw-w64-i686/mingw/include -B/dvlp/mingw-w64-i686/i686-w64-mingw32/bin/
-B/dvlp/mingw-w64-i686/i686-w64-mingw32/lib/ -isystem
/dvlp/mingw-w64-i686/i686-w64-mingw32/include -isystem
/dvlp/mingw-w64-i686/i686-w64-mingw32/sys-include
-L/dvlp/packages/gcc/build/4.7.2-i686-w64-mingw32/./ld    -o conftest.exe -g
-O2 -fno-exceptions   conftest.cpp  >&5
C:\Users\Karlson\AppData\Local\Temp\ccd7ltCc.o: In function `main':
T:\dvlp\packages\gcc\build\4.7.2-i686-w64-mingw32\i686-w64-mingw32\libstdc++-v3/conftest.cpp:76:
undefined reference to `_imp__pthread_num_processors_np'
collect2.exe: error: ld returned 1 exit status
configure:20244: $? = 1
configure: failed program was:
....


Configure didn't try with '-lpthread' flag, so result can't be linked with
libpthread.


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

* [Bug libstdc++/56482] missing -lpthread in configure when checking for pthreads_num_processors_np
  2013-02-28 12:02 [Bug libgcc/56482] New: missing -lpthread in configure when checking for pthreads_num_processors_np k2k at narod dot ru
@ 2013-02-28 12:27 ` redi at gcc dot gnu.org
  2013-02-28 14:08 ` k2k at narod dot ru
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2013-02-28 12:27 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56482

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-02-28
     Ever Confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-02-28 12:27:09 UTC ---
Those tests possibly shouldn't be link tests anyway, just compile tests.

Note to self, the comment on GLIBCXX_CHECK_SYSCTL_HW_NCPU wrongly mentions
<pthread.h>


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

* [Bug libstdc++/56482] missing -lpthread in configure when checking for pthreads_num_processors_np
  2013-02-28 12:02 [Bug libgcc/56482] New: missing -lpthread in configure when checking for pthreads_num_processors_np k2k at narod dot ru
  2013-02-28 12:27 ` [Bug libstdc++/56482] " redi at gcc dot gnu.org
@ 2013-02-28 14:08 ` k2k at narod dot ru
  2013-02-28 14:28 ` redi at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: k2k at narod dot ru @ 2013-02-28 14:08 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56482

--- Comment #2 from Karlson2k <k2k at narod dot ru> 2013-02-28 14:08:02 UTC ---
If it'll be only compile test, how result can be linked when dependence on
libpthread will be unknown?


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

* [Bug libstdc++/56482] missing -lpthread in configure when checking for pthreads_num_processors_np
  2013-02-28 12:02 [Bug libgcc/56482] New: missing -lpthread in configure when checking for pthreads_num_processors_np k2k at narod dot ru
  2013-02-28 12:27 ` [Bug libstdc++/56482] " redi at gcc dot gnu.org
  2013-02-28 14:08 ` k2k at narod dot ru
@ 2013-02-28 14:28 ` redi at gcc dot gnu.org
  2013-02-28 14:29 ` redi at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2013-02-28 14:28 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56482

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-02-28 14:27:48 UTC ---
The function is only used in src/c++11/thread.cc which will already be linked
to libpthread.so if needed.


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

* [Bug libstdc++/56482] missing -lpthread in configure when checking for pthreads_num_processors_np
  2013-02-28 12:02 [Bug libgcc/56482] New: missing -lpthread in configure when checking for pthreads_num_processors_np k2k at narod dot ru
                   ` (2 preceding siblings ...)
  2013-02-28 14:28 ` redi at gcc dot gnu.org
@ 2013-02-28 14:29 ` redi at gcc dot gnu.org
  2014-06-23 22:22 ` redi at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2013-02-28 14:29 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56482

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-02-28 14:29:10 UTC ---
Actually that might not be true ... the other functions used in thread.cc could
be linked to weak symbols.


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

* [Bug libstdc++/56482] missing -lpthread in configure when checking for pthreads_num_processors_np
  2013-02-28 12:02 [Bug libgcc/56482] New: missing -lpthread in configure when checking for pthreads_num_processors_np k2k at narod dot ru
                   ` (3 preceding siblings ...)
  2013-02-28 14:29 ` redi at gcc dot gnu.org
@ 2014-06-23 22:22 ` redi at gcc dot gnu.org
  2022-02-24 18:31 ` egallager at gcc dot gnu.org
  2023-08-09 13:37 ` k2k at narod dot ru
  6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2014-06-23 22:22 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56482

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Created attachment 32993
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32993&action=edit
change GCC_TRY_COMPILE_OR_LINK test to AC_TRY_COMPILE

Does this patch (against trunk) solve the problem?


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

* [Bug libstdc++/56482] missing -lpthread in configure when checking for pthreads_num_processors_np
  2013-02-28 12:02 [Bug libgcc/56482] New: missing -lpthread in configure when checking for pthreads_num_processors_np k2k at narod dot ru
                   ` (4 preceding siblings ...)
  2014-06-23 22:22 ` redi at gcc dot gnu.org
@ 2022-02-24 18:31 ` egallager at gcc dot gnu.org
  2023-08-09 13:37 ` k2k at narod dot ru
  6 siblings, 0 replies; 8+ messages in thread
From: egallager at gcc dot gnu.org @ 2022-02-24 18:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56482

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |egallager at gcc dot gnu.org

--- Comment #6 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #5)
> Created attachment 32993 [details]
> change GCC_TRY_COMPILE_OR_LINK test to AC_TRY_COMPILE
> 
> Does this patch (against trunk) solve the problem?

marking this as WAITING on a reply from the reporter

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

* [Bug libstdc++/56482] missing -lpthread in configure when checking for pthreads_num_processors_np
  2013-02-28 12:02 [Bug libgcc/56482] New: missing -lpthread in configure when checking for pthreads_num_processors_np k2k at narod dot ru
                   ` (5 preceding siblings ...)
  2022-02-24 18:31 ` egallager at gcc dot gnu.org
@ 2023-08-09 13:37 ` k2k at narod dot ru
  6 siblings, 0 replies; 8+ messages in thread
From: k2k at narod dot ru @ 2023-08-09 13:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56482

--- Comment #7 from Karlson2k <k2k at narod dot ru> ---
Sorry, I can't check it, my build environment was lost a long time ago.

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

end of thread, other threads:[~2023-08-09 13:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-28 12:02 [Bug libgcc/56482] New: missing -lpthread in configure when checking for pthreads_num_processors_np k2k at narod dot ru
2013-02-28 12:27 ` [Bug libstdc++/56482] " redi at gcc dot gnu.org
2013-02-28 14:08 ` k2k at narod dot ru
2013-02-28 14:28 ` redi at gcc dot gnu.org
2013-02-28 14:29 ` redi at gcc dot gnu.org
2014-06-23 22:22 ` redi at gcc dot gnu.org
2022-02-24 18:31 ` egallager at gcc dot gnu.org
2023-08-09 13:37 ` k2k at narod dot ru

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