🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #4563

Bug#1154034: swiftlang: FTBFS with LLVM 23 as default: new -Wc2y-extensions warning with -Werror

#4563
From: Sylvestre Ledru
Date: Sun, 15 Nov 2026 11:20
42 lines
2863 bytes
Source: swiftlang
Version: 6.2.3-1
Severity: important
Tags: ftbfs
User: pkg-llvm-team@lists.alioth.debian.org
Usertags: llvm-23-default
Control: affects -1 + src:llvm-defaults
Control: block 1154024 by -1

Hello,

We are going to switch the default LLVM version to 23 (transition bug
#1154024). llvm-defaults 0.75~exp1, in experimental, already points to
23.

With it, swiftlang fails to build earlier than it does today:

third-party/benchmark/include/benchmark/benchmark.h:1465:30: error:
'__COUNTER__' is a C2y extension [-Werror,-Wc2y-extensions]

This warning is new in clang 23. Note that swiftlang already FTBFS in
unstable without LLVM 23 (#1143708, linux/scc.h not found in
compiler-rt), so this one will show up once #1143708 is fixed, or with
clang 23 earlier in the build.

To reproduce, with sbuild:

  sbuild -d unstable \
    --extra-repository='deb http://deb.debian.org/debian experimental main' \
    --build-dep-resolver=aptitude \
    --add-depends='clang (>= 1:23~), llvm-dev (>= 1:23~), libclang-dev (>= 1:23~)' \
    <package>

The --add-depends forces the llvm-defaults packages from experimental
(the default apt resolver won't pick them, aptitude does), everything
else comes from unstable.

The severity will be raised to serious once llvm-defaults 23 is in
unstable.

Cheers,
Sylvestre
Technical Details
Message-ID: <NZGr7-c1KG-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Sylvestre Ledru <sylvestre@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1154034: swiftlang: FTBFS with LLVM 23 as default: new -Wc2y-extensions warning with -Werror
Date: Sun, 15 Nov 2026 12:20:01 +0100
Message-ID: <NZGr7-c1KG-1@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Sun Nov 15 11:11:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.9
Reply-To: Sylvestre Ledru <sylvestre@debian.org>, 1154034@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: pkg-llvm-team@lists.alioth.debian.org
X-Debian-Pr-Message: report 1154034
X-Debian-Pr-Package: src:swiftlang
X-Debian-Pr-Keywords: ftbfs
X-Debian-Pr-Source: swiftlang
User-Agent: mail (GNU Mailutils 3.21)
X-Greylist: delayed 466 seconds by postgrey-1.37 at buxtehude; Sun, 15 Nov 2026 11:09:50 UTC
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2002703
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 42
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sun, 15 Nov 2026 12:02:56 +0100
X-Original-Message-ID: <20261115110256.669DC19CDB15@pulau.ecranbleu.org>