Message292141
The compilation of Modules/posixmodule.c fails now on Android architecture 'x86' at api level 21, after the above change 0f6d73343d342c106cda2219ebb8a6f0c4bd9b3c:
/opt/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --sysroot=/opt/android-ndk/platforms/android-21/arch-x86 -target i686-none-linux-androideabi -gcc-toolchain /opt/android-ndk/toolchains/x86-4.9/prebuilt/linux-x86_64 -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wno-unused-value -Wno-empty-body -Qunused-arguments -Wno-parentheses-equality -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -IObjects -IInclude -IPython -I. -I./Include -I/opt/android-ndk/platforms/android-21/arch-x86/usr/include -DPy_BUILD_CORE -c ./Modules/posixmodule.c -o Modules/posixmodule.o
./Modules/posixmodule.c:1935:5: error: array size is negative
Py_BUILD_ASSERT(sizeof(unsigned long) >= sizeof(st->st_ino));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/pymacro.h:43:15: note: expanded from macro 'Py_BUILD_ASSERT'
(void)Py_BUILD_ASSERT_EXPR(cond); \
^~~~~~~~~~~~~~~~~~~~~~~~~~
./Include/pymacro.h:40:19: note: expanded from macro 'Py_BUILD_ASSERT_EXPR'
(sizeof(char [1 - 2*!(cond)]) - 1)
^~~~~~~~~~~~~
1 error generated.
make: *** [Makefile:1720: Modules/posixmodule.o] Error 1
The following code:
#include <stdio.h>
#include <sys/stat.h>
int main()
{
struct stat *st;
printf("sizeof(unsigned long): %d - sizeof(st->st_ino): %d\n",
sizeof(unsigned long), sizeof(st->st_ino));
return 0;
}
prints the following result on this same system:
sizeof(unsigned long): 4 - sizeof(st->st_ino): 8 |
|
Date |
User |
Action |
Args |
2017-04-22 22:26:39 | xdegaye | set | recipients:
+ xdegaye, vstinner, serhiy.storchaka, eryksun, steve.dower, xiang.zhang, mba |
2017-04-22 22:26:39 | xdegaye | set | messageid: <1492899999.73.0.173081311862.issue29619@psf.upfronthosting.co.za> |
2017-04-22 22:26:39 | xdegaye | link | issue29619 messages |
2017-04-22 22:26:39 | xdegaye | create | |
|