Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 880663 - net-wireless/blueman-2.3.4: failed to build with python 3.11, needs cythonize (_blueman.c:438:62: error: invalid use of incomplete typedef ‘PyFrameObject’ {aka ‘struct _frame’})
Summary: net-wireless/blueman-2.3.4: failed to build with python 3.11, needs cythonize...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-09 21:55 UTC by Yuriy Ilinykh
Modified: 2023-02-25 07:18 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge_info.log,8.44 KB, text/plain)
2022-11-09 21:55 UTC, Yuriy Ilinykh
Details
build.log (build.log,42.44 KB, text/plain)
2022-11-09 21:55 UTC, Yuriy Ilinykh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuriy Ilinykh 2022-11-09 21:55:03 UTC
Build fails with error:


libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pygobject-3.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -I/usr/include/python3.11 -DSN_API_NOT_YET_FROZEN -march=native -O3 -pipe -flto=16 -fgraphite-identity -floop-nest-optimize -fipa-pta -fno-semantic-interposition -fdevirtualize-at-ltrans -c libblueman.c  -fPIC -DPIC -o .libs/_blueman_la-libblueman.o
_blueman.c: In function ‘__Pyx_AddTraceback’:
_blueman.c:438:62: error: invalid use of incomplete typedef ‘PyFrameObject’ {aka ‘struct _frame’}
  438 |   #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
      |                                                              ^~
_blueman.c:8494:5: note: in expansion of macro ‘__Pyx_PyFrame_SetLineNumber’
 8494 |     __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:518: _blueman_la-_blueman.lo] Error 1

This error is from cython < 0.29.29 (https://github.com/cython/cython/commit/afc00fc3ba5d43c67151c0039847a526e7b627a5).
But reproduced with dev-lang/cython-0.29.32 because used sources includes precompiled files, for example modules/_blueman.c, that use cython 0.29.28

Reproducible: Always



Expected Results:  
All *.c files generates when portage start build package and uses current libs
Comment 1 Yuriy Ilinykh 2022-11-09 21:55:29 UTC
Created attachment 830235 [details]
emerge --info
Comment 2 Yuriy Ilinykh 2022-11-09 21:55:40 UTC
Created attachment 830237 [details]
build.log
Comment 3 Sander Sweers 2022-11-20 21:41:14 UTC
blueman releases are done on a ubuntu 22.04 docker from github. It unfortunately comes with cython 0.29.28.

Removing the _blueman.c will trigger automake to generate a new one.
Comment 4 Sander Sweers 2022-11-22 19:03:44 UTC
2.3.5 will stop shipping _blueman.c which should be released soon(ish).
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-02-25 07:18:48 UTC
I suppose it's fixed in 2.3.5.