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

Thomas Petazzoni thomas.petazzoni at bootlin.com
Fri May 10 20:52:13 UTC 2024


On Sun, 10 Mar 2024 17:31:50 +0100
Fabrice Fontaine <fontaine.fabrice at gmail.com> wrote:

> Disable -Werror to fix the following build failure raised at least since
> bump to version 3.9.0 in commit e76d9868c940f2d19968077b97e79c49376aa464
> and
> https://github.com/zhaojh329/libuhttpd/commit/81db1fa371bc80f40c1bfe60010e7d64bdf30b46:
> 
> /home/autobuild/autobuild/instance-8/output-1/build/libuhttpd-3.14.1/src/file.c: In function '__serve_file':
> /home/autobuild/autobuild/instance-8/output-1/build/libuhttpd-3.14.1/src/file.c:322:50: error: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type '__off_t' {aka 'long int'} [-Werror=format=]
>   322 |         conn->send_header(conn, "Content-Range", "bytes */%" PRIu64, st->st_size);
>       |                                                  ^~~~~~~~~~~         ~~~~~~~~~~~
>       |                                                                        |
>       |                                                                        __off_t {aka long int}
> In file included from /home/autobuild/autobuild/instance-8/output-1/build/libuhttpd-3.14.1/src/file.c:36:
> /home/autobuild/autobuild/instance-8/output-1/per-package/libuhttpd/host/mips64el-buildroot-linux-uclibc/sysroot/usr/include/inttypes.h:91:41: note: format string is defined here
>    91 | # define PRIu64         __PRI64_PREFIX "u"
> cc1: all warnings being treated as errors
> 
> Fixes: e76d9868c940f2d19968077b97e79c49376aa464
>  - http://autobuild.buildroot.org/results/46349a1409f9cff027b462456078284459e75511
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> ---
>  ...akeLists.txt-add-BUILD_WERROR-option.patch | 30 +++++++++++++++++++
>  package/libuhttpd/libuhttpd.mk                |  1 +
>  2 files changed, 31 insertions(+)
>  create mode 100644 package/libuhttpd/0003-CMakeLists.txt-add-BUILD_WERROR-option.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