Message 336828 - Python tracker

Message336828

Author muhzi
Recipients Alex.Willmer, muhzi, xdegaye
Date 2019-02-28.11:51:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1551354685.49.0.372861646836.issue36145@roundup.psfhosted.org>
In-reply-to
Content
This is a follow up of #36141, I'm trying to build python for android armv7a.
The problem was the configure script fails to find pthread_create in the android headers. Now after getting past the configuration, I get a build error:

armv7a-linux-androideabi16-clang -c -mfloat-abi=softfp -mfpu=vfpv3-d16 -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall    -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration   -I. -I./Include    -DPy_BUILD_CORE -o Python/pytime.o Python/pytime.c
Python/pytime.c:911:9: error: implicit declaration of function 'pytime_fromtimespec' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if (pytime_fromtimespec(tp, &ts, raise) < 0) {
        ^
Python/pytime.c:911:9: note: did you mean 'pytime_fromtimeval'?
Python/pytime.c:336:1: note: 'pytime_fromtimeval' declared here
pytime_fromtimeval(_PyTime_t *tp, struct timeval *tv, int raise)
^
Python/pytime.c:911:9: warning: this function declaration is not a prototype [-Wstrict-prototypes]
    if (pytime_fromtimespec(tp, &ts, raise) < 0) {
        ^

The declaration for pytime_fromtimespec needs the token HAVE_CLOCK_GETTIME to be defined to 1, which isn't the case (as per pyconfig.h). I checked the android headers and time.h seems to have the necessary function for this token. 

I uploaded pyconfig.h for reference (attached).
History
Date User Action Args
2019-02-28 11:51:25muhzisetrecipients: + muhzi, xdegaye, Alex.Willmer
2019-02-28 11:51:25muhzisetmessageid: <1551354685.49.0.372861646836.issue36145@roundup.psfhosted.org>
2019-02-28 11:51:25muhzilinkissue36145 messages
2019-02-28 11:51:25muhzicreate