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.
wasix-libc fails to build in unstable with it, and builds without it:
clang: error: argument '--target=wasm32-wasi' is deprecated, use
--target=wasm32-wasip1 instead [-Werror,-Wdeprecated]
The Makefile sets TARGET_TRIPLE = $(TARGET_ARCH)-wasi (line 45) and
builds with -Werror (line 385). The warning is new in clang 23. Using
wasm32-wasip1 should fix it.
The attached debdiff keeps the wasm32-wasi triple (it is used for the
installation paths) and adds -Wno-error=deprecated. The build then
fails in check-symbols: clang 23 predefines a few more macros
(__wasip1__, __WCHAR_MIN__, __SIG_ATOMIC_MIN__, ...), so the debdiff
also updates expected/wasm32-wasi/predefined-macros.txt. That second
part must only be uploaded once clang 23 is the default. wasix-libc
builds with both.
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