[Bug preprocessor/58939] Cannot Cross-Build Android Native GCC 4.8 libcpp build conversion errors
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Sep 2 02:37:29 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58939
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Interesting POSIX requires st_size to be off_t. I see it is long long on some
platforms of bionic.
https://android.googlesource.com/platform/bionic/+/refs/heads/master/libc/include/sys/stat.h
I don't know if there is a way to support this correctly.
because using off_t will cause a truncatation.
Likewise for st_mtime too.
I don't know the right away to fix this without major changes to the sources.
So the question becomes do we want to support non-POSIX targets for these
structs here?
More information about the Gcc-bugs
mailing list