pyqt5-sip module fails to build with Python 3.11.0a6

Scott Talbert swt at techie.net
Wed Mar 9 20:02:51 GMT 2022


On Wed, 9 Mar 2022, Phil Thompson wrote:

>> The pyqt5-sip module doesn't build with Python 3.11.0a6.  I know this
>> is a pre-release but the Fedora team is already preparing for it.  :)
>> 
>> $ python --version
>> Python 3.11.0a6
>> 
>> $ pip install pyqt5-sip
>> Collecting pyqt5-sip
>>   Using cached PyQt5_sip-12.9.1.tar.gz (121 kB)
>>   Installing build dependencies ... done
>>   Getting requirements to build wheel ... done
>>   Preparing metadata (pyproject.toml) ... done
>> Building wheels for collected packages: pyqt5-sip
>>   Building wheel for pyqt5-sip (pyproject.toml) ... error
>>   error: subprocess-exited-with-error
>>
>>   × Building wheel for pyqt5-sip (pyproject.toml) did not run successfully.
>>   │ exit code: 1
>>   ╰─> [18 lines of output]
>>       running bdist_wheel
>>       running build
>>       running build_ext
>>       building 'PyQt5.sip' extension
>>       creating build
>>       creating build/temp.linux-x86_64-3.11
>>       gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2
>> -fexceptions -g -grecord-gcc-switches -pipe -Wall
>> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
>> -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
>> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
>> -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches
>> -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
>> -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
>> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
>> -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches
>> -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
>> -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
>> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
>> -D_GNU_SOURCE -fPIC -fwrapv -fPIC
>> -I/home/talbert/fedora-packaging/python-pyqt5-sip/blah/env/include
>> -I/usr/include/python3.11 -c apiversions.c -o
>> build/temp.linux-x86_64-3.11/apiversions.o
>>       gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2
>> -fexceptions -g -grecord-gcc-switches -pipe -Wall
>> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
>> -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
>> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
>> -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches
>> -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
>> -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
>> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
>> -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches
>> -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
>> -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
>> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
>> -D_GNU_SOURCE -fPIC -fwrapv -fPIC
>> -I/home/talbert/fedora-packaging/python-pyqt5-sip/blah/env/include
>> -I/usr/include/python3.11 -c array.c -o
>> build/temp.linux-x86_64-3.11/array.o
>>       gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2
>> -fexceptions -g -grecord-gcc-switches -pipe -Wall
>> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
>> -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
>> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
>> -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches
>> -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
>> -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
>> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
>> -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches
>> -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
>> -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
>> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
>> -D_GNU_SOURCE -fPIC -fwrapv -fPIC
>> -I/home/talbert/fedora-packaging/python-pyqt5-sip/blah/env/include
>> -I/usr/include/python3.11 -c descriptors.c -o
>> build/temp.linux-x86_64-3.11/descriptors.o
>>       gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2
>> -fexceptions -g -grecord-gcc-switches -pipe -Wall
>> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
>> -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
>> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
>> -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches
>> -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
>> -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
>> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
>> -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches
>> -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
>> -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
>> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
>> -D_GNU_SOURCE -fPIC -fwrapv -fPIC
>> -I/home/talbert/fedora-packaging/python-pyqt5-sip/blah/env/include
>> -I/usr/include/python3.11 -c int_convertors.c -o
>> build/temp.linux-x86_64-3.11/int_convertors.o
>>       gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2
>> -fexceptions -g -grecord-gcc-switches -pipe -Wall
>> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
>> -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
>> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
>> -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches
>> -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
>> -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
>> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
>> -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches
>> -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
>> -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
>> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
>> -D_GNU_SOURCE -fPIC -fwrapv -fPIC
>> -I/home/talbert/fedora-packaging/python-pyqt5-sip/blah/env/include
>> -I/usr/include/python3.11 -c objmap.c -o
>> build/temp.linux-x86_64-3.11/objmap.o
>>       gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2
>> -fexceptions -g -grecord-gcc-switches -pipe -Wall
>> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
>> -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
>> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
>> -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches
>> -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
>> -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
>> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
>> -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches
>> -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
>> -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
>> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
>> -D_GNU_SOURCE -fPIC -fwrapv -fPIC
>> -I/home/talbert/fedora-packaging/python-pyqt5-sip/blah/env/include
>> -I/usr/include/python3.11 -c qtlib.c -o
>> build/temp.linux-x86_64-3.11/qtlib.o
>>       gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2
>> -fexceptions -g -grecord-gcc-switches -pipe -Wall
>> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
>> -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
>> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
>> -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches
>> -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
>> -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
>> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
>> -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches
>> -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
>> -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic
>> -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
>> -D_GNU_SOURCE -fPIC -fwrapv -fPIC
>> -I/home/talbert/fedora-packaging/python-pyqt5-sip/blah/env/include
>> -I/usr/include/python3.11 -c siplib.c -o
>> build/temp.linux-x86_64-3.11/siplib.o
>>       siplib.c: In function ‘sip_api_get_frame’:
>>       siplib.c:12753:22: error: invalid use of undefined type ‘struct 
>> _frame’
>>       12753 |         frame = frame->f_back;
>>             |                      ^~
>>       error: command '/usr/lib64/ccache/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 pyqt5-sip
>> Failed to build pyqt5-sip
>> ERROR: Could not build wheels for pyqt5-sip, which is required to
>> install pyproject.toml-based projects
>> 
>> Thanks,
>> Scott
>
> Should be fixed in the next snapshot.
>
> Thanks,
> Phil

Thanks for the quick update.  One nitpick, I think this second line should 
say "The latest version of ABI v12" ...

--- a/NEWS	Tue Mar 08 12:04:47 2022 +0000
+++ b/NEWS	Wed Mar 09 19:13:59 2022 +0000
@@ -1,6 +1,9 @@
-v6.6.0 8th March 2022
+v6.6.0 9th March 2022
+  - Python v3.6 is no longer supported.
    - The .sip file parser (created using flex and bison) has been replaced 
with
      a pure Python implementation using PLY.
+  - The latest version of ABI v13 is v13.3.0.
+  - The latest version of ABI v13 is v12.10.0.
    - Bug fixes.

Thanks,
Scott


More information about the PyQt mailing list