grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v8 0/6] Update gnulib version and drop most gnulib patches


From: Daniel Kiper
Subject: Re: [PATCH v8 0/6] Update gnulib version and drop most gnulib patches
Date: Fri, 11 Mar 2022 00:44:03 +0100
User-agent: NeoMutt/20170113 (1.7.2)

On Wed, Mar 09, 2022 at 02:01:16PM -0600, Glenn Washburn wrote:
> On Wed, 9 Mar 2022 16:42:43 +0100
> Daniel Kiper <dkiper@net-space.pl> wrote:
>
> > On Mon, Mar 07, 2022 at 02:15:49AM -0600, Glenn Washburn wrote:
> > > On Fri, 4 Mar 2022 18:01:10 -0600
> > > Glenn Washburn <development@efficientek.com> wrote:
> > >
> > > > On Wed,  2 Mar 2022 14:08:23 -0500
> > > > Robbie Harwood <rharwood@redhat.com> wrote:
> > > >
> > > > > Changes this version:
> > > > >
> > > > > - Reorder last two commits so that warning fixes come after the 
> > > > > change that
> > > > >   introduces them.
> > > > > - Fix comment formatting to comply with grub2 style.
> > > >
> > > > Either I missed it before or something changed. But I'm getting this
> > > > build error now for x86_64-efi, and I'm not getting it without this 
> > > > patch
> > > > series.
> > > >
> > > > In file included from 
> > > > /root/grub-tests.update-gnulib/grub/include/grub/disk.h:31
> > > > ,
> > > >                  from 
> > > > /root/grub-tests.update-gnulib/grub/include/grub/file.h:26
> > > > ,
> > > >                  from 
> > > > /root/grub-tests.update-gnulib/grub/include/grub/loader.h:
> > > > 23,
> > > >                  from 
> > > > /root/grub-tests.update-gnulib/grub/grub-core/loader/i386/
> > > > bsd.c:19:
> > > > /root/grub-tests.update-gnulib/grub/grub-core/loader/i386/bsd.c: In 
> > > > function ‘gr
> > > > ub_freebsd_add_meta_module’:
> > > > /root/grub-tests.update-gnulib/grub/include/grub/misc.h:71:10: error: 
> > > > ‘ptr’ may be used uninitialized in this function 
> > > > [-Werror=maybe-uninitialized]
> > > >    71 |   return grub_memmove (dest, src, n);
> > > >       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > > /root/grub-tests.update-gnulib/grub/grub-core/loader/i386/bsd.c:266:9: 
> > > > note: ‘ptr’ was declared here
> > > >   266 |   void *ptr;
> > > >       |         ^~~
> > > >
> > > > Reviewing the code it doesn't look like ptr can actually be used
> > > > uninitialized, so it seems like GCC 10.1.0 isn't smart enough to figure
> > > > that out. Initializing to NULL fixes the build issue.
> > >
> > > For completeness, I just realized that I wasn't using the compiler I
> > > thought I was using. Turns out this issue is with x86_64 Debian 11's
> > > GCC, which is 10.2.1. I don't think this is relevant to the issue, but
> > > may help in reproducing if needed.
> > >
> > > After some more testing, I've narrowed it down to passing -O2 to gcc,
> > > without which the series builds fine.
> >
> > Thanks for the report. I am just running build tests for all architectures
> > and platforms with GCC 10/11. I have spotted and fixed 2 additional 
> > problems.
> > I hope I will post fixes for all of them tomorrow.
>
> They are not, build errors, are they? If so, I'm curious what targets

Yep, they are. I have sent fixes. You are CC-ed.

Daniel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]