Source: swiftlang
Version: 6.2.3-1
Severity: important
Tags: ftbfs
User: [email protected]
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