This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC 2/2] Move gdb's xmalloc and friends to new file
- From: Pedro Alves <palves at redhat dot com>
- To: Alan Hayward <Alan dot Hayward at arm dot com>, Tom Tromey <tom at tromey dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>, nd <nd at arm dot com>
- Date: Tue, 16 Jul 2019 20:47:30 +0100
- Subject: Re: [RFC 2/2] Move gdb's xmalloc and friends to new file
- References: <20190530213046.20542-1-tom@tromey.com> <20190530213046.20542-3-tom@tromey.com> <FA1651F0-3805-4466-8246-6439983AF3B9@arm.com> <87a7egkszy.fsf@tromey.com> <c5c6bbd4-435b-9c3d-749f-952e95389537@redhat.com> <43591E27-A08D-4138-BB6E-C09BFEA03524@arm.com> <5B7E81C9-C5FC-47AA-AFE9-61031E9C276A@arm.com>
On 7/3/19 5:18 PM, Alan Hayward wrote:
>
>
>> On 18 Jun 2019, at 10:30, Alan Hayward <Alan.Hayward@arm.com> wrote:
>>
>>
>>
>>> On 17 Jun 2019, at 19:37, Pedro Alves <palves@redhat.com> wrote:
>>>
>>> On 6/17/19 6:43 PM, Tom Tromey wrote:
>>>>>>>>> "Alan" == Alan Hayward <Alan.Hayward@arm.com> writes:
>>>>
>>>> Alan> Looks like this breaks the building of alloc-ipa.o when using Make 3.81
>>>> Alan> I’ve tried this on a few different machines.
>>>>
>>>> Thanks.
>>>>
>>>> My first thought is that maybe we should simply declare 3.81
>>>> unsupported. It was apparently released in 2006:
>>>>
>>>> https://savannah.gnu.org/forum/forum.php?forum_id=4380
>>>>
>>>> ... so it is quite ancient.
>>>>
>>>> Is there some compelling reason to keep supporting it?
>>>>
>>>
>>> I think it depends more on what distributions ship than what
>>> the release date was. E.g., if you look around the last couple
>>> stable releases of popular stable distros (e.g., ubuntu, debian, fedora),
>>> which GNU Make version did they ship? If the GNU Make version shipped
>>> by default is not 4.x, is there an easy optional rpm/deb package
>>> for GNU Make 4.x available?
>>>
>>> This was the same kind of investigation that led to the GCC 4.8
>>> minimum requirement.
>>>
>>> Also, looking around the GCC compile farm machine (including the
>>> /opt/ dirs) for what is available may be a good hint/proxy for
>>> determining whether bumping the requirement could cause trouble
>>> for people.
>>
>>
>> Glibc requires 4.0:
>> https://www.sourceware.org/ml/libc-alpha/2018-08/msg00003.html
>> Changes to build and runtime requirements:
>> GNU make 4.0 or later is now required to build glibc.
>>
>>
>> GCC still allows 3.8:
>> https://gcc.gnu.org/install/prerequisites.html
>> GNU make version 3.80 (or later)
>>
>
> I’ve done a little more digging into as many machines as I could find:
>
> Ubuntu 16.04, 18.04 - make 4.1
> Ubuntu 14.04 - make 4.0
> Fedora 27 - make 4.2.1
> Redhat 7.5, Centos 7.5, Centos 6 - make 3.82
> Redhat 5.8, 6.9 - make 3.81
> OpenSuse 42.2 - 4.2.1
>
> Also: https://software.opensuse.org/package/make confirms a mix of 4.21 and
> 3.82 as the versions in various latest distros.
>
> I’ve tried building using make 3.82, and it works for me.
> Make 3.82 was released in 2010.
>
> Any objection upping the minimum make version to 3.82 ?
>
Fine with me as well. Thanks for digging into all those machines.
Thanks,
Pedro Alves