Skip to content

Build fails on Python 3.7.0b1 #382

@mgedmin

Description

@mgedmin

pip install pygame fails on Python 3.7.0b1 with the following error:

  building 'pygame.pypm' extension
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -D_REENTRANT -DENABLE_NEWBUF=1 -I/usr/X11R6/include -I/usr/include/SDL -I/usr/include -I/usr/include -I/home/mg/opt/python37/include/python3.7m -c src/pypm.c -o build/temp.linux-x86_64-3.7/src/pypm.o
  src/pypm.c: In function ‘__Pyx_ErrRestore’:
  src/pypm.c:4976:18: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
       if ((tstate->exc_type != NULL) & (tstate->exc_type != Py_None)) {
                    ^~~~~~~~
                    curexc_type
  src/pypm.c:4976:47: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
       if ((tstate->exc_type != NULL) & (tstate->exc_type != Py_None)) {
                                                 ^~~~~~~~
                                                 curexc_type
  src/pypm.c:4977:28: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
           tmp_type = tstate->exc_type;
                              ^~~~~~~~
                              curexc_type
  src/pypm.c:4978:29: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
           tmp_value = tstate->exc_value;
                               ^~~~~~~~~
                               curexc_value
  src/pypm.c:4979:26: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
           tmp_tb = tstate->exc_traceback;
                            ^~~~~~~~~~~~~
                            curexc_traceback
  src/pypm.c:4982:17: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
           tstate->exc_type = 0;
                   ^~~~~~~~
                   curexc_type
  src/pypm.c:4983:17: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
           tstate->exc_value = 0;
                   ^~~~~~~~~
                   curexc_value
  src/pypm.c:4984:17: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
           tstate->exc_traceback = 0;
                   ^~~~~~~~~~~~~
                   curexc_traceback
  At top level:
  src/pypm.c:2845:13: warning: ‘__pyx_doc_4pypm_5Input___dealloc__’ defined but not used [-Wunused-variable]
   static char __pyx_doc_4pypm_5Input___dealloc__[] = "Close midi device if still open when the instance is destroyed.";
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  src/pypm.c:2673:13: warning: ‘__pyx_doc_4pypm_5Input___init__’ defined but not used [-Wunused-variable]
   static char __pyx_doc_4pypm_5Input___init__[] = "Instantiate MIDI input stream object.";
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  src/pypm.c:1359:13: warning: ‘__pyx_doc_4pypm_6Output___dealloc__’ defined but not used [-Wunused-variable]
   static char __pyx_doc_4pypm_6Output___dealloc__[] = "Close midi device if still open when the instance is destroyed.";
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  src/pypm.c:1091:13: warning: ‘__pyx_doc_4pypm_6Output___init__’ defined but not used [-Wunused-variable]
   static char __pyx_doc_4pypm_6Output___init__[] = "Instantiate MIDI output stream object.";
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  error: command 'gcc' failed with exit status 1

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