Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install Python 3.8.2 on macOS ARM #163

Open
raxod502-plaid opened this issue Jul 27, 2023 · 3 comments
Open

Cannot install Python 3.8.2 on macOS ARM #163

raxod502-plaid opened this issue Jul 27, 2023 · 3 comments

Comments

@raxod502-plaid
Copy link

raxod502-plaid commented Jul 27, 2023

Provide environment information

% asdf info
OS:
Darwin rrosborough-mbp 22.5.0 Darwin Kernel Version 22.5.0: Thu Jun  8 22:22:20 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T6000 arm64

SHELL:
zsh 5.9 (arm-apple-darwin22.3.0)

ASDF VERSION:
v0.11.3

ASDF ENVIRONMENT VARIABLES:


ASDF INSTALLED PLUGINS:
argocd                       [email protected]:beardix/asdf-argocd.git master 429bbf9
aws-iam-authenticator        [email protected]:stefansedich/asdf-aws-iam-authenticator.git master ac2668a
aws-vault                    [email protected]:virtualstaticvoid/asdf-aws-vault.git master 3b6bad6
awscli                       [email protected]:MetricMike/asdf-awscli.git main 0eaca73
bazel                        [email protected]:rajatvig/asdf-bazel.git master 1646dfd
crane                        [email protected]:dmpe/asdf-crane.git master f3bbaca
git                          [email protected]:john-cai/asdf-git.git main 68c702c
github-cli                   [email protected]:bartlomiejdanek/asdf-github-cli.git master e0605b7
golang                       [email protected]:kennyp/asdf-golang.git master 21d9c32
grpcurl                      [email protected]:asdf-community/asdf-grpcurl.git master 20ee022
helm-ct                      [email protected]:tablexi/asdf-helm-ct.git master 3e3ec87
helm                         [email protected]:Antiarchitect/asdf-helm.git master a39e17b
helmfile                     [email protected]:feniix/asdf-helmfile.git master 3f1681e
istioctl                     [email protected]:virtualstaticvoid/asdf-istioctl.git master 1e6d6f1
java                         [email protected]:halcyon/asdf-java master b9527cb
jsonnet                      [email protected]:Banno/asdf-jsonnet.git master dd36d21
k6                           [email protected]:grimoh/asdf-k6.git master af7ee53
kind                         [email protected]:johnlayton/asdf-kind.git master 4b6ed61
kops                         [email protected]:Antiarchitect/asdf-kops.git master 1b00fe1
krew                         [email protected]:jimmidyson/asdf-krew.git main bcbe4d9
kubectl                      [email protected]:asdf-community/asdf-kubectl.git master cbe6df4
kustomize                    [email protected]:Banno/asdf-kustomize.git master 2efaa38
linkerd                      [email protected]:vaynerx/asdf-linkerd.git master eb84185
loki-logcli                  [email protected]:agirardguittard-plaid/asdf-loki-logcli master f76b77c
mysql                        [email protected]:iroddis/asdf-mysql.git master 8e766a9
nodejs                       [email protected]:asdf-vm/asdf-nodejs.git master 4f8aa3d
packer                       [email protected]:asdf-community/asdf-hashicorp.git master c44c314
poetry                       [email protected]:asdf-community/asdf-poetry.git master 0e01dab
python                       [email protected]:danhper/asdf-python.git master 8505457
ruby                         [email protected]:asdf-vm/asdf-ruby.git master 7299779
rust                         [email protected]:asdf-community/asdf-rust.git master 8436012
shellcheck                   [email protected]:luizm/asdf-shellcheck.git master b160a52
shfmt                        [email protected]:luizm/asdf-shfmt.git master a42c5ff
sops                         [email protected]:feniix/asdf-sops.git master 954411c
terraform                    [email protected]:asdf-community/asdf-hashicorp.git master c44c314
tflint                       [email protected]:skyzyx/asdf-tflint master 37e7eb9
tilt                         [email protected]:virtualstaticvoid/asdf-tilt.git master c4ad62a
velero                       [email protected]:looztra/asdf-velero.git master 1ebf994
yarn                         [email protected]:twuni/asdf-yarn.git main 376c540
yq                           [email protected]:sudermanjr/asdf-yq.git master 772992f

To Reproduce

asdf install python 3.8.2

Describe the Bug

Installation errors out on the openssl build step:

% asdf install python 3.8.2
python-build 3.8.2 /Users/rrosborough/.asdf/installs/python/3.8.2
Downloading openssl-1.1.0j.tar.gz...
-> https://www.openssl.org/source/old/1.1.0/openssl-1.1.0j.tar.gz
Installing openssl-1.1.0j...

BUILD FAILED (OS X 13.4.1 using python-build 2.3.23-1-g8aabba94)

Inspect or clean up the working tree at /var/folders/zl/gg4dq_zj6292dsmb17fhmh4h0000gp/T/python-build.20230727071815.55209
Results logged to /var/folders/zl/gg4dq_zj6292dsmb17fhmh4h0000gp/T/python-build.20230727071815.55209.log

Last 10 log lines:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libcrypto.a(ecp_nistp521.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libcrypto.a(ecp_nistputil.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libcrypto.a(e_rc5.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libcrypto.a(m_md2.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libcrypto.a(rand_egd.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libcrypto.a(rand_vms.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libcrypto.a(rand_win.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libcrypto.a(threads_none.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libcrypto.a(threads_win.o) has no symbols
make: *** [all] Error 2

Log file here. Notice:

Operating system: i686-apple-darwinDarwin Kernel Version 22.5.0: Thu Jun 8 22:22:20 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T6000
Configuring for darwin-i386-cc

Why is asdf-python thinking that my architecture is i386 instead of arm64?

Expected Behaviour

Installing python 3.8.2 should work with default settings.

@raxod502-plaid
Copy link
Author

Installing 3.8.4+ works, see pyenv/pyenv#1737 (comment). It would be better to supply an error message when the user attempts to install an unsupported version.

@andrewcrook
Copy link

andrewcrook commented Nov 4, 2023

I just posted an answer to a similar issue

@andrewcrook
Copy link

andrewcrook commented Nov 4, 2023

Normally you do get

configure: error: Unexpected output of 'arch' on OSX
make: *** No targets specified and no makefile found.  Stop.

which indicates arch output isn't implemented for ..

> arch
arm64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants