python / python/mypy

`mypy` 1.7.1 build error on `ppc`: `FATAL: Section too large, can't encode r_address (0x109e874) into 24-bits of scattered relocation entry`

Offen
#16,684 9 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

bug topic-mypyc
Vorherrschende Sprache
Python
Sterne
20.6k
Forks
3.3k
PR-Merge-Kennzahlen
PR-Kennzahlen ausstehend

Beschreibung

:info:build building '6c7190bc8b55ffe67f57__mypyc' extension
:info:build creating build/temp.macosx-10.6-ppc-cpython-311
:info:build creating build/temp.macosx-10.6-ppc-cpython-311/build
:info:build /opt/local/bin/gcc-mp-13 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -arch ppc -isysroot/ -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-mypy/py311-mypy/work/mypy-1.7.1/mypyc/lib-rt -Ibuild -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c build/__native_6c7190bc8b55ffe67f57.c -o build/temp.macosx-10.6-ppc-cpython-311/build/__native_6c7190bc8b55ffe67f57.o -O3 -g1 -Werror -Wno-unused-function -Wno-unused-label -Wno-unreachable-code -Wno-unused-variable -Wno-unused-command-line-argument -Wno-unknown-warning-option -Wno-unused-but-set-variable -Wno-ignored-optimization-argument -Wno-cpp
:info:build build/__native_6c7190bc8b55ffe67f57.c: In function 'CPyDef_fastparse___TypeConverter___visit_Subscript':
:info:build build/__native_6c7190bc8b55ffe67f57.c:566807: note: '-Wmisleading-indentation' is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
:info:build 566807 |     if (!cpy_r_r39) goto CPyL40;
:info:build        | 
:info:build build/__native_6c7190bc8b55ffe67f57.c:566807: note: adding '-flarge-source-files' will allow for more column-tracking support, at the expense of compilation time and memory
:info:build {standard input}:unknown:FATAL:Section too large, can't encode r_address (0x109e874) into 24-bits of scattered relocation entry
:info:build error: command '/opt/local/bin/gcc-mp-13' failed with exit code 1
:info:build ERROR Backend subprocess exited when trying to invoke build_wheel
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-mypy/py311-mypy/work/mypy-1.7.1" && /opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 -m build --no-isolation --wheel --outdir /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-mypy/py311-mypy/work 
:info:build Exit code: 1
:error:build Failed to build py311-mypy: command execution failed
:debug:build Error code: CHILDSTATUS 87236 1

Versions used:
Python 3.11.7 (main, Dec 19 2023, 18:10:15) [GCC 13.2.0] on darwin
py-mypy 1.7.1

Also: https://trac.macports.org/ticket/68943
May be related: https://github.com/python/mypy/issues/11507

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

Beginne mit dem im Bericht gezeigten Wheel-Build-Befehl für mypy 1.7.1 und der generierten Datei build/__native_6c7190bc8b55ffe67f57.c. Lies anschließend den verlinkten mypy-Issue #11507 und das MacPorts-Ticket #68943 und reproduziere dann den PPC-Build-Fehler. Abgeschlossen ist die Aufgabe, wenn das py-mypy-Wheel auf PPC erfolgreich erstellt wird, ohne dass der Relocation-Fehler auftritt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
c, python
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.