New submission from Xinmeng Xia <xi...@smail.nju.edu.cn>:

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
============================================================

----------
components: Installation
messages: 388482
nosy: xxm
priority: normal
severity: normal
status: open
title: Installation of Python 3.6.13 fails on MacOS Big Sur 11.2.3
type: crash
versions: Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43470>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to