asdf-community / asdf-community/asdf-python
M1 Rosetta build fails Python 3.9.10
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
I am using MacOS Monterey with M1 chip. I've opened a rosetta terminal by switching architectures using the following command:
```
$ arch -x86_64 /bin/zsh
```
Then, I try to install python:
```
$ asdf install python 3.9.10
python-build --patch 3.9.10 /Users/errc/.asdf/installs/python/3.9.10
with patch file from: https://github.com/python/cpython/commit/8ea6353.patch?full_index=1
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.9.10.tar.xz...
-> https://www.python.org/ftp/python/3.9.10/Python-3.9.10.tar.xz
Installing Python-3.9.10...
patching file Misc/NEWS.d/next/macOS/2020-06-24-13-51-57.bpo-41100.mcHdc5.rst
patching file configure
Hunk #1 FAILED at 3426.
1 out of 1 hunk FAILED -- saving rejects to file configure.rej
patching file configure.ac
Hunk #1 FAILED at 510.
1 out of 1 hunk FAILED -- saving rejects to file configure.ac.rej
BUILD FAILED (OS X 12.1 using python-build 2.2.4-1-1-g7ea04089)
Inspect or clean up the working tree at /var/folders/sz/pgt1clhs4sl3zw_qtl_3jjbh0000gn/T/python-build.20220202150238.51097
Results logged to /var/folders/sz/pgt1clhs4sl3zw_qtl_3jjbh0000gn/T/python-build.20220202150238.51097.log
Last 10 log lines:
/var/folders/sz/pgt1clhs4sl3zw_qtl_3jjbh0000gn/T/python-build.20220202150238.51097 /Users/Shared/v/asdf/arch
warning: xz not found; consider installing `xz` package
/var/folders/sz/pgt1clhs4sl3zw_qtl_3jjbh0000gn/T/python-build.20220202150238.51097/Python-3.9.10 /var/folders/sz/pgt1clhs4sl3zw_qtl_3jjbh0000gn/T/python-build.20220202150238.51097 /Users/Shared/v/asdf/arch
```
I even try with the patch:
```
$ export ASDF_PYTHON_PATCH_URL="https://github.com/python/cpython/commit/8ea6353.patch?full_index=1"
$ asdf install python 3.9.10
# Same error
```
Any idea why this is failing? Install/build works under the default arm64 architecture
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par reproduire `asdf install python 3.9.10` dans un terminal x86_64 sous Rosetta et examinez la sortie de `python-build` ainsi que le journal de compilation enregistré. Comparez l’URL du patch et les hunks rejetés de `configure` et `configure.ac` dans le répertoire de compilation temporaire. Le travail est considéré comme terminé lorsque la cause est identifiée et que l’installation sous Rosetta réussit, ou que la limitation nécessaire et le contournement sont documentés.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- macos, python, shell
- Domaine
- build-system, tooling
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100