mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Leizhen (ThunderTown)" <thunder.leizhen@huaweicloud.com>
To: kernel test robot <lkp@intel.com>, Zhen Lei <thunder.leizhen@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Luis Chamberlain <mcgrof@kernel.org>
Subject: Re: ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_lookup_name: .text+0x90): relocation R_RISCV_PCREL_HI20 out of range: -524416 is not in [-524288, 524287]; references kallsyms_seqs_of_names
Date: Tue, 20 Feb 2024 20:27:15 +0800	[thread overview]
Message-ID: <efdec661-628f-2f6e-cd3e-c66a915d3aa2@huaweicloud.com> (raw)
In-Reply-To: <bd30f81c-9e6a-578e-d496-6b7f355a3b79@huaweicloud.com>



On 2024/2/18 10:08, Leizhen (ThunderTown) wrote:
> 
> 
> On 2024/2/6 13:19, kernel test robot wrote:
>> Hi Zhen,
>>
>> FYI, the error/warning still remains.
> 
> I'm trying to reproduce it. But I'm having a little trouble getting
> the environment ready.

Sorry, I tried but it was not reproduced. I made the following two changes
to the steps in the 'reproduce' link:
1. Put linux and lkp-tests in two directories of the same level. Because:
   $ git fetch --no-tags linus master
   error: RPC failed; HTTP 403 curl 22 The requested URL returned error: 403
   fatal: error reading section header 'acknowledgments'
2. Compiler was specified by following the prompts.
   COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang-17 ~/lkp-tests/kbuild/make.cross W=1 O=build_dir ARCH=riscv olddefconfig
   COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang-17 ~/lkp-tests/kbuild/make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Image is finally generated, so there should be no problem with the above steps being adjusted:
$ ls build_dir/arch/riscv/boot/
dts  Image  loader  loader.bin  loader.lds  loader.o

By the way, all the symbols to be reported "relocation R_RISCV_PCREL_HI20 out of range" is
generated by the tool kallsyms (scripts/kallsyms.c). So, it seems that the tool kallsyms
have not been executed. And this error is not caused by my patches.

> 
>>
>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>> head:   54be6c6c5ae8e0d93a6c4641cb7528eb0b6ba478
>> commit: 60443c88f3a89fd303a9e8c0e84895910675c316 kallsyms: Improve the performance of kallsyms_lookup_name()
>> date:   1 year, 3 months ago
>> config: riscv-randconfig-r064-20240120 (https://download.01.org/0day-ci/archive/20240206/202402061302.HkByW9x0-lkp@intel.com/config)
>> compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
>> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240206/202402061302.HkByW9x0-lkp@intel.com/reproduce)
>>
>> If you fix the issue in a separate patch/commit (i.e. not just a new version of
>> the same patch/commit), kindly add following tags
>> | Reported-by: kernel test robot <lkp@intel.com>
>> | Closes: https://lore.kernel.org/oe-kbuild-all/202402061302.HkByW9x0-lkp@intel.com/
>>
>> All errors (new ones prefixed by >>):
>>
>>>> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_lookup_name: .text+0x90): relocation R_RISCV_PCREL_HI20 out of range: -524416 is not in [-524288, 524287]; references kallsyms_seqs_of_names
>>    >>> referenced by kallsyms.c
>>    >>> defined in vmlinux.a(kernel/kallsyms.o)
>>
> 

-- 
Regards,
  Zhen Lei


  reply	other threads:[~2024-02-20 12:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-06  5:19 kernel test robot
2024-02-18  2:08 ` Leizhen (ThunderTown)
2024-02-20 12:27   ` Leizhen (ThunderTown) [this message]
2024-03-12  5:53     ` Yujie Liu
2024-03-13  2:22       ` Leizhen (ThunderTown)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=efdec661-628f-2f6e-cd3e-c66a915d3aa2@huaweicloud.com \
    --to=thunder.leizhen@huaweicloud.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=mcgrof@kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=thunder.leizhen@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®