LKFT build plans updated with toolchain gcc-13 and here is the report.
While building Linux stable rc 4.19 i386 with gcc-13 failed due to following warnings / errors.
make --silent --keep-going --jobs=8 O=/home/tuxbuild/.cache/tuxmake/builds/1/build ARCH=i386 SRCARCH=x86 CROSS_COMPILE=i686-linux-gnu- 'CC=sccache i686-linux-gnu-gcc' 'HOSTCC=sccache gcc' kernel/profile.c: In function 'profile_dead_cpu': kernel/profile.c:346:27: warning: the comparison will always evaluate as 'true' for the address of 'prof_cpu_mask' will never be NULL [-Waddress] 346 | if (prof_cpu_mask != NULL) | ^~ kernel/profile.c:49:22: note: 'prof_cpu_mask' declared here 49 | static cpumask_var_t prof_cpu_mask; | ^~~~~~~~~~~~~ kernel/profile.c: In function 'profile_online_cpu': kernel/profile.c:383:27: warning: the comparison will always evaluate as 'true' for the address of 'prof_cpu_mask' will never be NULL [-Waddress] 383 | if (prof_cpu_mask != NULL) | ^~ kernel/profile.c:49:22: note: 'prof_cpu_mask' declared here 49 | static cpumask_var_t prof_cpu_mask; | ^~~~~~~~~~~~~ kernel/profile.c: In function 'profile_tick': kernel/profile.c:413:47: warning: the comparison will always evaluate as 'true' for the address of 'prof_cpu_mask' will never be NULL [-Waddress] 413 | if (!user_mode(regs) && prof_cpu_mask != NULL && | ^~ kernel/profile.c:49:22: note: 'prof_cpu_mask' declared here 49 | static cpumask_var_t prof_cpu_mask; | ^~~~~~~~~~~~~ In file included from include/linux/export.h:45, from include/linux/linkage.h:7, from include/linux/kernel.h:7, from drivers/ata/libahci.c:35: drivers/ata/libahci.c: In function 'ahci_led_store': include/linux/compiler.h:418:45: error: call to '__compiletime_assert_108' declared with attribute error: BUILD_BUG_ON failed: sizeof(_s) > sizeof(long) 418 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler.h:399:25: note: in definition of macro '__compiletime_assert' 399 | prefix ## suffix(); \ | ^~~~~~
Build links, - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-4.19.y/build/v4.19.... - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-4.19.y/build/v4.19....
Steps to reproduce: tuxmake --runtime podman --target-arch i386 --toolchain gcc-13 --kconfig defconfig - https://storage.tuxsuite.com/public/linaro/lkft/builds/2TiUIlGFjnjPBfuTT62nR...
-- Linaro LKFT https://lkft.linaro.org
On Wed, Aug 09, 2023 at 12:44:00PM +0530, Naresh Kamboju wrote:
LKFT build plans updated with toolchain gcc-13 and here is the report.
While building Linux stable rc 4.19 i386 with gcc-13 failed due to following warnings / errors.
I'm amazed that this is all the issues you found, I gave up due to all of the build issues.
If you care about 4.19 (and any other kernel tree) with newer compilers, I will gladly take patches/backports for these issues. But to just report them like this isn't going to get very far as I doubt anyone who actually uses 4.19 will ever use gcc-13.
thanks,
greg k-h
On Wed, 9 Aug 2023 at 12:58, Greg Kroah-Hartman gregkh@linuxfoundation.org wrote:
On Wed, Aug 09, 2023 at 12:44:00PM +0530, Naresh Kamboju wrote:
LKFT build plans updated with toolchain gcc-13 and here is the report.
While building Linux stable rc 4.19 i386 with gcc-13 failed due to following warnings / errors.
I'm amazed that this is all the issues you found, I gave up due to all of the build issues.
If you care about 4.19 (and any other kernel tree) with newer compilers, I will gladly take patches/backports for these issues. But to just report them like this isn't going to get very far as I doubt anyone who actually uses 4.19 will ever use gcc-13.
I totally agree with this old tree and the latest toolchains builds are not a great combination. I will not send any reports like this in the future.
- Naresh