https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99499
--- Comment #4 from cqwrteur <unlvsur at live dot com> --- Hi, jonathan. I found something different from old versions of android compared to GCC source. https://android.googlesource.com/toolchain/gcc/+/refs/heads/ndk-r11-release/gcc-4.9/libstdc++-v3/config/os/bionic/ctype_base.h #if defined (__ANDROID__) #if !defined(_U) #if !defined(_CTYPE_U) #error Bionic header ctype.h does not define either _U nor _CTYPE_U #endif #define _U _CTYPE_U #define _L _CTYPE_L #define _N _CTYPE_N #define _S _CTYPE_S #define _P _CTYPE_P #define _C _CTYPE_C #define _X _CTYPE_X #define _B _CTYPE_B #endif #endif /* __ANDROID__ */ Let me have a look on this, probably i can provide patch by myself.