Re: kernel/kexec_file.o: failed: Cannot find symbol for section 10: .text.unlikely.

From: Greg Kroah-Hartman
Date: Sun Sep 05 2021 - 10:58:30 EST


On Sun, Sep 05, 2021 at 07:28:35PM +0530, Naresh Kamboju wrote:
> Following build errors noticed while building stable rc Linux 5.13.14
> with gcc-11 for powerpc architecture.
>
> # to reproduce this build locally:
> tuxmake --target-arch=powerpc --kconfig=defconfig --toolchain=gcc-11
> --wrapper=sccache --environment=KBUILD_BUILD_TIMESTAMP=@1630691419
> --environment=KBUILD_BUILD_USER=tuxmake
> --environment=KBUILD_BUILD_HOST=tuxmake
> --environment=SCCACHE_BUCKET=sccache.tuxbuild.com --runtime=podman
> --image=855116176053.dkr.ecr.us-east-1.amazonaws.com/tuxmake/powerpc_gcc-11
> config default kernel xipkernel modules dtbs dtbs-legacy debugkernel
> headers
>
> make --silent --keep-going --jobs=8
> O=/home/tuxbuild/.cache/tuxmake/builds/current ARCH=powerpc
> CROSS_COMPILE=powerpc64le-linux-gnu- 'CC=sccache
> powerpc64le-linux-gnu-gcc' 'HOSTCC=sccache gcc' defconfig
>
> make --silent --keep-going --jobs=8
> O=/home/tuxbuild/.cache/tuxmake/builds/current ARCH=powerpc
> CROSS_COMPILE=powerpc64le-linux-gnu- 'CC=sccache
> powerpc64le-linux-gnu-gcc' 'HOSTCC=sccache gcc'
> Cannot find symbol for section 10: .text.unlikely.
> kernel/kexec_file.o: failed
> make[2]: *** [/builds/linux/scripts/Makefile.build:273:
> kernel/kexec_file.o] Error 1
> make[2]: *** Deleting file 'kernel/kexec_file.o'
>
>
> Build config:
> https://builds.tuxbuild.com/1xdiIZVZuLCW3X1WO2YT6Fsl19w/config
>
> Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx>
>
> meta data:
> -----------
> git_repo: https://gitlab.com/Linaro/lkft/mirrors/stable/linux-stable-rc
> git_sha: a603798fb16829e56f80f57879611e67bba4910d
> git_short_log: a603798fb168 (\Linux 5.13.14\)
> kconfig: defconfig
> kernel_version: 5.13.14
> target_arch: powerpc
> toolchain: gcc-11
>
> steps to reproduce:
> https://builds.tuxbuild.com/1xdiIZVZuLCW3X1WO2YT6Fsl19w/tuxmake_reproducer.sh
>
> --
> Linaro LKFT
> https://lkft.linaro.org

Is this a regression? Has this compiler ever been able to build this
arch like this?

thanks,

greg k-h