Subject: qtbase fails to build on i686

From: Maxim Cournoyer <[email-masked]>
Date: Sun, 03 Dec 2023 13:32:15 -0500

Hi,

After recent mesa/xorg upgrades, qtbase fails to build on i686, per
https://ci.guix.gnu.org/build/2700964/details.

--8<---------------cut here---------------start------------->8---
[ 59%] Building CXX object src/gui/CMakeFiles/Gui.dir/text/freetype/qfreetypefontdatabase.cpp.o
/tmp/guix-build-qtbase-6.5.2.drv-0/qtbase-everywhere-src-6.5.2/src/gui/painting/qdrawhelper_avx2.cpp: In function ‘const QRgba64* fetchRGBA64ToRGBA64PM_avx2(QRgba64*, const uchar*, int, int, const QList<unsigned int>*, QDitherInfo*)’:
/tmp/guix-build-qtbase-6.5.2.drv-0/qtbase-everywhere-src-6.5.2/src/gui/painting/qdrawhelper_avx2.cpp:1353:33: error: could not convert ‘vs’ from ‘__m128i’ to ‘QRgba64’
 1353 |         vs = multiplyAlpha65535(vs, va);
      |                                 ^~
      |                                 |
      |                                 __m128i
[ 59%] Building CXX object src/gui/CMakeFiles/Gui.dir/text/unix/qfontconfigdatabase.cpp.o
make[2]: *** [src/gui/CMakeFiles/Gui.dir/build.make:3093: src/gui/CMakeFiles/Gui.dir/painting/qdrawhelper_avx2.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/tmp/guix-build-qtbase-6.5.2.drv-0/build'
make[1]: *** [CMakeFiles/Makefile2:21588: src/gui/CMakeFiles/Gui.dir/all] Error 2
make[1]: Leaving directory '/tmp/guix-build-qtbase-6.5.2.drv-0/build'
make: *** [Makefile:149: all] Error 2
error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "make" arguments: ("-j" "16") exit-status: 2 term-signal: #f stop-signal: #f> 
phase `build' failed after 578.8 seconds
command "make" "-j" "16" failed with status 2
builder for `/gnu/store/rja0mdhh29hl3rr5mk9xa2mq55x3g0ja-qtbase-6.5.2.drv' failed with exit code 1
@ build-failed /gnu/store/rja0mdhh29hl3rr5mk9xa2mq55x3g0ja-qtbase-6.5.2.drv - 1 builder for `/gnu/store/rja0mdhh29hl3rr5mk9xa2mq55x3g0ja-qtbase-6.5.2.drv' failed with exit code 1
--8<---------------cut here---------------end--------------->8---

CC'ing John in case they'd have a clue as to what this may be caused by.

-- 
Thanks,
Maxim