From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32121 invoked by alias); 8 Oct 2012 16:48:13 -0000 Received: (qmail 31961 invoked by uid 48); 8 Oct 2012 16:47:46 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/54847] --enable-libstdcxx-time=yes doesn't find the function nanosleep() on darwin Date: Mon, 08 Oct 2012 16:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status Last reconfirmed Summary Ever Confirmed Message-ID: In-Reply-To: References: 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: 2012-10/txt/msg00710.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54847 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2012-10-08 Summary|--enable-libstdcxx-time=yes |--enable-libstdcxx-time=yes |doesn't find the functional |doesn't find the function |nanosleep() on darwin |nanosleep() on darwin Ever Confirmed|0 |1 --- Comment #37 from Jonathan Wakely 2012-10-08 16:47:46 UTC --- (In reply to comment #36) > (In reply to comment #33) > > > So is _GLIBCXX_USE_SCHED_YIELD defined on darwin? > > Yes, passing --enable-libstdcxx-time=yes and allowing nanosleep() to be found > on darwin also results in... > > ./c++/4.8.0/x86_64-apple-darwin12.2.0/bits/c++config.h:#define > _GLIBCXX_USE_SCHED_YIELD 1 > ./c++/4.8.0/x86_64-apple-darwin12.2.0/i386/bits/c++config.h:#define > _GLIBCXX_USE_SCHED_YIELD 1 The check for sched_yield has nothing to do with nanosleep, that must have always ben defined.