从源代码编译Python 3.7.3,并在Debian上获得各种错误?

时间:2019-06-24 10:22:52

标签: python python-3.x python-3.7 debian-based debian-stretch

所以我试图在debian 9.9上编译python 3.7.3,安装了所有库,并且以前我遇到了uuid模块错误,然后通过查找此'tweak'进行了修复:

--- Modules/_uuidmodule.c.orig
+++ Modules/_uuidmodule.c
@@ -3,8 +3,7 @@
 #include "Python.h"
 #ifdef HAVE_UUID_UUID_H
 #include <uuid/uuid.h>
-#endif
-#ifdef HAVE_UUID_H
+#elif defined(HAVE_UUID_H)
 #include <uuid.h>
 #endif

但是现在我感到困惑,因为我遇到了另一个错误,也不知道如何解决:

gcc -pthread -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -fprofile-use -fprofile-correction -DHAVE_NCURSESW=1 -I/usr/include/ncursesw -I./Include -I. -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/anubis/Python-3.7.3/Include -I/home/anubis/Python-3.7.3 -c /home/anubis/Python-3.7.3/Modules/_cursesmodule.c -o build/temp.linux-x86_64-3.7/home/anubis/Python-3.7.3/Modules/_cursesmodule.o

/home/anubis/Python-3.7.3/Modules/_cursesmodule.c: In function ‘PyCurses_ConvertToString.isra.0’:
/home/anubis/Python-3.7.3/Modules/_cursesmodule.c:3500:1: error: the control flow of function ‘PyCurses_ConvertToString.isra.0’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
 }
 ^
/home/anubis/Python-3.7.3/Modules/_cursesmodule.c:3500:1: error: the control flow of function ‘PyCurses_ConvertToString.isra.0’ does not match its profile data (counter ‘time_profiler’) [-Werror=coverage-mismatch]
/home/anubis/Python-3.7.3/Modules/_cursesmodule.c: In function ‘PyCursesWindow_InsNStr’:
/home/anubis/Python-3.7.3/Modules/_cursesmodule.c:3500:1: error: the control flow of function ‘PyCursesWindow_InsNStr’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
/home/anubis/Python-3.7.3/Modules/_cursesmodule.c:3500:1: error: the control flow of function ‘PyCursesWindow_InsNStr’ does not match its profile data (counter ‘indirect_call’) [-Werror=coverage-mismatch]
/home/anubis/Python-3.7.3/Modules/_cursesmodule.c:3500:1: error: the control flow of function ‘PyCursesWindow_InsNStr’ does not match its profile data (counter ‘time_profiler’) [-Werror=coverage-mismatch]
/home/anubis/Python-3.7.3/Modules/_cursesmodule.c: In function ‘PyCursesWindow_InsStr’:
/home/anubis/Python-3.7.3/Modules/_cursesmodule.c:3500:1: error: the control flow of function ‘PyCursesWindow_InsStr’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
/home/anubis/Python-3.7.3/Modules/_cursesmodule.c:3500:1: error: the control flow of function ‘PyCursesWindow_InsStr’ does not match its profile data (counter ‘indirect_call’) [-Werror=coverage-mismatch]
/home/anubis/Python-3.7.3/Modules/_cursesmodule.c:3500:1: error: the control flow of function ‘PyCursesWindow_InsStr’ does not match its profile data (counter ‘time_profiler’) [-Werror=coverage-mismatch]
/home/anubis/Python-3.7.3/Modules/_cursesmodule.c: In function ‘PyCursesWindow_AddNStr’:
/home/anubis/Python-3.7.3/Modules/_cursesmodule.c:3500:1: error: the control flow of function ‘PyCursesWindow_AddNStr’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
/home/anubis/Python-3.7.3/Modules/_cursesmodule.c:3500:1: error: the control flow of function ‘PyCursesWindow_AddNStr’ does not match its profile data (counter ‘indirect_call’) [-Werror=coverage-mismatch]
/home/anubis/Python-3.7.3/Modules/_cursesmodule.c:3500:1: error: the control flow of function ‘PyCursesWindow_AddNStr’ does not match its profile data (counter ‘time_profiler’) [-Werror=coverage-mismatch]
/home/anubis/Python-3.7.3/Modules/_cursesmodule.c: In function ‘PyCursesWindow_AddStr’:
/home/anubis/Python-3.7.3/Modules/_cursesmodule.c:3500:1: error: the control flow of function ‘PyCursesWindow_AddStr’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
/home/anubis/Python-3.7.3/Modules/_cursesmodule.c:3500:1: error: the control flow of function ‘PyCursesWindow_AddStr’ does not match its profile data (counter ‘indirect_call’) [-Werror=coverage-mismatch]
/home/anubis/Python-3.7.3/Modules/_cursesmodule.c:3500:1: error: the control flow of function ‘PyCursesWindow_AddStr’ does not match its profile data (counter ‘time_profiler’) [-Werror=coverage-mismatch]

Failed to build these modules:
_curses 

由于我热衷于开始学习,并且从未想到获得最新版本会如此复杂,因此任何帮助将不胜感激

0 个答案:

没有答案