[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1057050: marked as done (qt6-multimedia: Please build with EIGEN_DONT_VECTORIZE on powerpc to fix FTBFS)



Your message dated Wed, 20 Dec 2023 19:55:02 +0000
with message-id <E1rG2ek-003ehL-TF@fasolo.debian.org>
and subject line Bug#1057050: fixed in qt6-multimedia 6.6.1-1
has caused the Debian Bug report #1057050,
regarding qt6-multimedia: Please build with EIGEN_DONT_VECTORIZE on powerpc to fix FTBFS
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1057050: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1057050
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: qt6-multimedia
Version: 6.4.2-11
Severity: normal
User: debian-powerpc@lists.debian.org
Usertags: powerpc
X-Debbugs-Cc: debian-powerpc@lists.debian.org

Hello!

The package src:qt6-multimedia fails to build from source on powerpc since version
6.4.0-1 due to the use of some AltiVec instrisics that are not supported on 32-bit
PowerPC:

/usr/bin/c++ -DEIGEN_MPL2_ONLY -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS \
(...)
In file included from /usr/include/eigen3/Eigen/Core:210,
                 from /usr/include/eigen3/Eigen/Dense:1,
                 from /<<PKGBUILDDIR>>/src/resonance-audio/../3rdparty/resonance-audio/platforms/common/utils.h:20,
                 from /<<PKGBUILDDIR>>/src/3rdparty/resonance-audio/platforms/common/utils.cc:17:
/usr/include/eigen3/Eigen/src/Core/arch/AltiVec/PacketMath.h: In function \
‘Packet Eigen::internal::pblend(const Selector<unpacket_traits<T>::size>&, const Packet&, const Packet&) [with Packet = __vector(2) double]’:
/usr/include/eigen3/Eigen/src/Core/arch/AltiVec/PacketMath.h:2702:17: error: invalid parameter combination for AltiVec intrinsic ‘__builtin_vec_sel’
 2702 |   return vec_sel(elsePacket, thenPacket, mask);
      |                 ^

This can be fixed by switching off vectorization in the »eigen« using the preprocessor
macro EIGEN_DONT_VECTORIZE which can be defined on the cmake command line using the
cmake variable COMPILE_DEFINITIONS:

--- qt6-multimedia-6.4.2/debian/rules.orig      2023-07-26 17:52:13.000000000 +0200
+++ qt6-multimedia-6.4.2/debian/rules   2023-11-28 18:26:47.950137854 +0100
@@ -9,6 +9,10 @@
        cmake_extra_args += -DQT_HOST_PATH=/usr
 endif
 
+ifneq (,$(filter $(DEB_HOST_ARCH),powerpc))
+       cmake_extra_args += -DCOMPILE_DEFINITIONS="EIGEN_DONT_VECTORIZE"
+endif
+
 %:
        dh $@ --with pkgkde_symbolshelper --buildsystem=cmake+ninja
 
With the above change, cmake defines the preprocessor macro EIGEN_DONT_VECTORIZE and
the build succeeds on powerpc.

Could you apply this change for the next upload in order to fix the build on powerpc?

Attaching a patch for a convenience.

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
--- qt6-multimedia-6.4.2/debian/rules.orig	2023-07-26 17:52:13.000000000 +0200
+++ qt6-multimedia-6.4.2/debian/rules	2023-11-28 18:26:47.950137854 +0100
@@ -9,6 +9,10 @@
 	cmake_extra_args += -DQT_HOST_PATH=/usr
 endif
 
+ifneq (,$(filter $(DEB_HOST_ARCH),powerpc))
+	cmake_extra_args += -DCOMPILE_DEFINITIONS="EIGEN_DONT_VECTORIZE"
+endif
+
 %:
 	dh $@ --with pkgkde_symbolshelper --buildsystem=cmake+ninja
 

--- End Message ---
--- Begin Message ---
Source: qt6-multimedia
Source-Version: 6.6.1-1
Done: Patrick Franz <deltaone@debian.org>

We believe that the bug you reported is fixed in the latest version of
qt6-multimedia, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1057050@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Patrick Franz <deltaone@debian.org> (supplier of updated qt6-multimedia package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 20 Dec 2023 20:05:06 +0100
Source: qt6-multimedia
Architecture: source
Version: 6.6.1-1
Distribution: experimental
Urgency: medium
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Changed-By: Patrick Franz <deltaone@debian.org>
Closes: 1057050
Changes:
 qt6-multimedia (6.6.1-1) experimental; urgency=medium
 .
   [ Patrick Franz ]
   * New upstream release (6.6.1).
   * Bump Qt B-Ds to 6.6.1.
   * Remove patches that have been applied upstream.
   * Update build-dependencies.
   * Update list of installed files.
   * Update symbols from buildlogs.
   * Remove binary package libqt6multimediaquick6.
   * Update d/copyright.
   * Build with EIGEN_DONT_VECTORIZE on powerpc to fix FTBFS, thx to John
     Paul Adrian Glaubitz (Closes: #1057050).
Checksums-Sha1:
 3d44bb35b8ebbe49f8ab2a917a95d02fb05327bf 3417 qt6-multimedia_6.6.1-1.dsc
 0ecab24b6622e975abd68a077428e07ba344cd2a 6723296 qt6-multimedia_6.6.1.orig.tar.xz
 d685f744abac45e73e48e2a093d84273b6755c9e 20700 qt6-multimedia_6.6.1-1.debian.tar.xz
 bb0b8bea74ae32a1178aa9c08d3d71f0c54f01e8 13155 qt6-multimedia_6.6.1-1_source.buildinfo
Checksums-Sha256:
 13133861e4e5bd15171db3b31cf4e1ee26f3d3530214aee44759650f0905a551 3417 qt6-multimedia_6.6.1-1.dsc
 7ee4e2296f5714961692f6ded568d3e3fde3687cee48e9d717194b5d1360db4a 6723296 qt6-multimedia_6.6.1.orig.tar.xz
 095821d707d524461dfe54d9a9015a2a9bef47547aa60877a67a0bca3aae89e0 20700 qt6-multimedia_6.6.1-1.debian.tar.xz
 c99470e22fa3c64078edc7a8d12e704db8f3b8e90f611b0dbcc4345d8f388667 13155 qt6-multimedia_6.6.1-1_source.buildinfo
Files:
 a32436e334ab308706263cf958f5e09e 3417 libs optional qt6-multimedia_6.6.1-1.dsc
 39f945de23861c4e515919842c3995e7 6723296 libs optional qt6-multimedia_6.6.1.orig.tar.xz
 a36055b1ffd2598da170a42b44a79e5d 20700 libs optional qt6-multimedia_6.6.1-1.debian.tar.xz
 32797d0653710e7467867a24637e9a03 13155 libs optional qt6-multimedia_6.6.1-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEYodBXDR68cxZHu3Knp96YDB3/lYFAmWDOv0ACgkQnp96YDB3
/lZV9g//YxKCfFhMQBX5uLOSSGO+UfwZyqXJsahDcSKMWV37BmGZh+elWmY73IQR
XVjA/KM6Ue6ZInisSukKxj0qGTleRlkaP5Xll0loIF48RzKeXjpczEI1nvm6S22T
bzYYbGz4Xf1LS1ws1Quo7xMAViodX2SuhvwwFgqnx6re67Jf/bglrBZT3bHjUM+F
xgY0tNGNkg8SDJeNeY9Qc0JRkwmvd92es1lnjv/h60bHnQNrOkrg8aDgfm4dacrj
T6X2AUoCa+VDpGdf1SzLFSx3WamnN4vJK4zrBEvSmGrvjEquoS05R5d/gppCc9Dl
XI/evVKtfrvvSKdZLwN4qtvKYhtBLGqJS7nUevirMk/9LRbxCOK9sXeHaz1oIk68
jQQe+fggYflW1TdYTxEnw2t6aSIu/5r2KIVsdOdaOROnszGXDvDzGLjEYT+ho/+x
i/Jfsyl2DW36ONQscFvFaNv7NxbpotEvsHtcMXimwzo/Ec2cdM3HnzILd1Gt5z5X
bpZAISyNOadCqnw7xttxDAD4+/6lIXfUs0lqvdIRstO5QMJWBHqD/bEQDlS4mV/O
SZwuIQ6K/Mez57aGHRr1HJU4x7wHzlI5C7+RZO2WSdVw+kjBQ74aUOM//pyW+L1m
pV5MolbFV2oOs+T9ad5ORChW/mEnv8Qm5NpyeSUOao9PT1UIvLA=
=fSbG
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: