[Buildroot] [PATCH 3/3] package/lmbench: fix build failure due to gcc bug 97208

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sat Aug 14 13:51:42 UTC 2021


Hello Giulio,

On Fri, 13 Aug 2021 23:37:45 +0200
Giulio Benetti <giulio.benetti at benettiengineering.com> wrote:

> The lmbench package exhibits gcc bug 97208 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_97208=y..
> 
> Fixes:
> http://autobuild.buildroot.net/results/ae1/ae1e4d61ed367c6cb64442c60d98882cc7985346/
> 
> Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>

Are we sure the gcc bug is the same? According to the word-around in
toolchain wrapper, disabling the  -ftree-loop-distribute-patterns is
enough... but not for lmbench ?

What specifically tells us that the lmbench issue is the same as the
one we worked-around with -fnotree-loop-distribute-patterns in other
packages ?

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


More information about the buildroot mailing list