Re: gdb build broken in sim with -Wall -Werror

Mike Frysinger via Gdb-patches
2021-05-18T15:12:32Z

On 17 May 2021 17:39, Tom de Vries wrote:
> On 5/17/21 5:39 PM, Tom de Vries wrote:
> > On 5/17/21 5:02 PM, Mike Frysinger wrote:
> >> On 17 May 2021 09:02, Tom de Vries wrote:
> >>> this morning I tried to rebuild gdb from trunk @ f4fdd84587e (with
> >>> --enable-werror and CFLAGS="-O0 -g -Wall", as usual)
> >>
> >> the build will add appropriate warning flags for you. you shouldn't be
> >> forcing your own set into the mix.
> >>
> >
> > True. This configuration did build before though, so it actually seems
> > to work quite well.
> >
> >>> and ran into build errors in sim.
> >>>
> >>> Specifically:
> >>
> >> these snippets are much too truncated to be actionable.
> >
> > I'll send you the build log off-list.
>
> There you go.

it's a bit hard to read ... you should pass -O to make to avoid all of
the intermingling of jobs.

it looks like all the errors are coming from sim/ppc/. it's built with
-Werror now, but not -Wall, so that's why it's not failing in general.
prob not too hard to cleanup & add -Wall, but i'm not looking into that
atm.
-mike