Message388482
Installation of latest Python 3.6.13 fails on MacOS Big Sur 11.2.3. The source code is downloaded from python.org. Then we try to install it by commands "./configure;sudo make;sudo make install". However the installation crashes.
The installation succeeds on Ubuntu.
Crash information:
==========================================================
>>./configure
>>sudo make
gcc -c -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -o Programs/python.o ./Programs/python.c
.....
t -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -c ./Modules/posixmodule.c -o Modules/posixmodule.o
./Modules/posixmodule.c:8210:15: error: implicit declaration of function 'sendfile' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
ret = sendfile(in, out, offset, &sbytes, &sf, flags);
^
./Modules/posixmodule.c:10432:5: warning: code will never be executed [-Wunreachable-code]
Py_FatalError("abort() called from Python code didn't abort!");
^~~~~~~~~~~~~
1 warning and 1 error generated.
make: *** [Modules/posixmodule.o] Error 1
============================================================ |
|
Date |
User |
Action |
Args |
2021-03-11 07:18:38 | xxm | set | recipients:
+ xxm |
2021-03-11 07:18:38 | xxm | set | messageid: <1615447118.51.0.748339501359.issue43470@roundup.psfhosted.org> |
2021-03-11 07:18:38 | xxm | link | issue43470 messages |
2021-03-11 07:18:38 | xxm | create | |
|