Re: [RFT][PATCH v3] gcc: upgrade 11.2 -> current gcc-12 snapshot


Khem Raj
 

On Sat, Apr 16, 2022 at 1:07 AM Richard Purdie
<richard.purdie@...> wrote:

On Fri, 2022-04-15 at 10:38 -0700, Khem Raj wrote:
From: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@...>

- gcc 12 is in RC stages.
- Add patch to re-shuffle include of sched.h to fix build on musl

Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@...>
Signed-off-by: Khem Raj <raj.khem@...>
---
v3
- Switch to own snapshot for quick turnarounds than waiting for a
weekly snapshot
- Add a fix for gcc target build on musl
- Fixed gcc for kernel build failures on arm/x86_64
- Fixed gcc for ccache build failure
I ran this through the autobuilder as requested as it means we have a chance to
get things fixed upstream before gcc 12 is released:

https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/3535

We see failures in:

edgerouter/edgerouter-alt in linux-yocto 5.15/5.10:
https://autobuilder.yoctoproject.org/typhoon/#/builders/62/builds/5078
https://autobuilder.yoctoproject.org/typhoon/#/builders/111/builds/2965
these are fixed with
https://github.com/torvalds/linux/commit/a431dbbc540532b7465eae4fc8b56a85a9fc7d17
and I see its already backported to 5.15 branch. so whenever Bruce
bumps to latest tip of linux-5.15 we should be
getting this fixed.

meta-arm in linux-yocto 5.15:
https://autobuilder.yoctoproject.org/typhoon/#/builders/113/builds/2307
this can be addressed by disabling -Werror=stringop-overread but
perhaps better to change code to fix it.

meta-intel in intel-media-driver:
https://autobuilder.yoctoproject.org/typhoon/#/builders/100/builds/2770
error: the address of '_CODEC_VP8_PIC_PARAMS::ucMvUpdateProb' will
never be NULL [-Werror=address]
| 238 | if (codecPicParams->ucMvUpdateProb[0] && picParam->mv_probs[0])

perhaps fixable by not checking the redundant
qemuppc/qemuppc-alt in linux-yocto 5.15/5.10:
https://autobuilder.yoctoproject.org/typhoon/#/builders/63/builds/5033
https://autobuilder.yoctoproject.org/typhoon/#/builders/107/builds/2916
include/linux/printk.h:450:44: error: using a dangling pointer to
'__str' [-Werror=dangling-pointer=]
this needs fixing too. I see it on ppc64 as well.

Four oe-selftest failures due to missing maintainer entries (easy fix)
I will add it in v4.


A weird oe-selftest prservice.BitbakePrTests.test_import_export_override_db:
https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/3409/steps/14/logs/stdio

The latter is one of our infamous intermittent issues and likely not gcc 12
"""
Parsing recipes...ERROR: ParseError in None: Not all recipes parsed, parser
thread killed/died? Exiting.
ERROR: Parsing halted due to errors, see error messages above
"""

So basically you have the intel-media-driver failure in meta-intel and a number
of kernel issues. I've cc'd a few of the maintainers just so they're aware of
the status, I appreciate we'd wait for the mainline kernel to resolve things.

Cheers,

Richard




Join openembedded-core@lists.openembedded.org to automatically receive all group messages.