Skip to content

Instantly share code, notes, and snippets.

@nicholasjhenry
Created March 2, 2021 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicholasjhenry/f875f96d347b12a8f1cc522a576f92cd to your computer and use it in GitHub Desktop.
Save nicholasjhenry/f875f96d347b12a8f1cc522a576f92cd to your computer and use it in GitHub Desktop.
Python Installation Issue
➜ git:(master) asdf install python 3.8.1
python-build 3.8.1 /Users/nicholas/.asdf/installs/python/3.8.1
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.8.1.tar.xz...
-> https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tar.xz
Installing Python-3.8.1...
python-build: use readline from homebrew
python-build: use zlib from xcode sdk
BUILD FAILED (OS X 11.2.2 using python-build 1.2.23-54-gabcbf6e1)
Inspect or clean up the working tree at /var/folders/01/rn4j1vw530d2875ddmkd_vph0000gn/T/python-build.20210302095449.20990
Results logged to /var/folders/01/rn4j1vw530d2875ddmkd_vph0000gn/T/python-build.20210302095449.20990.log
Last 10 log lines:
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -I./Include/internal -I. -I./Include -I/usr/local/opt/readline/include -I/usr/local/opt/readline/include -I/Users/nicholas/.asdf/installs/python/3.8.1/include -I/usr/local/opt/readline/include -I/usr/local/opt/readline/include -I/Users/nicholas/.asdf/installs/python/3.8.1/include -DPy_BUILD_CORE_BUILTIN -c ./Modules/pwdmodule.c -o Modules/pwdmodule.o
./Modules/posixmodule.c:9084:15: error: implicit declaration of function 'sendfile' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ret = sendfile(in, out, offset, &sbytes, &sf, flags);
^
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -I./Include/internal -I. -I./Include -I/usr/local/opt/readline/include -I/usr/local/opt/readline/include -I/Users/nicholas/.asdf/installs/python/3.8.1/include -I/usr/local/opt/readline/include -I/usr/local/opt/readline/include -I/Users/nicholas/.asdf/installs/python/3.8.1/include -DPy_BUILD_CORE_BUILTIN -c ./Modules/_sre.c -o Modules/_sre.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -I./Include/internal -I. -I./Include -I/usr/local/opt/readline/include -I/usr/local/opt/readline/include -I/Users/nicholas/.asdf/installs/python/3.8.1/include -I/usr/local/opt/readline/include -I/usr/local/opt/readline/include -I/Users/nicholas/.asdf/installs/python/3.8.1/include -DPy_BUILD_CORE_BUILTIN -c ./Modules/_codecsmodule.c -o Modules/_codecsmodule.o
1 error generated.
make: *** [Modules/posixmodule.o] Error 1
make: *** Waiting for unfinished jobs....
1 warning generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment