This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Installation of Python 3.6.13 fails on MacOS Big Sur 11.2.3
Type: crash Stage: resolved
Components: Installation, macOS Versions: Python 3.6
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Older Python builds are missing a required file on Big Sur
View: 43393
Assigned To: Nosy List: ned.deily, ronaldoussoren, xxm
Priority: normal Keywords:

Created on 2021-03-11 07:18 by xxm, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg388482 - (view) Author: Xinmeng Xia (xxm) Date: 2021-03-11 07:18
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
============================================================
msg388518 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2021-03-11 19:13
[Updated response] I'm sorry you ran into this but, unfortunately, Python 3.6 is in its security-fix-only phase of its life cycles and, as such, we do not provide support on them for new OS versions.  Please see the detailed response to Issue43393 for more information. While the particular error you ran into is easily worked around, the resulting Python will still not execute correctly on macOS 11 Big Sur as there are a number of other run-time issues that would need to be fixed. At the moment, only Python 3.9.2 is fully supported on Big Sur.
History
Date User Action Args
2022-04-11 14:59:42adminsetgithub: 87636
2021-03-11 19:13:35ned.deilysetmessages: + msg388518
2021-03-11 19:04:31ned.deilysetmessages: - msg388515
2021-03-11 19:04:17ned.deilysetsuperseder: Installation of Python 3.6.13 fails on MacOS Big Sur 11.2.3 -> Older Python builds are missing a required file on Big Sur
2021-03-11 19:04:17ned.deilyunlinkissue43470 superseder
2021-03-11 19:01:14ned.deilysetstatus: open -> closed
superseder: Installation of Python 3.6.13 fails on MacOS Big Sur 11.2.3
messages: + msg388515

resolution: duplicate
stage: resolved
2021-03-11 19:01:14ned.deilylinkissue43470 superseder
2021-03-11 09:13:43xtreaksetnosy: + ronaldoussoren, ned.deily
components: + macOS
2021-03-11 07:18:38xxmcreate