Article View: linux.debian.bugs.dist
Article #2510Bug#1152430: qt6-core: Add minimum alignment requirement for type tagged classes
From: John Paul Adrian Glaubitz
Date: Thu, 29 Oct 2026 08:30
Date: Thu, 29 Oct 2026 08:30
49 lines
3989 bytes
3989 bytes
Hi Mattias, On Thu, 2026-10-29 at 09:20 +0100, Mattias Ellert wrote: > The 2 least significant bits in pointers to QEventLoop, QThread and > QCoreApplication are used for type tagging. This requires a minimum > alignment of 4. Force the alignment to be at least 4 to support > architectures where the default alignment is smaller (m68k). > > This fixes compilation errors on Debian for Motorola 68000 (m68k): > > .../src/corelib/kernel/qeventloop.cpp:329:35: error: static assertion > failed > 329 | static_assert(alignof(QEventLoop) >= 4); > | ~~~~~~~~~~~~~~~~~~~~^~~~ > • the comparison reduces to ‘(2 >= 4)’ > .../src/corelib/kernel/qeventloop.cpp:330:32: error: static assertion > failed > 330 | static_assert(alignof(QThread) >= 4); > | ~~~~~~~~~~~~~~~~~^~~~ > • the comparison reduces to ‘(2 >= 4)’ > .../src/corelib/kernel/qeventloop.cpp:331:41: error: static assertion > failed > 331 | static_assert(alignof(QCoreApplication) >= 4); > | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ > • the comparison reduces to ‘(2 >= 4)’ Thanks a lot for working on this. FWIW, the alignment problem on m68k is being tracked here: https://wiki.debian.org/M68k/Alignment I have been trying to switch the default alignment on m68k to 32 bits for a while now, but so far there has always been resistance. Switching the default alignment would be the proper and permanent fix which would fix a lot of packages as you can see from the list. > My testbuild on the m68k porterbox mitchy.debian.net ran out of disk > space, but it successfully built the libQt6Core library before this > with the attached patch applied. Oh, I'll clean up disk space on mitchy today. Thanks for the reminder. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Technical Details
Message-ID:
<NTtGh-8Aov-5@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomodReferences:
<NTtGh-8Aov-3@gated-at.bofh.it> <NTtGh-8Aov-3@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Newsgroups: linux.debian.bugs.dist,linux.debian.ports.68k Subject: Bug#1152430: qt6-core: Add minimum alignment requirement for type tagged classes Date: Thu, 29 Oct 2026 09:30:01 +0100 Message-ID: <NTtGh-8Aov-5@gated-at.bofh.it> References: <NTtGh-8Aov-3@gated-at.bofh.it> <NTtGh-8Aov-3@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Thu Oct 29 08:29:07 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.45 Reply-To: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>, 1152430@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-qt-kde@lists.debian.org X-Debian-Pr-Message: followup 1152430 X-Debian-Pr-Package: src:qt6-base X-Debian-Pr-Keywords: ftbfs patch X-Debian-Pr-Source: qt6-base Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.60.2 MIME-Version: 1.0 X-Originating-IP: 93.128.55.98 X-Zedat-Hint: PO X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1999491 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 49 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: 1152430@bugs.debian.org, debian-68k <debian-68k@lists.debian.org> X-Original-Date: Thu, 29 Oct 2026 09:27:45 +0100 X-Original-Message-ID: <b3b4165614f9364e3213451cbdf4271b02bbd668.camel@physik.fu-berlin.de> X-Original-References: <011e60a9fa6fd28b770d157d071df8290e94b5aa.camel@physics.uu.se> <011e60a9fa6fd28b770d157d071df8290e94b5aa.camel@physics.uu.se>