Building legato 17.10 fails with latest GCC

I downloaded the latest stable release 17.10 as per the release info at: Releases - Legato Docs

but when I try to build it it fails: (not doing a build for the TARGET yet. BTW may target is WP77XX)

$ make

mkPatch.c:1412:55: error: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size between 4045 and 4063 [-Werror=format-truncation=]
1412 | “cat patch.%u.cwe.hdr patch.%u.cwe >%s/patch-%s.cwe”,
| ^~
1413 | pid, pid, CurrentWorkDir, targetPtr );

and may more such.

my GCC is 9.X

I found that these issues were fixed in GitHUB in May 2019

But these are not yet part of the STABLE release. Though there are may version available in GitHUB.

It does not make sense for me to go back to old GCC version.

So, what is the plan for the stable version release with this fix?

What would be my temporary approach for this issue? Can I use version 20.X etc from GitHUB?

Thanks in Advance.

Suggest you try with leaf tool and compile in leaf shell by “make wp77xx”