https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99499
--- Comment #3 from cqwrteur <unlvsur at live dot com> --- (In reply to Jonathan Wakely from comment #2) > Obviously _U worked at some point when that file was added. CCing Maxim to > figure out what changed and whether we want to support the old ctype > constants as well as whatever Android defines now. I guess now Android has now shifted to LLVM and no one tested that on GCC anymore. I tweak around the value by myself and no it does not work, unfortunately. d:/msys64/x86_64-linux-android/bin/../lib/gcc/x86_64-linux-android/11.0.1/../../../../x86_64-linux-android/bin/ld.exe: d:/msys64/x86_64-linux-android/bin/../lib/gcc/x86_64-linux-android/11.0.1/../../../../x86_64-linux-android/lib/../lib64/libstdc++.so: undefined reference to `std::ctype<char>::ctype(unsigned short const*, bool, unsigned long)' d:/msys64/x86_64-linux-android/bin/../lib/gcc/x86_64-linux-android/11.0.1/../../../../x86_64-linux-android/bin/ld.exe: d:/msys64/x86_64-linux-android/bin/../lib/gcc/x86_64-linux-android/11.0.1/../../../../x86_64-linux-android/lib/../lib64/libstdc++.so: undefined reference to `std::ctype<char>::ctype(unsigned short const*, bool, unsigned long)' d:/msys64/x86_64-linux-android/bin/../lib/gcc/x86_64-linux-android/11.0.1/../../../../x86_64-linux-android/bin/ld.exe: d:/msys64/x86_64-linux-android/bin/../lib/gcc/x86_64-linux-android/11.0.1/../../../../x86_64-linux-android/lib/../lib64/libstdc++.so: undefined reference to `std::ctype<char>::ctype(int*, unsigned short const*, bool, unsigned long)' collect2.exe: error: ld returned 1 exit status Looks like we need actual values.