asdf-community / asdf-community/asdf-python

In termux isn't work

Offen
#171 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Shell
Sterne
729
Forks
65
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

```
asdf install python 3.9.18
Downloading python-build...
Cloning into '/data/data/com.termux/files/home/.asdf/plugins/python/pyenv'...
remote: Enumerating objects: 23384, done.
remote: Counting objects: 100% (1834/1834), done.
remote: Compressing
objects: 100% (176/176), done.
remote: Total 23384 (delta 1722), reused 1700 (delta 1652), pack-reused 21550
Receiving objects: 100% (23384/23384), 4.66 MiB | 2.70 MiB/s, done.
Resolving deltas: 100% (15893/15893), done.
python-build 3.9.18 /data/data/com.termux/files/home/.asdf/installs/python/3.9.18
Downloading Python-3.9.18.tar.xz...
-> https://www.python.org/ftp/python/3.9.18/Python-3.9.18.tar.xz
Installing Python-3.9.18...

BUILD FAILED (Linux 4.14.113-24323734 using python-build 2.3.25-6-g91002438)

Inspect or clean up the working tree at /data/data/com.termux/files/usr/tmp/python-build.20230904211745.3387
Results logged to /data/data/com.termux/files/usr/tmp/python-build.20230904211745.3387.log

Last 10 log lines:
3 warnings generated.
gcc -c -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -DOPENSSL_NO_SSL3 -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I. -I./Include -I/data/data/com.termux/files/home/.asdf/installs/python/3.9.18/include -I/data/data/com.termux/files/home/.asdf/installs/python/3.9.18/include -fPIC -DPy_BUILD_CORE -o Python/traceback.o Python/traceback.c
gcc -c -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -DOPENSSL_NO_SSL3 -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I. -I./Include -I/data/data/com.termux/files/home/.asdf/installs/python/3.9.18/include -I/data/data/com.termux/files/home/.asdf/installs/python/3.9.18/include -fPIC -DPy_BUILD_CORE -o Python/getopt.o Python/getopt.c
In file included from Python/thread.c:80:
Python/thread_pthread.h:473:33: error: call to undeclared function 'sem_clockwait'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
status = fix_status(sem_clockwait(thelock, CLOCK_MONOTONIC,
^
1 error generated.
make: *** [Makefile:1803: Python/thread.o] Error 1
make: *** Waiting for unfinished jobs....

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

`asdf install python 3.9.18` in Termux reproduzieren und das Build-Log unter `/data/data/com.termux/files/usr/tmp/python-build.20230904211745.3387.log` untersuchen, wobei der im Report gezeigte Fehler bei `sem_clockwait` im Mittelpunkt steht. Nachvollziehen, wie asdf-python den Build von Python 3.9.18 aufruft, und überprüfen, dass der Befehl in der gemeldeten Umgebung erfolgreich abgeschlossen wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
linux, python, shell
Bereich
build-system, operating-systems
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.