From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29450 invoked by alias); 28 Feb 2013 12:02:03 -0000 Received: (qmail 28810 invoked by uid 48); 28 Feb 2013 12:00:50 -0000 From: "k2k at narod dot ru" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgcc X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: k2k at narod dot ru X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2013-02/txt/msg02680.txt.bz2 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.