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
- Dominant language
- Shell
- Stars
- 729
- Forks
- 65
- PR merge metrics
- No merged PRs in 30d
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:
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.