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

15 views
Skip to first unread message

O. Hartmann

unread,
Jun 22, 2021, 2:16:26 PM6/22/21
to FreeBSD CURRENT
-----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-----

John Baldwin

unread,
Jun 22, 2021, 2:26:13 PM6/22/21
to O. Hartmann, FreeBSD CURRENT, Dimitry Andric
On 6/22/21 11:13 AM, O. Hartmann wrote:
> 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,

You can use 'make buildworld WITHOUT_SYSTEM_COMPILER=yes' to force your builds to use the
clang 11 included in stable/13 instead of the host clang 12. You could also MFC the fixes
from head to use -Wno-error= instead of -Wno-error-.

--
John Baldwin

Dimitry Andric

unread,
Jun 22, 2021, 3:52:01 PM6/22/21
to John Baldwin, O. Hartmann, FreeBSD CURRENT
signature.asc
Reply all
Reply to author
Forward
0 new messages