[MacPorts] #36364: gcc47, gcc48: Missing support for std::this_thread::sleep_for/sleep_until
MacPorts
noreply at macports.org
Sat Oct 6 19:38:11 PDT 2012
#36364: gcc47, gcc48: Missing support for std::this_thread::sleep_for/sleep_until
----------------------------+----------------------
Reporter: l.digaspero@… | Owner: mww@…
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Resolution: | Keywords:
Port: gcc47 gcc48 |
----------------------------+----------------------
Comment (by jeremyhu@…):
Replying to [comment:4 howarth@…]:
> Using --enable-libstdccxx-time without arguments doesn't do anything
because that defaults to 'no'.[[BR]]
You seem to misunderstand how autoconf works.
Also, it is --enable-libstdcxx-time, not --enable-libstdccxx-time (you
made the same copy-paste-o as above).
> Furthermore, using --enable-libstdccxx-time=yes won't work because the
configure tests for nanosleep [[BR]]
> support in libstdc++-v3/configure ultimately fails on the test...[[BR]]
> [[BR]]
> configure:19829: checking for nanosleep[[BR]]
> configure:19851:
/sw/src/fink.build/gcc47-4.7.2-1000/darwin_objdir/./gcc/xgcc -shared-
libgcc -B/sw/src/fink.build/gcc47-4.7.2-1000/darwin_objdir/./gcc
-nostdinc++ -L/sw/src/fink.build/gcc47-4.7.2-1000/darwin_objdir/x86_64
-apple-darwin12.2.0/libstdc++-v3/src
-L/sw/src/fink.build/gcc47-4.7.2-1000/darwin_objdir/x86_64-apple-
darwin12.2.0/libstdc++-v3/src/.libs -B/sw/lib/gcc4.7/x86_64-apple-
darwin12.2.0/bin/ -B/sw/lib/gcc4.7/x86_64-apple-darwin12.2.0/lib/ -isystem
/sw/lib/gcc4.7/x86_64-apple-darwin12.2.0/include -isystem
/sw/lib/gcc4.7/x86_64-apple-darwin12.2.0/sys-include -o conftest -g -O2
-fno-exceptions conftest.cpp >&5[[BR]]
> conftest.cpp: In function 'int main()':[[BR]]
> conftest.cpp:97:15: error: 'tp' was not declared in this scope[[BR]]
> [[BR]]
> due to the test case....[[BR]]
> [[BR]]
> | #include <unistd.h>[[BR]]
> | #include <time.h>[[BR]]
> |
> | int[[BR]]
> | main ()[[BR]]
> | {[[BR]]
> | #if _POSIX_TIMERS > 0[[BR]]
> | timespec tp;[[BR]]
> | #endif[[BR]]
> | nanosleep(&tp, 0);[[BR]]
> |[[BR]]
> | ;[[BR]]
> | return 0;[[BR]]
> | }[[BR]]
> [[BR]]
> requiring posix timers which darwin doesn't support.
Why do they need _POSIX_TIMERS? That's not needed for nanosleep.
--
Ticket URL: <https://trac.macports.org/ticket/36364#comment:7>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list