Bug#972008: cvxopt ftbfs with python3.9

Matthias Klose doko at debian.org
Sun Oct 11 15:18:05 BST 2020


Package: src:cvxopt
Version: 1.2.3+dfsg-2
Severity: important
Tags: sid bullseye
User: debian-python at lists.debian.org
Usertags: python3.9

building 'lapack' extension
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g
-fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security
-g -fwrapv -O2 -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/cvxopt-1.2.3+dfsg=.
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c src/C/lapack.c -o
build/temp.linux-x86_64-3.9/src/C/lapack.o
In file included from /usr/include/python3.9/pytime.h:6,
                 from /usr/include/python3.9/Python.h:85,
                 from src/C/lapack.c:22:
src/C/lapack.c: In function ‘fselect_c’:
/usr/include/python3.9/object.h:633:41: error: expected ‘(’ before
‘PyType_HasFeature’
  633 | #define PyType_FastSubclass(type, flag) PyType_HasFeature(type, flag)
      |                                         ^~~~~~~~~~~~~~~~~
/usr/include/python3.9/longobject.h:15:9: note: in expansion of macro
‘PyType_FastSubclass’
   15 |         PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LONG_SUBCLASS)
      |         ^~~~~~~~~~~~~~~~~~~
src/C/lapack.c:6664:8: note: in expansion of macro ‘PyLong_Check’
 6664 |     if PyLong_Check(result) a = (int) PyLong_AsLong(result);
      |        ^~~~~~~~~~~~
src/C/lapack.c:6664:29: error: expected ‘;’ before ‘a’
 6664 |     if PyLong_Check(result) a = (int) PyLong_AsLong(result);
      |                             ^
In file included from /usr/include/python3.9/pytime.h:6,
                 from /usr/include/python3.9/Python.h:85,
                 from src/C/lapack.c:22:
src/C/lapack.c: In function ‘fselect_r’:
/usr/include/python3.9/object.h:633:41: error: expected ‘(’ before
‘PyType_HasFeature’
  633 | #define PyType_FastSubclass(type, flag) PyType_HasFeature(type, flag)
      |                                         ^~~~~~~~~~~~~~~~~
/usr/include/python3.9/longobject.h:15:9: note: in expansion of macro
‘PyType_FastSubclass’
   15 |         PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LONG_SUBCLASS)
      |         ^~~~~~~~~~~~~~~~~~~
src/C/lapack.c:6686:8: note: in expansion of macro ‘PyLong_Check’
 6686 |     if PyLong_Check(result) a = (int) PyLong_AsLong(result);
      |        ^~~~~~~~~~~~
src/C/lapack.c:6686:29: error: expected ‘;’ before ‘a’
 6686 |     if PyLong_Check(result) a = (int) PyLong_AsLong(result);
      |                             ^
In file included from /usr/include/python3.9/pytime.h:6,
                 from /usr/include/python3.9/Python.h:85,
                 from src/C/lapack.c:22:
src/C/lapack.c: In function ‘fselect_gc’:
/usr/include/python3.9/object.h:633:41: error: expected ‘(’ before
‘PyType_HasFeature’
  633 | #define PyType_FastSubclass(type, flag) PyType_HasFeature(type, flag)
      |                                         ^~~~~~~~~~~~~~~~~
/usr/include/python3.9/longobject.h:15:9: note: in expansion of macro
‘PyType_FastSubclass’
   15 |         PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LONG_SUBCLASS)
      |         ^~~~~~~~~~~~~~~~~~~
src/C/lapack.c:6886:7: note: in expansion of macro ‘PyLong_Check’
 6886 |    if PyLong_Check(result) a = (int) PyLong_AsLong(result);
      |       ^~~~~~~~~~~~
src/C/lapack.c:6886:28: error: expected ‘;’ before ‘a’
 6886 |    if PyLong_Check(result) a = (int) PyLong_AsLong(result);
      |                            ^
In file included from /usr/include/python3.9/pytime.h:6,
                 from /usr/include/python3.9/Python.h:85,
                 from src/C/lapack.c:22:
src/C/lapack.c: In function ‘fselect_gr’:
/usr/include/python3.9/object.h:633:41: error: expected ‘(’ before
‘PyType_HasFeature’
  633 | #define PyType_FastSubclass(type, flag) PyType_HasFeature(type, flag)
      |                                         ^~~~~~~~~~~~~~~~~
/usr/include/python3.9/longobject.h:15:9: note: in expansion of macro
‘PyType_FastSubclass’
   15 |         PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LONG_SUBCLASS)
      |         ^~~~~~~~~~~~~~~~~~~
src/C/lapack.c:6910:7: note: in expansion of macro ‘PyLong_Check’
 6910 |    if PyLong_Check(result) a = (int) PyLong_AsLong(result);
      |       ^~~~~~~~~~~~
src/C/lapack.c:6910:28: error: expected ‘;’ before ‘a’
 6910 |    if PyLong_Check(result) a = (int) PyLong_AsLong(result);
      |                            ^
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
E: pybuild pybuild:352: build: plugin distutils failed with: exit code=1:
/usr/bin/python3.9 setup.py build



More information about the debian-science-maintainers mailing list