[next] aarch64-linux-gnu-ld: Unexpected GOT/PLT entries detected!

From: Naresh Kamboju
Date: Fri Apr 16 2021 - 11:18:25 EST


The arm64 allnoconfig build failed on linux -next tag 20210416

kernel/sched/fair.c:8428:13: warning: 'update_nohz_stats' defined but
not used [-Wunused-function]
static bool update_nohz_stats(struct rq *rq)
^~~~~~~~~~~~~~~~~
aarch64-linux-gnu-ld: Unexpected GOT/PLT entries detected!
aarch64-linux-gnu-ld: Unexpected run-time procedure linkages detected!
aarch64-linux-gnu-ld: arch/arm64/kernel/fpsimd.o: in function
`task_fpsimd_load':
fpsimd.c:(.text+0x144): undefined reference to `sve_load_state'
aarch64-linux-gnu-ld: arch/arm64/kernel/fpsimd.o: in function `fpsimd_save':
fpsimd.c:(.text+0x1f8): undefined reference to `sve_get_vl'
aarch64-linux-gnu-ld: fpsimd.c:(.text+0x230): undefined reference to
`sve_save_state'
make[1]: *** [/builds/linux/Makefile:1277: vmlinux] Error 1
make[1]: Target '__all' not remade because of errors.
make: *** [Makefile:222: __sub-make] Error 2
make: Target '__all' not remade because of errors.

Reported-by: Naresh Kamboju <naresh.kamboju@xxxxxxxxxx>

steps to reproduce:
--------------------
# TuxMake is a command line tool and Python library that provides
# portable and repeatable Linux kernel builds across a variety of
# architectures, toolchains, kernel configurations, and make targets.
#
# TuxMake supports the concept of runtimes.
# See https://docs.tuxmake.org/runtimes/, for that to work it requires
# that you install podman or docker on your system.
#
# To install tuxmake on your system globally:
# sudo pip3 install -U tuxmake
#
# See https://docs.tuxmake.org/ for complete documentation.


tuxmake --runtime podman --target-arch arm64 --toolchain gcc-8
--kconfig allnoconfig

metadata:
---------
git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
git_describe: next-20210415
kconfig: allnoconfig
target_arch: arm64
toolchain: gcc-8


--
Linaro LKFT
https://lkft.linaro.org