All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robbie Harwood <rharwood@redhat.com>
To: Daniel Kiper <dkiper@net-space.pl>
Cc: grub-devel@gnu.org, development@efficientek.com
Subject: Re: [PATCH v5 0/4] Update gnulib and drop some patches
Date: Tue, 22 Feb 2022 11:44:37 -0500	[thread overview]
Message-ID: <jlga6ei6ebu.fsf@redhat.com> (raw)
In-Reply-To: <20220222152122.enimol3yrdiufsl4@tomti.i.net-space.pl>

[-- Attachment #1: Type: text/plain, Size: 2113 bytes --]

Daniel Kiper <dkiper@net-space.pl> writes:

> On Wed, Feb 16, 2022 at 04:41:38PM -0500, Robbie Harwood wrote:
>> Changes in this version:
>>
>> - Include most _GL_* defines from gnulib.  Hopefully we do not need all their
>>   prereq logic as well, but I don't know what the compilers we support are, so
>>   please correct that if needed.
>>
>> - Avoid creating empty #defines.
>>
>> - Fix issues with building gnulib's allocation modules observed by Glenn.  The
>>   tree now builds warning-free with default cflags for me.
>
> ./configure --target=arm-linux-gnueabihf --with-platform=coreboot --enable-grub-mkfont ...
>
> make ...
>
> ... and you will get this... :-(
>
>   In file included from lib/gnulib/malloc/dynarray_resize.c:25:0:
>   lib/gnulib/malloc/dynarray_resize.c: In function ‘gl_dynarray_resize’:
>   ../grub-core/lib/gnulib/intprops.h:592:8: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits]
>      ((b) < 0 \
>           ^
>   ../grub-core/lib/gnulib/intprops.h:536:4: note: in expansion of macro ‘_GL_INT_MULTIPLY_RANGE_OVERFLOW’
>      (overflow (a, b, tmin, tmax) \
>       ^~~~~~~~
>   ../grub-core/lib/gnulib/intprops.h:479:8: note: in expansion of macro ‘_GL_INT_OP_CALC’
>         ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, st, smin, smax) \
>           ^~~~~~~~~~~~~~~
>   ../grub-core/lib/gnulib/intprops.h:494:7: note: in expansion of macro ‘_GL_INT_OP_WRAPV_SMALLISH’
>        ? _GL_INT_OP_WRAPV_SMALLISH (a, b, r, op, overflow, \
>          ^~~~~~~~~~~~~~~~~~~~~~~~~
>   ../grub-core/lib/gnulib/intprops.h:418:4: note: in expansion of macro ‘_GL_INT_OP_WRAPV’
>       _GL_INT_OP_WRAPV (a, b, r, *, _GL_INT_MULTIPLY_RANGE_OVERFLOW)
>       ^~~~~~~~~~~~~~~~
>   lib/gnulib/malloc/dynarray_resize.c:45:7: note: in expansion of macro ‘INT_MULTIPLY_WRAPV’
>      if (INT_MULTIPLY_WRAPV (size, element_size, &new_size_bytes))
>          ^~~~~~~~~~~~~~~~~~
>   ...

I don't get that, actually.  What OS/gcc?  It's fine with the gcc-11 I'm
using here.

Be well,
--Robbie

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

  reply	other threads:[~2022-02-22 16:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-16 21:41 [PATCH v5 0/4] Update gnulib and drop some patches Robbie Harwood
2022-02-16 21:41 ` [PATCH v5 1/4] Use visual indentation in config.h.in Robbie Harwood
2022-02-16 21:41 ` [PATCH v5 2/4] Drop gnulib fix-base64.patch Robbie Harwood
2022-02-16 21:41 ` [PATCH v5 3/4] Drop gnulib no-abort.patch Robbie Harwood
2022-02-16 21:41 ` [PATCH v5 4/4] Update gnulib version and drop most gnulib patches Robbie Harwood
2022-02-18 16:03 ` [PATCH v5 0/4] Update gnulib and drop some patches Glenn Washburn
2022-02-22 15:21 ` Daniel Kiper
2022-02-22 16:44   ` Robbie Harwood [this message]
2022-02-22 17:17     ` Daniel Kiper
2022-02-22 17:35       ` Robbie Harwood
2022-02-24 17:28         ` Daniel Kiper
2022-02-24 19:43           ` Robbie Harwood

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=jlga6ei6ebu.fsf@redhat.com \
    --to=rharwood@redhat.com \
    --cc=development@efficientek.com \
    --cc=dkiper@net-space.pl \
    --cc=grub-devel@gnu.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.