Status Update
Comments
en...@google.com <en...@google.com>
da...@google.com <da...@google.com> #3
Looks like this is fixed in master, presumably as part of the synchronization with the chromeos gcc. Won't make r11, but will be in the next update.
ta...@gmail.com <ta...@gmail.com> #4
Is this fixed? I am seeing linker error on log2 while using ndk-r13b.
da...@google.com <da...@google.com> #5
log2 wasn't available in android until jb-mr2 (android-18).
Also possible that the problem you're seeing is just more ofhttps://github.com/android-ndk/ndk/issues/82 . Essentially, we have to build gnustl against the minimum supported version (currently android-14), so it can't make use of anything that was present in that version. We're working on fixing this for libc++ with a better libandroid_support, but that's still WIP.
Also possible that the problem you're seeing is just more of
Description
<cmath> does not provide these because _GLIBCXX_USE_C99_MATH_TR1 is not defined in <bits/c++config.h>. If _GLIBCXX_USE_C99_MATH_TR1 is explicitly defined during compilation, then including <cmath> breaks, because bionic does not implement all of the C99 math functions.
Bionic's <math.h> #if 0's many long double variants of the math functions, starting at line 405.
Similarly, instead of excluding _all_ C99 math functions, <cmath> should also #if 0 the functions not supported by bionic, while leaving the others available.