New submission from Eryk <eryk...@gmail.com>:

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

----------
components: Installation
messages: 346368
nosy: Eryk
priority: normal
severity: normal
status: open
title: Compiling Python 3.7.3 from source and getting all sorts of errors on 
Debian?
type: compile error
versions: Python 3.7

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

Reply via email to