python / python/cpython

Windows Arm64 release build fails

Aperta
#153,668 8 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

3.15 3.16 build OS-windows
Lingua principale
Python
Stelle
77.2k
Fork
35.9k
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia esaminando le PR collegate gh-153669 e gh-156081, quindi ispeziona la configurazione di build ARM64 relativa a PCbuild/pythoncore.vcxproj e Objects/unicodectype.c. Riproduci il problema con cl /c /O2 Objects\unicodectype.c e verifica che la build di release Windows ARM64 venga completata senza l’errore di heap del compilatore.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
cpp
Ambito
build-system, operating-systems, release
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.