Skip to content

Instantly share code, notes, and snippets.

@peterbe
Created February 7, 2024 23:53
Show Gist options
  • Save peterbe/cd36f854dccbaaa63f4d11facc32bc77 to your computer and use it in GitHub Desktop.
Save peterbe/cd36f854dccbaaa63f4d11facc32bc77 to your computer and use it in GitHub Desktop.
Trying to `pyenv install 3.12`
❯ pyenv install 3.12
python-build: use openssl@3 from homebrew
python-build: use readline from homebrew
Installing Python-3.12.1...
python-build: use tcl-tk from homebrew
python-build: use readline from homebrew
python-build: use ncurses from homebrew
python-build: use zlib from xcode sdk
BUILD FAILED (OS X 14.3 using python-build 2.3.35-11-g9908daf8)
Inspect or clean up the working tree at /var/folders/1x/2hf5hbs902q54g3bgby5bzt40000gn/T/python-build.20240207185036.32526
Results logged to /var/folders/1x/2hf5hbs902q54g3bgby5bzt40000gn/T/python-build.20240207185036.32526.log
Last 10 log lines:
if (login_tty(fd) == -1) {
^
clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I. -I./Include -I/usr/local/opt/ncurses/include -I/usr/local/opt/readline/include -I/usr/local/opt/readline/include -I/Users/peterbe/.pyenv/versions/3.12.1/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/usr/local/opt/ncurses/include -I/usr/local/opt/readline/include -I/usr/local/opt/readline/include -I/Users/peterbe/.pyenv/versions/3.12.1/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -DPy_BUILD_CORE_BUILTIN -c ./Modules/itertoolsmodule.c -o Modules/itertoolsmodule.o
./Modules/posixmodule.c:8402:11: error: call to undeclared function 'forkpty'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
pid = forkpty(&master_fd, NULL, NULL, NULL);
^
clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I. -I./Include -I/usr/local/opt/ncurses/include -I/usr/local/opt/readline/include -I/usr/local/opt/readline/include -I/Users/peterbe/.pyenv/versions/3.12.1/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/usr/local/opt/ncurses/include -I/usr/local/opt/readline/include -I/usr/local/opt/readline/include -I/Users/peterbe/.pyenv/versions/3.12.1/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -DPy_BUILD_CORE_BUILTIN -c ./Modules/_sre/sre.c -o Modules/_sre/sre.o
3 errors generated.
make: *** [Modules/posixmodule.o] Error 1
make: *** Waiting for unfinished jobs....
@native-api
Copy link

We've had a similar issue reported: pyenv/pyenv#2679

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