My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 41770: arm-linux-androideabi-4.7 toolchain does not define _GLIBCXX_HAS_GTHREADS
4 people starred this issue and may be notified of changes. Back to list
 
Reported by julhi...@gmail.com, Dec 21, 2012
Hi,

I am currently updating my ndk to the latest r8d version and I am trying out the new 4.7 toolchain. I ran into an issue when compiling boost libraries needing thread support. 

It seems that the 4.7 toolchain does not define _GLIBCXX_HAVE_GTHR_DEFAULT anymore but does not define _GLIBCXX_HAS_GTHREADS either. As boost relies on these defines to detect thread support, this breaks compilation and could cause problems in other code relying on these.

See https://svn.boost.org/trac/boost/ticket/6165 for a discussion about the move from _GLIBCXX_HAVE_GTHR_DEFAULT to _GLIBCXX_HAS_GTHREADS in gcc4.6 and gcc4.7, and the corresponding patch in the boost source code.
Dec 21, 2012
#1 julhi...@gmail.com
By the way, manually defining _GLIBCXX_HAS_GTHREADS when compiling seems to fix the compilation errors.
Dec 21, 2012
Project Member #2 e...@google.com
(No comment was entered for this change.)
Owner: andrewhs...@google.com
Cc: andrewhs...@google.com bcch...@google.com e...@google.com
Dec 24, 2012
Project Member #3 andrewhs...@google.com
Confirmed both NDK GCC 4.6/4.7 don't define _GLIBCXX_HAS_GTHREADS.  Investigating why libstdc++/configure fails to enable it. 
Cc: di...@android.com
Dec 24, 2012
Project Member #4 andrewhs...@google.com
Proposed fix upload: https://android-review.googlesource.com/#/c/48615/
Dec 24, 2012
Project Member #5 andrewhs...@google.com
(No comment was entered for this change.)
Status: FutureRelease
Mar 21, 2013
Project Member #6 andrewhs...@google.com
(No comment was entered for this change.)
Status: Released
Sign in to add a comment

Powered by Google Project Hosting