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

Ouverte
#124 11 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Langage dominant
Shell
Étoiles
730
Forks
65
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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:

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Commencez par le point d’entrée de python-build 2.2.3 et examinez le journal de build échoué, en particulier la cible du Makefile à la ligne 736 pour Programs/_testembed. Comparez le chemin -L indiqué et les avertissements concernant libpython3.10.a sur Intel macOS. Le travail est terminé lorsque Python 3.9.* et 3.10.* s’installent correctement sur les versions de macOS concernées sans l’échec de l’éditeur de liens x86_64.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python, shell
Domaine
tooling
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.