Closed glaubitz closed 3 years ago
FWIW this also breaks compiling for CHERI/Arm's Morello, where the stack protector is rendered obsolete and so we turn the flag into a no-op that warns about it being obsolete. For #437 I just patched out the relevant lines locally as it wasn't relevant (my motivation for that PR was that FreeBSD has recently imported libfido2 into the base system, and so we need it to build and work downstream in the CheriBSD fork, but FreeBSD doesn't use upstream build systems for imported code, it wires it up to its own Makefiles).
Resolved via #444.
libfido2 currently fails to build on Debian alpha, hppa and ia64 because the check for HAVE_STACK_PROTECTOR_ALL is broken.
Despite the host compiler not supporting the flag
-fstack-protector
, the test still succeeds and libfido2 will try to build with-fstack-protector
which fails since the flag causes a warning which is treated like an error due to-Werror
:and
The check
HAVE_STACK_PROTECTOR_ALL
should most likely be performed with-Werror
turned on.Full log here: https://buildd.debian.org/status/fetch.php?pkg=libfido2&arch=alpha&ver=1.8.0-1&stamp=1629096735&raw=0