public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_on_each_match_symbol: .text+0x6a8): relocation R_RISCV_PCREL_HI20 out of range: -524415 is not in [-524288, 524287]; references 'kallsyms_relative_base'
@ 2023-04-23 13:41 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-23 13:41 UTC (permalink / raw)
  Cc: oe-kbuild-all, llvm

CC: linux-kernel@vger.kernel.org
TO: Zhen Lei <thunder.leizhen@huawei.com>
CC: Luis Chamberlain <mcgrof@kernel.org>

Hi Zhen,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   622322f53c6d9ddd3c2a4aad852b3e1adbd56da7
commit: 4dc533e0f2c04174e1ae4aa98e7cffc1c04b9998 kallsyms: Add helper kallsyms_on_each_match_symbol()
date:   5 months ago
config: riscv-randconfig-r025-20230423 (https://download.01.org/0day-ci/archive/20230423/202304232126.5daENNtR-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 437b7602e4a998220871de78afcb020b9c14a661)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4dc533e0f2c04174e1ae4aa98e7cffc1c04b9998
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 4dc533e0f2c04174e1ae4aa98e7cffc1c04b9998
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304232126.5daENNtR-lkp@intel.com/

All errors (new ones prefixed by >>):

>> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_on_each_match_symbol: .text+0x6a8): relocation R_RISCV_PCREL_HI20 out of range: -524415 is not in [-524288, 524287]; references 'kallsyms_relative_base'
   >>> referenced by kallsyms.c:221 (kernel/kallsyms.c:221)
   >>> defined in vmlinux.a(kernel/kallsyms.o)
--
>> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_on_each_match_symbol: .text+0x6ba): relocation R_RISCV_PCREL_HI20 out of range: -524415 is not in [-524288, 524287]; references 'kallsyms_seqs_of_names'
   >>> referenced by kallsyms.c:221 (kernel/kallsyms.c:221)
   >>> defined in vmlinux.a(kernel/kallsyms.o)
--
>> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_on_each_match_symbol: .text+0x6c2): relocation R_RISCV_PCREL_HI20 out of range: -524415 is not in [-524288, 524287]; references 'kallsyms_offsets'
   >>> referenced by kallsyms.c:221 (kernel/kallsyms.c:221)
   >>> defined in vmlinux.a(kernel/kallsyms.o)
--
>> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_lookup_names: .text+0xca): relocation R_RISCV_PCREL_HI20 out of range: -524415 is not in [-524288, 524287]; references 'kallsyms_num_syms'
   >>> referenced by kallsyms.c:209 (kernel/kallsyms.c:209)
   >>> defined in vmlinux.a(kernel/kallsyms.o)
--
>> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_lookup_names: .text+0xe8): relocation R_RISCV_PCREL_HI20 out of range: -524415 is not in [-524288, 524287]; references 'kallsyms_seqs_of_names'
   >>> referenced by kallsyms.c:209 (kernel/kallsyms.c:209)
   >>> defined in vmlinux.a(kernel/kallsyms.o)
--
>> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_lookup_names: .text+0xf0): relocation R_RISCV_PCREL_HI20 out of range: -524415 is not in [-524288, 524287]; references 'kallsyms_markers'
   >>> referenced by kallsyms.c:209 (kernel/kallsyms.c:209)
   >>> defined in vmlinux.a(kernel/kallsyms.o)
--
>> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_lookup_names: .text+0xf8): relocation R_RISCV_PCREL_HI20 out of range: -524415 is not in [-524288, 524287]; references 'kallsyms_names'
   >>> referenced by kallsyms.c:209 (kernel/kallsyms.c:209)
   >>> defined in vmlinux.a(kernel/kallsyms.o)
--
>> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_lookup_names: .text+0x100): relocation R_RISCV_PCREL_HI20 out of range: -524415 is not in [-524288, 524287]; references 'kallsyms_token_index'
   >>> referenced by kallsyms.c:209 (kernel/kallsyms.c:209)
   >>> defined in vmlinux.a(kernel/kallsyms.o)
--
>> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_lookup_names: .text+0x1ba): relocation R_RISCV_PCREL_HI20 out of range: -524415 is not in [-524288, 524287]; references 'kallsyms_token_table'
   >>> referenced by kallsyms.c:209 (kernel/kallsyms.c:209)
   >>> defined in vmlinux.a(kernel/kallsyms.o)

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-23 13:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-23 13:41 ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_on_each_match_symbol: .text+0x6a8): relocation R_RISCV_PCREL_HI20 out of range: -524415 is not in [-524288, 524287]; references 'kallsyms_relative_base' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox