[Buildroot] [PATCH v2 1/3] toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_63261

Giulio Benetti giulio.benetti at micronovasrl.com
Wed May 29 14:44:40 UTC 2019


Got confused.

Il 29/05/2019 16:33, Giulio Benetti ha scritto:
> GCC hangs while building fxload for the Microblaze Arch using following
> defconfig:
> '
> BR2_microblazeel=y
> BR2_ENABLE_DEBUG=y
> BR2_OPTIMIZE_2=y
> BR2_KERNEL_HEADERS_5_0=y
> BR2_GCC_VERSION_7_X=y
> BR2_PACKAGE_FXLOAD=y
> '
> 
> Reported:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63261
> 
> Fixed on Gcc 8.x
> 
> Signed-off-by: Giulio Benetti <giulio.benetti at micronovasrl.com>
> ---
> Changes:
> V1->V2:
> * add 'depends on BR2_ENABLE_DEBUG' to BR2_TOOLCHAIN_HAS_GCC_BUG_63261
> 
>   toolchain/Config.in | 8 ++++++++
>   1 file changed, 8 insertions(+)
> 
> diff --git a/toolchain/Config.in b/toolchain/Config.in
> index 2d39ee4039..bf0c950c1f 100644
> --- a/toolchain/Config.in
> +++ b/toolchain/Config.in
> @@ -113,6 +113,14 @@ config BR2_TOOLCHAIN_SUPPORTS_VARIADIC_MI_THUNK
>   	depends on !BR2_or1k
>   	depends on !BR2_xtensa
>   
> +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63261. This bug no
> +# longer exists in gcc 8.x.
> +config BR2_TOOLCHAIN_HAS_GCC_BUG_63261
> +	bool
> +	default y if BR2_microblaze
> +	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_8
> +	depends on BR2_ENABLE_DEBUG

It fails building fxload without debug symbols, so previous patchset was 
almost correct, except for defconfig example where I set:
BR2_ENABLE_DEBUG=y

Need to send a v3 patchset with that correct.

Sorry for the noise

-- 
Giulio Benetti
CTO

MICRONOVA SRL
Sede: Via A. Niedda 3 - 35010 Vigonza (PD)
Tel. 049/8931563 - Fax 049/8931346
Cod.Fiscale - P.IVA 02663420285
Capitale Sociale € 26.000 i.v.
Iscritta al Reg. Imprese di Padova N. 02663420285
Numero R.E.A. 258642

>   # Prior to gcc 7.x, exception_ptr, nested_exception and future from
>   # libstdc++ would only be provided on architectures that support
>   # always lock-free atomic ints. See
> 



More information about the buildroot mailing list