[Buildroot] [PATCH] package/gcc: 4.8.x to 5.x: backport a fix for building gcc with gcc-6

Samuel Martin s.martin49 at gmail.com
Sun May 15 20:01:12 UTC 2016


On Sun, May 15, 2016 at 9:17 PM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Hello,
>
> On Sun, 15 May 2016 07:47:40 +0200, Samuel Martin wrote:
>> When the host system compiler is gcc-6, this patch is needed to build
>> Buildroot toolchain and cleanly apply on gcc version 4.8.x to 5.x (not
>> needed for 4.7.x series).
>>
>> Signed-off-by: Samuel Martin <s.martin49 at gmail.com>
>> ---
>>  package/gcc/4.8.5/130-build_gcc-5_with_gcc-6.patch | 153 +++++++++++++++++++++
>>  package/gcc/4.9.3/130-build_gcc-5_with_gcc-6.patch | 153 +++++++++++++++++++++
>
> Isn't it a bit odd to have a patch named "build_gcc-5_with_gcc-6" when
> in fact you're fixing gcc 4.x ?

Well, I just imported the patch from crosstool-ng without renaming it,
but I did run the build test for the 6 versions of gcc Buildroot
currently supports:
- 4.7.4 (deprecated): patch not needed
- 4.8.5: patch needed
- 4.9.3: patch needed
- 5.3.0: patch needed
- 6.1.0: patch needed
- arc-2015.12 (based on gcc-4.8.5): patch needed

If you prefer, I can rename them, then repost the patch...

>
>>  package/gcc/5.3.0/130-build_gcc-5_with_gcc-6.patch | 153 +++++++++++++++++++++
>>  .../arc-2015.12/130-build_gcc-5_with_gcc-6.patch   | 153 +++++++++++++++++++++
>
> This one is also based on 4.8 as far as I know.
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com

Regards,

-- 
Samuel



More information about the buildroot mailing list