[Buildroot] [PATCH 1/1] package/libkcapi: disable -Werror

Thomas Petazzoni thomas.petazzoni at bootlin.com
Tue Nov 8 13:26:57 UTC 2022


On Mon,  7 Nov 2022 23:41:05 +0100
Fabrice Fontaine <fontaine.fabrice at gmail.com> wrote:

> Fix the following musl build failure (disabling -Werror seems to be the
> only "solution": https://github.com/smuellerDD/libkcapi/issues/136):
> 
> lib/kcapi-kernel-if.c: In function '_kcapi_common_send_meta':
> lib/kcapi-kernel-if.c:212:12: error: unsigned conversion from 'long int' to 'long unsigned int' changes value from '-4' to '4294967292' [-Werror=sign-conversion]
>   212 |   header = CMSG_NXTHDR(&msg, header);
>       |            ^~~~~~~~~~~
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/c789d43e71e6075e297bef58d888228a89055bbc
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> ---
>  .../libkcapi/0002-Add-disable-werror.patch    | 46 +++++++++++++++++++
>  package/libkcapi/libkcapi.mk                  |  1 +
>  2 files changed, 47 insertions(+)
>  create mode 100644 package/libkcapi/0002-Add-disable-werror.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list