I’ve tried to build with the latest yocto branch “rocko”. and they rely on gcc 7.2
Kernel sources have failed to build with the following error messages:
kernel-source/arch/arm64/kernel/topology.c:114:40: error: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 3 [-Werror=format-truncation= | snprintf(name, sizeof(name), "cluster%d", i); kernel-source/arch/arm64/kernel/topology.c:114:32: note: directive argument in the range [0, 2147483647] | snprintf(name, sizeof(name), "cluster%d", i); kernel-source/arch/arm64/kernel/topology.c:114:3: note: 'snprintf' output between 9 and 18 bytes into a destination of size 10 | snprintf(name, sizeof(name), "cluster%d", i);
Is there any time plans to fix those kernel source for gcc 7.2. It’s better to not have patches and fix the upstream.