python / python/cpython

Windows Arm64 release build fails

Offen
#153,668 8 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

3.15 3.16 build OS-windows
Vorherrschende Sprache
Python
Sterne
77.2k
Forks
35.9k
PR-Merge-Kennzahlen
PR-Kennzahlen ausstehend

Beschreibung

There appears to be a compiler bug that causes build failures with optimization enabled when targeting ARM64 on Windows:

        D:\a\1\s\Objects\unicodetype_db.h(4363): fatal error C1002: compiler is out of heap space in pass 2 [D:\a\1\s\PCbuild\pythoncore.vcxproj]

It repros reliably with cl /c /O2 Objects\unicodectype.c (with include dirs added), so I reported it to the C++ compiler team.

In the mean time, we'll disable optimizations for that file on ARM64 and hopefully that will get us through releases. Unless someone figures out a way to restructure the generated header to make the compiler happier, this is probably all we can do until the bug is fixed.

Linked PRs
  • gh-153669
  • gh-156081

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginnen Sie mit der Prüfung der verknüpften PRs gh-153669 und gh-156081. Untersuchen Sie anschließend die ARM64-Build-Konfiguration rund um PCbuild/pythoncore.vcxproj und Objects/unicodectype.c. Reproduzieren Sie das Problem mit cl /c /O2 Objects\unicodectype.c und überprüfen Sie, dass der Windows ARM64-Release-Build ohne den Compiler-Heap-Fehler abgeschlossen wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
cpp
Bereich
build-system, operating-systems, release
Issue-Typ
Bug
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

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