[Buildroot] [PATCH 2/2] package/qt5/qt5xmlpatterns: fix build failure due to gcc bug 90620

Yann E. MORIN yann.morin.1998 at free.fr
Sun Sep 11 19:45:25 UTC 2022


Giulio, All,

On 2022-09-10 15:52 +0200, Giulio Benetti spake thusly:
> The qt5xmlpatterns package exhibits gcc bug 90620 when built for the
> Microblaze architecture with optimization enabled, which causes a build
> failure.
> 
> As done for other packages in Buildroot work around this gcc bug by
> setting optimization to -O0 if BR2_TOOLCHAIN_HAS_GCC_BUG_90620=y like we
> already do for BR2_TOOLCHAIN_HAS_GCC_BUG_85180=y.

I don't see the point of mentionning 85180 here, because it is not
already used for qt5xmlpatterns, or any other qt5 package, and there is
no reason to refer to it more than to e.g. 68485 that has the same
workaround. So I drop that part.

Applied to master, thanks.

Regards,
Yann E. MORIN.

> Fixes:
> http://autobuild.buildroot.net/results/346/346e6d502a8927c8e95eea156f5b2943a85d0a6b/
> 
> Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>
> ---
>  package/qt5/qt5xmlpatterns/qt5xmlpatterns.mk | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/package/qt5/qt5xmlpatterns/qt5xmlpatterns.mk b/package/qt5/qt5xmlpatterns/qt5xmlpatterns.mk
> index 3bb4ef74fd..6711e9bf70 100644
> --- a/package/qt5/qt5xmlpatterns/qt5xmlpatterns.mk
> +++ b/package/qt5/qt5xmlpatterns/qt5xmlpatterns.mk
> @@ -20,4 +20,8 @@ ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
>  QT5XMLPATTERNS_LICENSE += , BSD-3-Clause (examples)
>  endif
>  
> +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_90620),y)
> +QT5XMLPATTERNS_CONF_OPTS += "QMAKE_CXXFLAGS+=-O0"
> +endif
> +
>  $(eval $(qmake-package))
> -- 
> 2.34.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'



More information about the buildroot mailing list