Bug#746444: g++-4.7: std::this_thread::sleep_for undefined (c++11)
Package: g++-4.7
Version: 4.7.3-11
Severity: normal
Dear Maintainer,
I tried to compile software that used to compile under wheezy using
g++-4.7 and c++11 features. Unfortunately, g++-4.7 lacks support for
std::this_thread::sleep_for (and probably std::thread::yield), due to
compiling without support for nanosleep (even though it is available
on the system). The packages in wheezy do not suffer from this problem,
so this is a regression.
This bug has been reported once against gcc-4.5, c.f. #575997. It has
been fixed upstream in gcc-4.8, c.f. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52680.
The bug is not present in the gcc-4.8 debian package.
In this particular case, the workaround described in the bug report
above, e.g. defining _GLIBCXX_USE_NANOSLEEP manually, works.
-- System Information:
Debian Release: jessie/sid
APT prefers testing-updates
APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 3.13-1-686-pae (SMP w/4 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages g++-4.7 depends on:
ii gcc-4.7 4.7.3-11
ii gcc-4.7-base 4.7.3-11
ii libc6 2.18-4
ii libgmp10 2:6.0.0+dfsg-2
ii libmpc3 1.0.1-1
ii libmpfr4 3.1.2-1
ii libstdc++6-4.7-dev 4.7.3-11
ii zlib1g 1:1.2.8.dfsg-1
g++-4.7 recommends no packages.
Versions of packages g++-4.7 suggests:
pn g++-4.7-multilib <none>
pn gcc-4.7-doc <none>
pn libstdc++6-4.7-dbg <none>
-- no debconf information
Reply to: