πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.maint.x
Article #21

Bug#1153522: mesa: 26.2.6 appears to regress on riscv64

#21
From: Aurelien Jarno
Date: Mon, 16 Nov 2026 18:00
105 lines
6464 bytes
control: clone -1 -2
control: reassign -2 src:binutils
control: retitle -2 binutils: TLSDESC relaxation breaks Mesa libgallium on riscv64
control: forwarded -2 https://sourceware.org/bugzilla/show_bug.cgi?id=35009
control: affects -2 src:mesa
control: tag -1 + patch

Hi,

On 2026-11-16 06:37, Aurelien Jarno wrote:
> Hi,
> 
> On 2026-11-11 20:16, Aurelien Jarno wrote:
> > Hi,
> > 
> > On 2026-11-09 15:00, Jeremy BΓ­cha wrote:
> > > Source: mesa
> > > Version: 26.2.6-1
> > > Severity: serious
> > > Tags: forky ftbfs
> > > Control: affects -1 src:qt6-pim
> > > X-Debbugs-Cc: debian-riscv@lists.debian.org, tjaalton@debian.org
> > > User: debian-riscv@lists.debian.org
> > > Usertags: riscv64
> > > 
> > > mesa 26.2.6 appears to regress on riscv64 as seen in autopkgtests
> > > triggered by mesa itself:
> > > https://qa.debian.org/excuses.php?package=mesa
> > > 
> > > In qt6-pim's build tests, this error is seen on riscv64:
> > > https://buildd.debian.org/status/logs.php?pkg=qt6-pim&arch=riscv64
> > > 
> > > 25: qt.glx: qglx_findConfig: Failed to finding matching FBConfig for
> > > QSurfaceFormat(version 2.0, options
> > > QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1,
> > > redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize
> > > -1, stencilBufferSize -1, samples -1, swapBehavior
> > > QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace
> > > QColorSpace(), profile  QSurfaceFormat::NoProfile)
> > > 25: qt.glx: qglx_findConfig: Failed to finding matching FBConfig for
> > > QSurfaceFormat(version 2.0, options
> > > QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1,
> > > redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize
> > > -1, stencilBufferSize -1, samples -1, swapBehavior
> > > QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace
> > > QColorSpace(), profile  QSurfaceFormat::NoProfile)
> > > 25: qt.glx: qglx_findConfig: Failed to finding matching FBConfig for
> > > QSurfaceFormat(version 2.0, options
> > > QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1,
> > > redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize
> > > -1, stencilBufferSize -1, samples -1, swapBehavior
> > > QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace
> > > QColorSpace(), profile  QSurfaceFormat::NoProfile)
> > > 25: Could not initialize GLX
> > > 
> > > This error will likely cause build tests for many packages across
> > > Debian to fail. In other words, FTBFS.
> > 
> > I confirm the issue. It is due to binutils 2.47.50.20261021-1 which 
> > miscompiles mesa-libgallium. I still have to investigate if a newer 
> > binutils snapshot fixes the issue, and if not try to understand if the 
> > issue needs to be fixed on the mesa side or on the binutils side.
> 
> The problem is due to this upstream binutils commit [1]:
> 
> 2c4ccb8103d73917d769cf6c35fa8b71424f20ca is the first 'bad' commit
> commit 2c4ccb8103d73917d769cf6c35fa8b71424f20ca
> Author: Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
> Date:   Wed Feb 21 02:55:56 2024 +0900
> 
>     RISC-V: Introduce TLSDESC relaxation.
> 
> I'll report upstream and see if I can find a workaround for the mesa 
> package until it get fixed. 

I have reported this bug in the binutils bugzilla:
https://sourceware.org/bugzilla/show_bug.cgi?id=35009

Until this is fixed in binutils, the following workaround is enough to 
at least get the qt6-pim tests working again:

--- mesa-26.2.6/debian/rules
+++ mesa-26.2.6/debian/rules
@@ -36,6 +36,10 @@
   # Workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83143
   DEB_CFLAGS_MAINT_APPEND += -freorder-blocks-algorithm=simple
   DEB_CXXFLAGS_MAINT_APPEND += -freorder-blocks-algorithm=simple
+else ifneq (,$(filter $(DEB_HOST_ARCH), riscv64))
+  # Workaround for https://sourceware.org/bugzilla/show_bug.cgi?id=35009 
+  DEB_CFLAGS_MAINT_APPEND += -mtls-dialect=trad
+  DEB_CXXFLAGS_MAINT_APPEND += -mtls-dialect=trad
 endif
 buildflags = $(shell \
 	DEB_CFLAGS_MAINT_APPEND='$(DEB_CFLAGS_MAINT_APPEND)' \

Regards
Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                     http://aurel32.net
Technical Details
Message-ID: <O099L-cily-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!newsfeed.xs3.de!news.samoylyk.net!gothmog.csi.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod
References: <NXyel-aPkV-3@gated-at.bofh.it> <NYm1r-bhw6-1@gated-at.bofh.it> <NZXBD-cbSp-1@gated-at.bofh.it> <NXyel-aPkV-3@gated-at.bofh.it> <NZXBD-cbSp-1@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!newsfeed.xs3.de!news.samoylyk.net!gothmog.csi.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From: Aurelien Jarno <aurel32@debian.org>
Newsgroups: linux.debian.bugs.dist,linux.debian.maint.x
Subject: Bug#1153522: mesa: 26.2.6 appears to regress on riscv64
Date: Mon, 16 Nov 2026 19:00:01 +0100
Message-ID: <O099L-cily-3@gated-at.bofh.it>
References: <NXyel-aPkV-3@gated-at.bofh.it> <NYm1r-bhw6-1@gated-at.bofh.it> <NZXBD-cbSp-1@gated-at.bofh.it> <NXyel-aPkV-3@gated-at.bofh.it> <NZXBD-cbSp-1@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Mon Nov 16 17:54:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.699
Reply-To: Aurelien Jarno <aurel32@debian.org>, 1153522@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-x@lists.debian.org
X-Debian-Pr-Message: followup 1153522
X-Debian-Pr-Package: src:mesa
X-Debian-Pr-Keywords: forky ftbfs
X-Debian-Pr-Source: mesa
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
User-Agent: Mutt/2.4.1 (2026-07-04)
X-Debian-User: aurel32
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2003023
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 105
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: debian-riscv@lists.debian.org, binutils@packages.debian.org
X-Original-Date: Mon, 16 Nov 2026 18:52:47 +0100
X-Original-Message-ID: <avtC76YwU9PN9ofo@aurel32.net>
X-Original-References: <CAAajCMZYfqdW_-+BJG9vEpDEQ6PyvYcMCHZQcKcKkcuGbz_FkA@mail.gmail.com> <avS_CDfB5mnL8542@aurel32.net> <avqWot8xEgju-THO@aurel32.net> <CAAajCMZYfqdW_-+BJG9vEpDEQ6PyvYcMCHZQcKcKkcuGbz_FkA@mail.gmail.com> <avqWot8xEgju-THO@aurel32.net>