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

Tom de Vries
2021-05-18T15:26:24Z

On 5/18/21 5:12 PM, Mike Frysinger wrote:
> 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.
>

Yeah, unfortunately I'm keeping building with make 3.81 alive, and
consequently I don't have that available.

> 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.

Ack, understood.

Thanks,
- Tom