Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Cc: Jianhui Zhao <zhaojh329@gmail.com>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/libuhttpd: disable -Werror
Date: Fri, 10 May 2024 22:52:13 +0200	[thread overview]
Message-ID: <20240510225213.3eded763@windsurf> (raw)
In-Reply-To: <20240310163150.4373-1-fontaine.fabrice@gmail.com>

On Sun, 10 Mar 2024 17:31:50 +0100
Fabrice Fontaine <fontaine.fabrice@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@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
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2024-05-10 20:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-10 16:31 [Buildroot] [PATCH 1/1] package/libuhttpd: disable -Werror Fabrice Fontaine
2024-05-10 20:52 ` Thomas Petazzoni via buildroot [this message]
2024-06-08  7:10 ` Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240510225213.3eded763@windsurf \
    --to=buildroot@buildroot.org \
    --cc=fontaine.fabrice@gmail.com \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=zhaojh329@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox