Skip to content

pygame fails to compile #201

@bbhtt

Description

@bbhtt

With GNOME 42 SDK:

error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [501 lines of output]

...

      src_c/imageext.c: In function ‘png_write_fn’:
      src_c/imageext.c:217:45: warning: comparison of integer expressions of different signedness: ‘int’ and ‘png_size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
        217 |     if (SDL_RWwrite(rwops, data, 1, length) != length) {
            |                                             ^~
      src_c/imageext.c: In function ‘j_term_destination’:
      src_c/imageext.c:488:68: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
        488 |         if (SDL_RWwrite(dest->outfile, dest->buffer, 1, datacount) != datacount) {
            |                                                                    ^~
      src_c/imageext.c: In function ‘write_jpeg’:
      src_c/imageext.c:559:32: warning: comparison of integer expressions of different signedness: ‘int’ and ‘JDIMENSION’ {aka ‘unsigned int’} [-Wsign-compare]
        559 |         if (num_lines_to_write >
            |                                ^
      In file included from src_c/pygame.h:32,
                       from src_c/imageext.c:29:
      src_c/imageext.c: In function ‘opengltosdl’:
      src_c/_pygame.h:331:47: warning: right-hand operand of comma expression has no effect [-Wunused-value]
        331 | #define RAISE(x, y) (PyErr_SetString((x), (y)), (PyObject *)NULL)
            |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
      src_c/imageext.c:718:9: note: in expansion of macro ‘RAISE’
        718 |         RAISE(PyExc_RuntimeError, "Cannot get video surface.");
            |         ^~~~~
      src_c/_pygame.h:331:47: warning: right-hand operand of comma expression has no effect [-Wunused-value]
        331 | #define RAISE(x, y) (PyErr_SetString((x), (y)), (PyObject *)NULL)
            |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
      src_c/imageext.c:722:9: note: in expansion of macro ‘RAISE’
        722 |         RAISE(PyExc_RuntimeError, "Cannot find glReadPixels function.");
            |         ^~~~~
      src_c/_pygame.h:331:47: warning: right-hand operand of comma expression has no effect [-Wunused-value]
        331 | #define RAISE(x, y) (PyErr_SetString((x), (y)), (PyObject *)NULL)
            |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
      src_c/imageext.c:729:9: note: in expansion of macro ‘RAISE’
        729 |         RAISE(PyExc_MemoryError, "Cannot allocate enough memory for pixels.");
            |         ^~~~~
      src_c/_pygame.h:331:47: warning: right-hand operand of comma expression has no effect [-Wunused-value]
        331 | #define RAISE(x, y) (PyErr_SetString((x), (y)), (PyObject *)NULL)
            |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
      src_c/imageext.c:750:9: note: in expansion of macro ‘RAISE’
        750 |         RAISE(pgExc_SDLError, SDL_GetError());
            |         ^~~~~
      x86_64-unknown-linux-gnu-gcc -pthread -shared -Wl,-z,relro,-z,now -Wl,--as-needed -Wl,-z,relro,-z,now -Wl,--as-needed -L/app/lib -Wl,-z,relro,-z,now -Wl,--as-needed -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer build/temp.linux-x86_64-3.9/src_c/imageext.o -L/app/lib -L/app/lib -L/app/lib -L/app/lib -L/usr/lib/x86_64-linux-gnu -lSDL -lpthread -lSDL_image -lpng -ljpeg -o build/lib.linux-x86_64-3.9/pygame/imageext.cpython-39-x86_64-linux-gnu.so -Wl,-rpath,/app/lib
      building 'pygame.font' extension
      x86_64-unknown-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fPIC -D_REENTRANT -DENABLE_NEWBUF=1 -I/usr/X11R6/include -I/app/include/SDL -I/app/include/SDL -I/usr/include/python3.9 -I/usr/include/x86_64-linux-gnu/python3.9 -c src_c/font.c -o build/temp.linux-x86_64-3.9/src_c/font.o
      src_c/font.c: In function ‘font_render’:
      src_c/font.c:435:29: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘Py_ssize_t’ {aka ‘long int’} [-Wsign-compare]
        435 |         if (strlen(astring) != Bytes_GET_SIZE(bytes)) {
            |                             ^~
      src_c/font.c:462:29: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘Py_ssize_t’ {aka ‘long int’} [-Wsign-compare]
        462 |         if (strlen(astring) != Bytes_GET_SIZE(text)) {
            |                             ^~
      src_c/font.c: In function ‘font_metrics’:
      src_c/font.c:584:12: warning: assignment to ‘Uint16 *’ {aka ‘short unsigned int *’} from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types]
        584 |     buffer = Bytes_AS_STRING(obj);
            |            ^
      In file included from src_c/pygame.h:32,
                       from src_c/font.c:32:
      src_c/font.c: In function ‘font_init’:
      src_c/_pygame.h:331:47: warning: right-hand operand of comma expression has no effect [-Wunused-value]
        331 | #define RAISE(x, y) (PyErr_SetString((x), (y)), (PyObject *)NULL)
            |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
      src_c/font.c:672:9: note: in expansion of macro ‘RAISE’
        672 |         RAISE(pgExc_SDLError, "font not initialized");
            |         ^~~~~
      src_c/_pygame.h:331:47: warning: right-hand operand of comma expression has no effect [-Wunused-value]
        331 | #define RAISE(x, y) (PyErr_SetString((x), (y)), (PyObject *)NULL)
            |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
      src_c/font.c:780:9: note: in expansion of macro ‘RAISE’
        780 |         RAISE(PyExc_RuntimeError, SDL_GetError());
            |         ^~~~~
      x86_64-unknown-linux-gnu-gcc -pthread -shared -Wl,-z,relro,-z,now -Wl,--as-needed -Wl,-z,relro,-z,now -Wl,--as-needed -L/app/lib -Wl,-z,relro,-z,now -Wl,--as-needed -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer build/temp.linux-x86_64-3.9/src_c/font.o -L/app/lib -L/app/lib -L/usr/lib/x86_64-linux-gnu -lSDL -lpthread -lSDL_ttf -o build/lib.linux-x86_64-3.9/pygame/font.cpython-39-x86_64-linux-gnu.so -Wl,-rpath,/app/lib
      building 'pygame.mixer' extension
      x86_64-unknown-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fPIC -D_REENTRANT -DENABLE_NEWBUF=1 -I/usr/X11R6/include -I/app/include/SDL -I/app/include/SDL -I/usr/include/python3.9 -I/usr/include/x86_64-linux-gnu/python3.9 -c src_c/mixer.c -o build/temp.linux-x86_64-3.9/src_c/mixer.o
      In file included from src_c/pygame.h:32,
                       from src_c/mixer.c:27:
      src_c/mixer.c: In function ‘_format_view_to_audio’:
      src_c/_pygame.h:331:47: warning: right-hand operand of comma expression has no effect [-Wunused-value]
        331 | #define RAISE(x, y) (PyErr_SetString((x), (y)), (PyObject *)NULL)
            |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
      src_c/mixer.c:156:9: note: in expansion of macro ‘RAISE’
        156 |         RAISE(PyExc_ValueError, "Array has unsupported item format");
            |         ^~~~~
      src_c/_pygame.h:331:47: warning: right-hand operand of comma expression has no effect [-Wunused-value]
        331 | #define RAISE(x, y) (PyErr_SetString((x), (y)), (PyObject *)NULL)
            |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
      src_c/mixer.c:184:17: note: in expansion of macro ‘RAISE’
        184 |                 RAISE(PyExc_ValueError, "Array has unsupported item format");
            |                 ^~~~~
      src_c/mixer.c: In function ‘_chunk_from_array’:
      src_c/_pygame.h:331:47: warning: right-hand operand of comma expression has no effect [-Wunused-value]
        331 | #define RAISE(x, y) (PyErr_SetString((x), (y)), (PyObject *)NULL)
            |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
      src_c/mixer.c:1464:9: note: in expansion of macro ‘RAISE’
       1464 |         RAISE(pgExc_SDLError, "mixer not initialized");
            |         ^~~~~
      src_c/_pygame.h:331:47: warning: right-hand operand of comma expression has no effect [-Wunused-value]
        331 | #define RAISE(x, y) (PyErr_SetString((x), (y)), (PyObject *)NULL)
            |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
      src_c/mixer.c:1472:13: note: in expansion of macro ‘RAISE’
       1472 |             RAISE(PyExc_ValueError,
            |             ^~~~~
      src_c/_pygame.h:331:47: warning: right-hand operand of comma expression has no effect [-Wunused-value]
        331 | #define RAISE(x, y) (PyErr_SetString((x), (y)), (PyObject *)NULL)
            |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
      src_c/mixer.c:1479:13: note: in expansion of macro ‘RAISE’
       1479 |             RAISE(PyExc_ValueError,
            |             ^~~~~
      src_c/_pygame.h:331:47: warning: right-hand operand of comma expression has no effect [-Wunused-value]
        331 | #define RAISE(x, y) (PyErr_SetString((x), (y)), (PyObject *)NULL)
            |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
      src_c/mixer.c:1484:13: note: in expansion of macro ‘RAISE’
       1484 |             RAISE(PyExc_ValueError,
            |             ^~~~~
      src_c/mixer.c: In function ‘sound_init’:
      src_c/_pygame.h:331:47: warning: right-hand operand of comma expression has no effect [-Wunused-value]
        331 | #define RAISE(x, y) (PyErr_SetString((x), (y)), (PyObject *)NULL)
            |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
      src_c/mixer.c:1616:9: note: in expansion of macro ‘RAISE’
       1616 |         RAISE(pgExc_SDLError, "mixer not initialized");
            |         ^~~~~
      src_c/_pygame.h:331:47: warning: right-hand operand of comma expression has no effect [-Wunused-value]
        331 | #define RAISE(x, y) (PyErr_SetString((x), (y)), (PyObject *)NULL)
            |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
      src_c/mixer.c:1626:13: note: in expansion of macro ‘RAISE’
       1626 |             RAISE(PyExc_TypeError, arg_cnt_err_msg);
            |             ^~~~~
      src_c/_pygame.h:331:47: warning: right-hand operand of comma expression has no effect [-Wunused-value]
        331 | #define RAISE(x, y) (PyErr_SetString((x), (y)), (PyObject *)NULL)
            |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
      src_c/mixer.c:1642:13: note: in expansion of macro ‘RAISE’
       1642 |             RAISE(PyExc_TypeError, arg_cnt_err_msg);
            |             ^~~~~
      src_c/_pygame.h:331:47: warning: right-hand operand of comma expression has no effect [-Wunused-value]
        331 | #define RAISE(x, y) (PyErr_SetString((x), (y)), (PyObject *)NULL)
            |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
      src_c/mixer.c:1665:13: note: in expansion of macro ‘RAISE’
       1665 |             RAISE(PyExc_TypeError,
            |             ^~~~~
      src_c/_pygame.h:331:47: warning: right-hand operand of comma expression has no effect [-Wunused-value]
        331 | #define RAISE(x, y) (PyErr_SetString((x), (y)), (PyObject *)NULL)
            |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
      src_c/mixer.c:1671:9: note: in expansion of macro ‘RAISE’
       1671 |         RAISE(PyExc_TypeError, arg_cnt_err_msg);
            |         ^~~~~
      src_c/_pygame.h:331:47: warning: right-hand operand of comma expression has no effect [-Wunused-value]
        331 | #define RAISE(x, y) (PyErr_SetString((x), (y)), (PyObject *)NULL)
            |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
      src_c/mixer.c:1696:21: note: in expansion of macro ‘RAISE’
       1696 |                     RAISE(pgExc_SDLError, SDL_GetError());
            |                     ^~~~~
      x86_64-unknown-linux-gnu-gcc -pthread -shared -Wl,-z,relro,-z,now -Wl,--as-needed -Wl,-z,relro,-z,now -Wl,--as-needed -L/app/lib -Wl,-z,relro,-z,now -Wl,--as-needed -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer build/temp.linux-x86_64-3.9/src_c/mixer.o -L/app/lib -L/app/lib -L/usr/lib/x86_64-linux-gnu -lSDL -lpthread -lSDL_mixer -o build/lib.linux-x86_64-3.9/pygame/mixer.cpython-39-x86_64-linux-gnu.so -Wl,-rpath,/app/lib
      building 'pygame.mixer_music' extension
      x86_64-unknown-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fPIC -D_REENTRANT -DENABLE_NEWBUF=1 -I/usr/X11R6/include -I/app/include/SDL -I/app/include/SDL -I/usr/include/python3.9 -I/usr/include/x86_64-linux-gnu/python3.9 -c src_c/music.c -o build/temp.linux-x86_64-3.9/src_c/music.o
      x86_64-unknown-linux-gnu-gcc -pthread -shared -Wl,-z,relro,-z,now -Wl,--as-needed -Wl,-z,relro,-z,now -Wl,--as-needed -L/app/lib -Wl,-z,relro,-z,now -Wl,--as-needed -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer build/temp.linux-x86_64-3.9/src_c/music.o -L/app/lib -L/app/lib -L/usr/lib/x86_64-linux-gnu -lSDL -lpthread -lSDL_mixer -o build/lib.linux-x86_64-3.9/pygame/mixer_music.cpython-39-x86_64-linux-gnu.so -Wl,-rpath,/app/lib
      building 'pygame.scrap' extension
      x86_64-unknown-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fPIC -D_REENTRANT -DENABLE_NEWBUF=1 -I/usr/X11R6/include -I/app/include/SDL -I/usr/include/python3.9 -I/usr/include/x86_64-linux-gnu/python3.9 -c src_c/scrap.c -o build/temp.linux-x86_64-3.9/src_c/scrap.o
      In file included from src_c/scrap.c:70:
      src_c/scrap_x11.c: In function ‘pygame_scrap_get_types’:
      src_c/scrap_x11.c:808:34: warning: passing argument 2 of ‘PyDict_Next’ from incompatible pointer type [-Wincompatible-pointer-types]
        808 |         while (PyDict_Next(dict, &pos, &key, NULL)) {
            |                                  ^~~~
            |                                  |
            |                                  int *
      In file included from /usr/include/python3.9/Python.h:103,
                       from src_c/scrap.h:27,
                       from src_c/scrap.c:31:
      /usr/include/python3.9/dictobject.h:28:31: note: expected ‘Py_ssize_t *’ {aka ‘long int *’} but argument is of type ‘int *’
         28 |     PyObject *mp, Py_ssize_t *pos, PyObject **key, PyObject **value);
            |                   ~~~~~~~~~~~~^~~
      x86_64-unknown-linux-gnu-gcc -pthread -shared -Wl,-z,relro,-z,now -Wl,--as-needed -Wl,-z,relro,-z,now -Wl,--as-needed -L/app/lib -Wl,-z,relro,-z,now -Wl,--as-needed -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer build/temp.linux-x86_64-3.9/src_c/scrap.o -L/app/lib -L/app/lib -L/usr/lib/x86_64-linux-gnu -lSDL -lpthread -lX11 -o build/lib.linux-x86_64-3.9/pygame/scrap.cpython-39-x86_64-linux-gnu.so -Wl,-rpath,/app/lib
      building 'pygame.pypm' extension
      x86_64-unknown-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fPIC -D_REENTRANT -DENABLE_NEWBUF=1 -I/usr/X11R6/include -I/app/include/SDL -I/app/include -I/app/include -I/usr/include/python3.9 -I/usr/include/x86_64-linux-gnu/python3.9 -c src_c/pypm.c -o build/temp.linux-x86_64-3.9/src_c/pypm.o
      src_c/pypm.c: In function ‘__pyx_pf_4pypm_6Output___init__’:
      src_c/pypm.c:2247:20: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
       2247 |     __pyx_v_errmsg = Pm_GetErrorText(__pyx_v_err);
            |                    ^
      src_c/pypm.c: In function ‘PyInit_pypm’:
      src_c/pypm.c:6419:26: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
       6419 |   __pyx_type_4pypm_Output.tp_print = 0;
            |                          ^
      src_c/pypm.c:6434:25: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
       6434 |   __pyx_type_4pypm_Input.tp_print = 0;
            |                         ^
      src_c/pypm.c: In function ‘__Pyx_ParseOptionalKeywords’:
      src_c/pypm.c:7037:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       7037 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src_c/pypm.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      src_c/pypm.c:7037:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
       7037 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src_c/pypm.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      src_c/pypm.c:7037:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       7037 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src_c/pypm.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      src_c/pypm.c:7037:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       7037 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src_c/pypm.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      src_c/pypm.c:7037:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
       7037 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src_c/pypm.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      src_c/pypm.c:7037:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       7037 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src_c/pypm.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      src_c/pypm.c:7053:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       7053 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src_c/pypm.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      src_c/pypm.c:7053:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
       7053 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src_c/pypm.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      src_c/pypm.c:7053:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       7053 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src_c/pypm.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      src_c/pypm.c:7053:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       7053 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src_c/pypm.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      src_c/pypm.c:7053:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
       7053 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src_c/pypm.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      src_c/pypm.c:7053:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
       7053 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      In file included from /usr/include/python3.9/unicodeobject.h:1026,
                       from /usr/include/python3.9/Python.h:93,
                       from src_c/pypm.c:4:
      /usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      ---
      For help with compilation see:
          https://www.pygame.org/wiki/Compilation
      To contribute to pygame development see:
          https://www.pygame.org/contribute.html
      ---
      error: command '/usr/bin/x86_64-unknown-linux-gnu-gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pygame
�[?25h  Running setup.py clean for pygame
Failed to build pygame

pygamelog.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions