When building on ppc64le, I've got the following error:
In file included from /usr/include/asm/types.h:26,
from /usr/include/linux/types.h:5,
from /usr/include/linux/stat.h:5,
from /usr/include/bits/statx.h:31,
from /usr/include/sys/stat.h:465,
from /builddir/build/BUILD/android-tools-33.0.3p1/vendor/e2fsprogs/misc/create_inode.h:5,
from /builddir/build/BUILD/android-tools-33.0.3p1/vendor/e2fsprogs/contrib/android/e2fsdroid.c:14:
/usr/include/asm-generic/int-l64.h:29:25: error: conflicting types for '__s64'; have 'long int'
29 | typedef __signed__ long __s64;
| ^~~~~
In file included from /builddir/build/BUILD/android-tools-33.0.3p1/vendor/e2fsprogs/lib/ext2fs/ext2fs.h:71,
from /builddir/build/BUILD/android-tools-33.0.3p1/vendor/e2fsprogs/contrib/android/perms.h:4,
from /builddir/build/BUILD/android-tools-33.0.3p1/vendor/e2fsprogs/contrib/android/e2fsdroid.c:10:
/builddir/build/BUILD/android-tools-33.0.3p1/vendor/e2fsprogs/lib/ext2fs/ext2_types.h:17:30: note: previous declaration of '__s64' with type '__s64' {aka 'long long int'}
17 | typedef __signed__ long long __s64;
| ^~~~~
/usr/include/asm-generic/int-l64.h:30:23: error: conflicting types for '__u64'; have 'long unsigned int'
30 | typedef unsigned long __u64;
| ^~~~~
/builddir/build/BUILD/android-tools-33.0.3p1/vendor/e2fsprogs/lib/ext2fs/ext2_types.h:16:28: note: previous declaration of '__u64' with type '__u64' {aka 'long long unsigned int'}
16 | typedef unsigned long long __u64;
| ^~~~~
/usr/include/linux/types.h:31:25: error: conflicting types for '__le64'; have '__u64' {aka 'long unsigned int'}
31 | typedef __u64 __bitwise __le64;
| ^~~~~~
/builddir/build/BUILD/android-tools-33.0.3p1/vendor/e2fsprogs/lib/ext2fs/ext2_types.h:44:33: note: previous declaration of '__le64' with type '__le64' {aka 'long long unsigned int'}
44 | typedef __u64 __bitwise __le64;
| ^~~~~~
/usr/include/linux/types.h:32:25: error: conflicting types for '__be64'; have '__u64' {aka 'long unsigned int'}
32 | typedef __u64 __bitwise __be64;
| ^~~~~~
/builddir/build/BUILD/android-tools-33.0.3p1/vendor/e2fsprogs/lib/ext2fs/ext2_types.h:47:33: note: previous declaration of '__be64' with type '__be64' {aka 'long long unsigned int'}
47 | typedef __u64 __bitwise __be64;
When building on ppc64le, I've got the following error: