public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "k2k at narod dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgcc/56482] New: missing -lpthread in configure when checking for pthreads_num_processors_np
Date: Thu, 28 Feb 2013 12:02:00 -0000	[thread overview]
Message-ID: <bug-56482-4@http.gcc.gnu.org/bugzilla/> (raw)


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.


             reply	other threads:[~2013-02-28 12:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-28 12:02 k2k at narod dot ru [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-56482-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).