error: too many arguments to function ‘(PyObject * (*)(PyObject *, PyObject * const*, Py_ssize_t))meth’

Bug #1967861 reported by Matthias Mailänder
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Pybik
New
Undecided
Unassigned

Bug Description

Fails to compile on openSUSE Tumbleweed.

Revision history for this message
Matthias Mailänder (mailaender) wrote :
description: updated
description: updated
Revision history for this message
Puspam Adak (pom1234567890) wrote :
Download full text (8.4 KiB)

The same problem occurs when building on Arch Linux.

```
using setuptools
running build
running build_py
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
generating extension 'pybiklib/ext/_gldraw' with variant 'ogl'
generating extension 'pybiklib/ext/_glarea' with variant 'ogl'
building C-Code for 'pybiklib/ext/_glarea_ogl' extension
generating build/temp.linux-x86_64-cpython-310/pybiklib/ext/_glarea_ogl.pyx from build/temp.linux-x86_64-cpython-310/pybiklib/ext/glarea_ogl.py
py2pyx: build/temp.linux-x86_64-cpython-310/pybiklib/ext/glarea_ogl.py --> build/temp.linux-x86_64-cpython-310/pybiklib/ext/_glarea_ogl.pyx
generating build/temp.linux-x86_64-cpython-310/pybiklib/ext/_glarea_ogl.pyx
generating build/temp.linux-x86_64-cpython-310/pybiklib/ext/_glarea_ogl.pxd.tmp
unchanged file 'build/temp.linux-x86_64-cpython-310/pybiklib/ext/_glarea_ogl.pxd'
building 'pybiklib/ext/_glarea_ogl' extension
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -fPIC -DGL_GLEXT_PROTOTYPES -I/usr/include/python3.10 -c build/temp.linux-x86_64-cpython-310/pybiklib/ext/_glarea_ogl.c -o build/temp.linux-x86_64-cpython-310/build/temp.linux-x86_64-cpython-310/pybiklib/ext/_glarea_ogl.o
build/temp.linux-x86_64-cpython-310/pybiklib/ext/_glarea_ogl.c: In function ‘__Pyx_ParseOptionalKeywords’:
build/temp.linux-x86_64-cpython-310/pybiklib/ext/_glarea_ogl.c:11466:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
11466 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
      | ^
In file included from /usr/include/python3.10/unicodeobject.h:1046,
                 from /usr/include/python3.10/Python.h:83,
                 from build/temp.linux-x86_64-cpython-310/pybiklib/ext/_glarea_ogl.c:4:
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.linux-x86_64-cpython-310/pybiklib/ext/_glarea_ogl.c:11466:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
11466 | (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
      | ^
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      | ^~~~~~~~~~~~~...

Read more...

no longer affects: archlinux
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.