On Sat, Apr 02, 2022 at 11:16:55AM +0200, Matthieu Herrb wrote:
> Hi,
>
> I'm not sure if upgrade by building the system from sources is
> supposed to be supported or not.
I don't think it is supported. I think it's only expected to work from
reasonably recent snapshots.
> Anyways, for some reason I tried to build à -current kernel on a 7.0
> system, but, unless I've some other stuff set wrong it fails:
>
> error: unknown warning option '-Wno-unused-but-set-variablé; did you
> mean '-Wno-unused-const-variablé? [-Werror,-Wunknown-warning-option]
> *** Error 1 in /usr/src/sys/arch/amd64/compile/GENERIC.MP
> (Makefile:1955 'assym.h')
-Wunused-but-set-variable was introduced with clang 13. It needed to be
disabled to keep -Werror. Due to that a kernel won't build with clang 11.
commit b59965a81ab3e54f1683aa69b9c9ad35ad99dd7e
Author: patrick
Date: Fri Dec 17 14:59:21 2021 +
Disable a few warning flags that were introduced and enabled by default
with LLVM 13.
>
> --
> Matthieu Herrb
>