CC: linux-kernel(a)vger.kernel.org
TO: Kefeng Wang <wangkefeng.wang(a)huawei.com>
CC: Palmer Dabbelt <palmerdabbelt(a)google.com>
tree:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4333a9b0b67bb4e8bcd91bdd80da80b0ec151162
commit: 48084c3595cb7429f6ba734cfea1313573b9a7fa riscv: perf: RISCV_BASE_PMU should be
independent
date: 6 weeks ago
config: riscv-randconfig-r033-20200619 (attached as .config)
compiler: clang version 11.0.0 (
https://github.com/llvm/llvm-project
63700971ac9cdf198faa4a3a7c226fa579e49206)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
git checkout 48084c3595cb7429f6ba734cfea1313573b9a7fa
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld.lld: error: arch/riscv/kernel/head.S:154:(.head.text+0x0): relocation R_RISCV_ALIGN
requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.S:52:(.head.text+0xA): relocation R_RISCV_ALIGN
requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.S:52:(.head.text+0x40): relocation R_RISCV_ALIGN
requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.S:52:(.head.text+0x4A): relocation R_RISCV_ALIGN
requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.S:53:(.head.text+0x8A): relocation R_RISCV_ALIGN
requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.S:154:(.init.text+0x0): relocation R_RISCV_ALIGN
requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/built-in.a(kernel/entry.o):(.text+0x0): relocation
R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/entry.S:45:(.text+0x1EE): relocation R_RISCV_ALIGN
requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/entry.S:45:(.text+0x200): relocation R_RISCV_ALIGN
requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/entry.S:46:(.text+0x216): relocation R_RISCV_ALIGN
requires unimplemented linker relaxation; recompile with -mno-relax
> ld.lld: error: signal.c:(.fixup+0x0): relocation R_RISCV_ALIGN
requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld:
error: signal.c:(.fixup+0xE): relocation R_RISCV_ALIGN requires unimplemented linker
relaxation; recompile with -mno-relax
> ld.lld: error: signal.c:(.fixup+0x1C): relocation R_RISCV_ALIGN
requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld:
error: signal.c:(.fixup+0x2A): relocation R_RISCV_ALIGN requires unimplemented linker
relaxation; recompile with -mno-relax
ld.lld: error: signal.c:(.fixup+0x36): relocation R_RISCV_ALIGN requires unimplemented
linker relaxation; recompile with -mno-relax
ld.lld: error: signal.c:(.fixup+0x42): relocation R_RISCV_ALIGN requires unimplemented
linker relaxation; recompile with -mno-relax
ld.lld: error: signal.c:(.fixup+0x4E): relocation R_RISCV_ALIGN requires unimplemented
linker relaxation; recompile with -mno-relax
ld.lld: error: signal.c:(.fixup+0x5A): relocation R_RISCV_ALIGN requires unimplemented
linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/built-in.a(kernel/fpu.o):(.text+0x0): relocation
R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/fpu.S:31:(.text+0x8C): relocation R_RISCV_ALIGN
requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all
errors)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org