Skip to content

Termux on Android: Python/parking_lot.c:159:15: error: call to undeclared function 'sem_clockwait' #143640

@user-name-beta

Description

@user-name-beta

Bug report

Bug description:

(Platform: Termux on Android)
Configure commands: ./configure
A bit of configure output:
checking for sem_clockwait... yes
Make command: make

gcc -c -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall    -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden  -I./Include/internal -I./Include/internal/mimalloc  -I. -I./Include    -DPy_BUILD_CORE -o Python/pyarena.o Python/pyarena.c
Python/parking_lot.c:159:15: error: call to undeclared function 'sem_clockwait'; ISO C99 and later do not
      support implicit function declarations [-Wimplicit-function-declaration]
  159 |         err = sem_clockwait(&sema->platform_sem, CLOCK_MONOTONIC, &ts);
      |               ^
gcc -c -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall    -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden  -I./Include/internal -I./Include/internal/mimalloc  -I. -I./Include    -DPy_BUILD_CORE -o Python/pyctype.o Python/pyctype.c
1 error generated.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Other

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-androidbuildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions