[Buildroot] [PATCH] toolchain/custom: hide away incompatible gcc versions

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Sep 19 12:02:37 UTC 2021


Hello,

On Sun, 19 Sep 2021 13:45:47 +0200
"Yann E. MORIN" <yann.morin.1998 at free.fr> wrote:

> Some CPUs have a requirement on a minimal gcc version. Until now, ot was
> possible to use a custom external toolchain that has a gcc older than
> the requirement, which would lead to build failures (early!) during the
> build.
> 
> Propagate the gcc version requirement down to the external toolchain gcc
> version choice. By limiting the selection to acceptable gcc versions, we
> inform the user that its toolchain is too old, and if they decide to lie
> and select one of available version, we still check that when we extract
> and install their toolchain.

I think there was a reason to not have these for external toolchains:
they can use patched gcc versions that support newer CPU cores that are
normally not supported in the same gcc upstream version. It was for
example the case I believe at some point for Linaro toolchains.

This argument is not necessarily a strong disagreement against your
patch, I'm just stating why I believe we hadn't done that in the past.

BTW, has there been some recent issue that prompted you to write/submit
this change ?

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com


More information about the buildroot mailing list