asdf-community / asdf-community/asdf-python

Python 3.10.*, 3.9.* Install fails on Intel Mac OS X 11.6.2 and 12.3.1 with linker error with symbols not found for x86_64

Offen
#124 11 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

ugh, so many Mac-related build problems, this homebrew installs fine for 3.10.1 and 3.9.9.

```
python-build 3.10.1 /Users/rich/.asdf/installs/python/3.10.1
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.10.1.tar.xz...
-> https://www.python.org/ftp/python/3.10.1/Python-3.10.1.tar.xz
Installing Python-3.10.1...
python-build: use tcl-tk from homebrew
python-build: use readline from homebrew
python-build: use zlib from xcode sdk

BUILD FAILED (OS X 11.6.2 using python-build 2.2.3-1-g423de9ae)

Inspect or clean up the working tree at /var/folders/2q/m0b64f1n73xb3rpz1gxfd6m00000gq/T/python-build.20220104201327.37355

Results logged to /var/folders/2q/m0b64f1n73xb3rpz1gxfd6m00000gq/T/python-build.20220104201327.37355.log

Last 10 log lines:
"__Py_Dealloc", referenced from:
_test_open_code_hook in _testembed.o
_test_unicode_id_init in _testembed.o
__audit_hook_run in _testembed.o
"__Py_InitializeMain", referenced from:
_test_init_main in _testembed.o
_test_init_set_config in _testembed.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:736: Programs/_testembed] Error 1
```

In looking at the Log files I see this line which is looking for a library file that is in ~/.asdf/install/python but this directory is empty so it seems like that's the problem

```
ld: warning: ld: warning: directory not found for option '-L/Users/rich/.asdf/installs/python/3.10.0/lib'
5 directory not found for option '-L/Users/rich/.asdf/installs/python/3.10.0/lib'
4 ld: warning: directory not found for option '-L/Users/rich/.asdf/installs/python/3.10.0/lib'
3 ld: warning: directory not found for option '-L/Users/rich/.asdf/installs/python/3.10.0/lib'
2 ld: warning: ignoring file libpython3.10.a, building for macOS-x86_64 but attempting to link with file built for macOS-x86_64
1 ld: warning: ignoring file libpython3.10.a, building for macOS-x86_64 but attempting to link with file built for macOS-x86_64
940 Undefined symbols for architecture x86_64:
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Beginne mit dem Einstiegspunkt von python-build 2.2.3 und untersuche das fehlgeschlagene Build-Log, insbesondere das Makefile-Ziel in Zeile 736 für Programs/_testembed. Vergleiche den gemeldeten -L-Pfad und die libpython3.10.a-Warnungen unter Intel macOS. Als erledigt gilt die Aufgabe, wenn Python 3.9.* und 3.10.* auf den betroffenen macOS-Versionen erfolgreich installiert werden, ohne den x86_64-Linkerfehler.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python, shell
Bereich
tooling
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.