CURRENT: acpi_wakecode.S error: unknown -Werror warning specifier: '-Wno-error-tautological-compare'

From: O. Hartmann <ohartmann_at_walstatt.org>
Date: Tue, 22 Jun 2021 18:13:18 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello,

on a recent CURRENT (FreeBSD 14.0-CURRENT #6 main-n247512-e3be51b2bc7c: Tue Jun 22 15:31:03
CEST 2021 amd64) we build a 13-STABLE based NanoBSD from a dedicated source tree for a small
routing appliance. It should be " ...we built ..." because sinde the introduction of
LLVM/CLANG 12 on FreeBSD, the build of the source tree fails with the error shown below.

Since these errors a re die to some compiler knobs, the question is how to avoid them and make
the tree of 13-STABLE build again?
We do not do explicetely cross compiling, so if there is in general an issue with this "brute
force method" I would appreciate any recommendation to avoid such malfunctions using other
techniques - as long as they are moderate to implement.

Thanks in advance and kind regards,

O. Hartmann

[...]
- --- acpi_wakecode.o ---
cc -target x86_64-unknown-freebsd13.0
- --sysroot=/pool/home/ohartmann/Projects/router/router/apu2c4/world/amd64/ALERICH_13-STABLE_amd64/pool/home/ohartmann/Projects/router/router/apu2c4/src/amd64.amd64/tmp
- -B/pool/home/ohartmann/Projects/router/router/apu2c4/world/amd64/ALERICH_13-STABLE_amd64/pool/home/ohartmann/Projects/router/router/apu2c4/src/amd64.amd64/tmp/usr/bin
- -c -x assembler-with-cpp -DLOCORE -O2 -pipe  -fno-strict-aliasing   -nostdinc  -I.
- -I/pool/home/ohartmann/Projects/router/router/apu2c4/src/sys
- -I/pool/home/ohartmann/Projects/router/router/apu2c4/src/sys/contrib/ck/include
- -I/pool/home/ohartmann/Projects/router/router/apu2c4/src/sys/contrib/libfdt -D_KERNEL
- -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common    -fno-omit-frame-pointer
- -mno-omit-leaf-frame-pointer -MD  -MF.depend.acpi_wakecode.o -MTacpi_wakecode.o
- -fdebug-prefix-map=./machine=/pool/home/ohartmann/Projects/router/router/apu2c4/src/sys/amd64/include
- -fdebug-prefix-map=./x86=/pool/home/ohartmann/Projects/router/router/apu2c4/src/sys/x86/include
- -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables
- -ffreestanding -fwrapv -fstack-protector -mretpoline -Wall -Wredundant-decls -Wnested-externs
- -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign
- -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option
- -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body
- -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign
- -Wno-error-shift-negative-value -Wno-address-of-packed-member -Wno-format-zero-length
- -mno-aes -mno-avx  -std=iso9899:1999  -Werror
/pool/home/ohartmann/Projects/router/router/apu2c4/src/sys/amd64/acpica/acpi_wakecode.S error:
unknown -Werror warning specifier: '-Wno-error-tautological-compare'
[-Werror,-Wunknown-warning-option] error: unknown -Werror warning specifier:
'-Wno-error-empty-body' [-Werror,-Wunknown-warning-option] error: unknown -Werror warning
specifier: '-Wno-error-parentheses-equality' [-Werror,-Wunknown-warning-option] error: unknown
- -Werror warning specifier: '-Wno-error-unused-function' [-Werror,-Wunknown-warning-option]
error: unknown -Werror warning specifier: '-Wno-error-pointer-sign'
[-Werror,-Wunknown-warning-option] error: unknown -Werror warning specifier:
'-Wno-error-shift-negative-value' [-Werror,-Wunknown-warning-option] *** [acpi_wakecode.o]
Error code 1


- -- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).
-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQSy8IBxAPDkqVBaTJ44N1ZZPba5RwUCYNIoWQAKCRA4N1ZZPba5
R8KQAP4mliKQElEAhj8C/v0it/dJEbJ4RgAoCxE1JgKtoZX2rAD+IgSq/RU65Vsj
CeR2h+EUs1ROF+/hpg8rzo+wPZvBPA0=
=PjTs
-----END PGP SIGNATURE-----