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.

Author Eryk
Recipients Eryk
Date 2019-06-24.10:48:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1561373293.1.0.347031657318.issue37384@roundup.psfhosted.org>
In-reply-to
Content
So I am trying to compile python 3.7.3 on debian 9.9, got all the libraries installed and previously I was getting an uuid module error which was then fixed by finding this '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

however now I am puzzled as I am getting a different error and have no idea how to go about it:

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 

Any help would be greatly appreciated as I am keen to start learning and never thought getting the newest version could be so complicated
History
Date User Action Args
2019-06-24 10:48:13Eryksetrecipients: + Eryk
2019-06-24 10:48:13Eryksetmessageid: <1561373293.1.0.347031657318.issue37384@roundup.psfhosted.org>
2019-06-24 10:48:13Eryklinkissue37384 messages
2019-06-24 10:48:12Erykcreate