Compiling 3.13 in MSYS2/UCRT64 causes a type error for _PyTime_AsTime_t
Offen
Dieses Issue hat noch niemand übernommen.
build
OS-windows
type-bug
- Vorherrschende Sprache
- Python
- Sterne
- 77.2k
- Forks
- 35.9k
- PR-Merge-Kennzahlen
- PR-Kennzahlen ausstehend
Beschreibung
Bug report
Bug description:
Compiling Python 3.13 on MSYS2/UCRT64 causes a type check error for _PyTime_AsTime_t's second parameter.
Python/pytime.c: In function 'pytime_as_timeval_struct':
Python/pytime.c:815:37: error: passing argument 2 of '_PyTime_AsTime_t' from incompatible pointer type [-Wincompatible-pointer-types]
815 | res2 = _PyTime_AsTime_t(tv_sec, &tv->tv_sec);
| ^~~~~~~~~~~
| |
| long int *
Python/pytime.c:245:38: note: expected 'time_t *' {aka 'long long int *'} but argument is of type 'long int *'
245 | _PyTime_AsTime_t(PyTime_t t, time_t *t2)
| ~~~~~~~~^~
How to reproduce:
Environment: MSYS2/UCRT64
Commit: 4aa0c5ec34836a026d06e556784c41e0eeb807b3 (origin/3.13, 3.13)
CXX=g++ ./configure --disable-gil --enable-optimizations --with-lto=full --with-ensurepip=install
make -j16
CPython versions tested on:
- 3.12
- 3.13
Operating systems tested on:
Windows
Linked PRs
- gh-126355
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne in Python/pytime.c bei pytime_as_timeval_struct und _PyTime_AsTime_t und reproduziere dann den gemeldeten Build mit den MSYS2/UCRT64-configure- und make-Befehlen. Als erledigt gilt die Aufgabe, wenn der Python-3.13-Build ohne den incompatible-pointer-type-Fehler abgeschlossen wird; der verlinkte PR gh-126355 sollte zuerst geprüft werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- c, python
- Bereich
- build-system, operating-systems
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100