[issue26926] Large files are not supported on Android

2016-05-22 Thread Xavier de Gaye
Xavier de Gaye added the comment: This patch skips the large file support test. -- dependencies: +add is_android in test.support to detect Android platform Added file: http://bugs.python.org/file42941/skip-large-file.patch ___ Python tracker

[issue26926] Large files are not supported on Android

2016-05-22 Thread Xavier de Gaye
Xavier de Gaye added the comment: Size of off_t is also 4 when building on API 23 with or without '-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1' added to the CC envt variable. -- ___ Python tracker

[issue26926] Large files are not supported on Android

2016-05-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: Using the glibc compilation flags recommended for large file support '-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1' does not enable large file support. See Suse's 'Large File Support in Linux' document [1]. In the android issue 64613 [

[issue26926] Large files are not supported on Android

2016-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The resource module is not always available. And resource.setrlimit() itself can fail. May be check HAVE_LARGEFILE_SUPPORT directly using sysconfig.get_config_vars()? test_mmap needs similar fix. -- ___ Python tr

[issue26926] Large files are not supported on Android

2016-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Skipping test is the one way. Other way is to enable large files support on Android (like it was done in issue11184 for AIX). It is hard to believe that Android's libc doesn't support files larger 2GiB. Should be an option to enable this support in a program

[issue26926] Large files are not supported on Android

2016-05-04 Thread Xavier de Gaye
Xavier de Gaye added the comment: Here is a patch that uses resource.setrlimit() to check whether large file may not be supported. -- keywords: +patch Added file: http://bugs.python.org/file42720/large_file.patch ___ Python tracker

[issue26926] Large files are not supported on Android

2016-05-04 Thread Xavier de Gaye
Xavier de Gaye added the comment: On android x86: >>> import resource >>> resource.setrlimit(resource.RLIMIT_FSIZE, (2**31, 2**31)) Traceback (most recent call last): File "", line 1, in OverflowError: Python int too large to convert to C long >>> resource.setrlimit(resource.RLIMIT_FSIZE, (2*

[issue26926] Large files are not supported on Android

2016-05-04 Thread Xavier de Gaye
Xavier de Gaye added the comment: The relevant part of the output of configure on x86: checking size of int... 4 checking size of long... 4 checking size of void *... 4 checking size of short... 2 checking size of float... 4 checking size of double... 8 checking size of fpos_t... 4 checking size

[issue26926] Large files are not supported on Android

2016-05-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- title: android: test_io fails -> Large files are not supported on Android ___ Python tracker ___ ___