* [linux-next:master 14270/15002] ld.lld: error: init/built-in.a(initramfs.o):(function wait_for_initramfs: .text+0x24): relocation R_RISCV_HI20 out of range: 530109 is not in [-524288, 524287]; references initramfs_cookie
@ 2022-04-02 22:08 kernel test robot
2022-04-03 9:40 ` Christophe Leroy
0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2022-04-02 22:08 UTC (permalink / raw)
To: Christophe Leroy
Cc: llvm, kbuild-all, Linux Memory Management List, Michael Ellerman
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: e5071887cd2296a7704dbcd10c1cedf0f11cdbd5
commit: af41d2866f7d75bbb38d487f6ec7770425d70e45 [14270/15002] powerpc/64: Fix build failure with allyesconfig in book3s_64_entry.S
config: riscv-randconfig-r022-20220403 (https://download.01.org/0day-ci/archive/20220403/202204030606.gML0qvDb-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c4a1b07d0979e7ff20d7d541af666d822d66b566)
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/next/linux-next.git/commit/?id=af41d2866f7d75bbb38d487f6ec7770425d70e45
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout af41d2866f7d75bbb38d487f6ec7770425d70e45
# save the config file to linux build tree
mkdir build_dir
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 as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> ld.lld: error: init/built-in.a(initramfs.o):(function wait_for_initramfs: .text+0x24): relocation R_RISCV_HI20 out of range: 530109 is not in [-524288, 524287]; references initramfs_cookie
>>> referenced by initramfs.c
>>> defined in init/built-in.a(initramfs.o)
--
>> ld.lld: error: arch/riscv/built-in.a(kernel/cpu.o):(function riscv_of_processor_hartid: .text+0x2c): relocation R_RISCV_HI20 out of range: 530099 is not in [-524288, 524287]; references .LCPI0_0
>>> referenced by cpu.c
>>> defined in arch/riscv/built-in.a(kernel/cpu.o)
--
>> ld.lld: error: arch/riscv/built-in.a(kernel/cpu.o):(function riscv_of_parent_hartid: .text+0x160): relocation R_RISCV_HI20 out of range: 529283 is not in [-524288, 524287]; references .L.str
>>> referenced by cpu.c
>>> defined in arch/riscv/built-in.a(kernel/cpu.o)
--
>> ld.lld: error: arch/riscv/built-in.a(kernel/cpu.o):(function riscv_of_parent_hartid: .text+0x19c): relocation R_RISCV_HI20 out of range: 530099 is not in [-524288, 524287]; references .LCPI1_0
>>> referenced by cpu.c
>>> defined in arch/riscv/built-in.a(kernel/cpu.o)
--
>> ld.lld: error: init/built-in.a(initramfs.o):(function wait_for_initramfs: .text+0x3c): relocation R_RISCV_HI20 out of range: 529437 is not in [-524288, 524287]; references initramfs_domain
>>> referenced by initramfs.c
>>> defined in init/built-in.a(initramfs.o)
--
>> ld.lld: error: init/built-in.a(initramfs.o):(function panic_show_mem: .text+0xa8): relocation R_RISCV_HI20 out of range: 530099 is not in [-524288, 524287]; references .LCPI8_0
>>> referenced by initramfs.c
>>> defined in init/built-in.a(initramfs.o)
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-next:master 14270/15002] ld.lld: error: init/built-in.a(initramfs.o):(function wait_for_initramfs: .text+0x24): relocation R_RISCV_HI20 out of range: 530109 is not in [-524288, 524287]; references initramfs_cookie
2022-04-02 22:08 [linux-next:master 14270/15002] ld.lld: error: init/built-in.a(initramfs.o):(function wait_for_initramfs: .text+0x24): relocation R_RISCV_HI20 out of range: 530109 is not in [-524288, 524287]; references initramfs_cookie kernel test robot
@ 2022-04-03 9:40 ` Christophe Leroy
2022-04-03 13:48 ` [kbuild-all] " Chen, Rong A
0 siblings, 1 reply; 3+ messages in thread
From: Christophe Leroy @ 2022-04-03 9:40 UTC (permalink / raw)
To: kernel test robot
Cc: llvm, kbuild-all, Linux Memory Management List, Michael Ellerman
Le 03/04/2022 à 00:08, kernel test robot a écrit :
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head: e5071887cd2296a7704dbcd10c1cedf0f11cdbd5
> commit: af41d2866f7d75bbb38d487f6ec7770425d70e45 [14270/15002] powerpc/64: Fix build failure with allyesconfig in book3s_64_entry.S
> config: riscv-randconfig-r022-20220403 (https://download.01.org/0day-ci/archive/20220403/202204030606.gML0qvDb-lkp@intel.com/config)
> compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c4a1b07d0979e7ff20d7d541af666d822d66b566)
> 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/next/linux-next.git/commit/?id=af41d2866f7d75bbb38d487f6ec7770425d70e45
> git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> git fetch --no-tags linux-next master
> git checkout af41d2866f7d75bbb38d487f6ec7770425d70e45
> # save the config file to linux build tree
> mkdir build_dir
> 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 as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
I can't understand how a change in assembly in POWERPC would impact a
RISCV build.
There must be something wrong with the robot.
Christophe
>
> All errors (new ones prefixed by >>):
>
>>> ld.lld: error: init/built-in.a(initramfs.o):(function wait_for_initramfs: .text+0x24): relocation R_RISCV_HI20 out of range: 530109 is not in [-524288, 524287]; references initramfs_cookie
> >>> referenced by initramfs.c
> >>> defined in init/built-in.a(initramfs.o)
> --
>>> ld.lld: error: arch/riscv/built-in.a(kernel/cpu.o):(function riscv_of_processor_hartid: .text+0x2c): relocation R_RISCV_HI20 out of range: 530099 is not in [-524288, 524287]; references .LCPI0_0
> >>> referenced by cpu.c
> >>> defined in arch/riscv/built-in.a(kernel/cpu.o)
> --
>>> ld.lld: error: arch/riscv/built-in.a(kernel/cpu.o):(function riscv_of_parent_hartid: .text+0x160): relocation R_RISCV_HI20 out of range: 529283 is not in [-524288, 524287]; references .L.str
> >>> referenced by cpu.c
> >>> defined in arch/riscv/built-in.a(kernel/cpu.o)
> --
>>> ld.lld: error: arch/riscv/built-in.a(kernel/cpu.o):(function riscv_of_parent_hartid: .text+0x19c): relocation R_RISCV_HI20 out of range: 530099 is not in [-524288, 524287]; references .LCPI1_0
> >>> referenced by cpu.c
> >>> defined in arch/riscv/built-in.a(kernel/cpu.o)
> --
>>> ld.lld: error: init/built-in.a(initramfs.o):(function wait_for_initramfs: .text+0x3c): relocation R_RISCV_HI20 out of range: 529437 is not in [-524288, 524287]; references initramfs_domain
> >>> referenced by initramfs.c
> >>> defined in init/built-in.a(initramfs.o)
> --
>>> ld.lld: error: init/built-in.a(initramfs.o):(function panic_show_mem: .text+0xa8): relocation R_RISCV_HI20 out of range: 530099 is not in [-524288, 524287]; references .LCPI8_0
> >>> referenced by initramfs.c
> >>> defined in init/built-in.a(initramfs.o)
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [kbuild-all] Re: [linux-next:master 14270/15002] ld.lld: error: init/built-in.a(initramfs.o):(function wait_for_initramfs: .text+0x24): relocation R_RISCV_HI20 out of range: 530109 is not in [-524288, 524287]; references initramfs_cookie
2022-04-03 9:40 ` Christophe Leroy
@ 2022-04-03 13:48 ` Chen, Rong A
0 siblings, 0 replies; 3+ messages in thread
From: Chen, Rong A @ 2022-04-03 13:48 UTC (permalink / raw)
To: Christophe Leroy, kernel test robot
Cc: llvm, kbuild-all, Linux Memory Management List, Michael Ellerman
On 4/3/2022 5:40 PM, Christophe Leroy wrote:
>
>
> Le 03/04/2022 à 00:08, kernel test robot a écrit :
>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
>> head: e5071887cd2296a7704dbcd10c1cedf0f11cdbd5
>> commit: af41d2866f7d75bbb38d487f6ec7770425d70e45 [14270/15002] powerpc/64: Fix build failure with allyesconfig in book3s_64_entry.S
>> config: riscv-randconfig-r022-20220403 (https://download.01.org/0day-ci/archive/20220403/202204030606.gML0qvDb-lkp@intel.com/config)
>> compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c4a1b07d0979e7ff20d7d541af666d822d66b566)
>> 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/next/linux-next.git/commit/?id=af41d2866f7d75bbb38d487f6ec7770425d70e45
>> git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
>> git fetch --no-tags linux-next master
>> git checkout af41d2866f7d75bbb38d487f6ec7770425d70e45
>> # save the config file to linux build tree
>> mkdir build_dir
>> 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 as appropriate
>> Reported-by: kernel test robot <lkp@intel.com>
>
> I can't understand how a change in assembly in POWERPC would impact a
Hi Christophe,
Thanks for the feedback, we'll add the commit to ignore list.
> RISCV build.
>
> There must be something wrong with the robot.
I checked the errors in parent commit, they are different with the
errors in the reports:
errors in parent:
ld.lld: error: init/built-in.a(calibrate.o):(function
calibrate_delay: .text+0xc4): relocation R_RISCV_HI20 out of range:
531524 is not in [-524288, 524287]; references __per_cpu_offset
>>> referenced by calibrate.c
>>> defined in mm/built-in.a(percpu.o)
ld.lld: error: init/built-in.a(calibrate.o):(function
calibrate_delay: .text+0xd8): relocation R_RISCV_HI20 out of range:
528123 is not in [-524288, 524287]; references cpu_loops_per_jiffy
>>> referenced by calibrate.c
>>> defined in init/built-in.a(calibrate.o)
ld.lld: error: init/built-in.a(calibrate.o):(function
calibrate_delay: .text+0x104): relocation R_RISCV_HI20 out of range:
530109 is not in [-524288, 524287]; references preset_lpj
>>> referenced by calibrate.c
>>> defined in init/built-in.a(calibrate.o)
The robot only can find the commit, but can't confirm these new errors
are introduced by the commit.
Best Regards,
Rong Chen
>
> Christophe
>
>
>>
>> All errors (new ones prefixed by >>):
>>
>>>> ld.lld: error: init/built-in.a(initramfs.o):(function wait_for_initramfs: .text+0x24): relocation R_RISCV_HI20 out of range: 530109 is not in [-524288, 524287]; references initramfs_cookie
>> >>> referenced by initramfs.c
>> >>> defined in init/built-in.a(initramfs.o)
>> --
>>>> ld.lld: error: arch/riscv/built-in.a(kernel/cpu.o):(function riscv_of_processor_hartid: .text+0x2c): relocation R_RISCV_HI20 out of range: 530099 is not in [-524288, 524287]; references .LCPI0_0
>> >>> referenced by cpu.c
>> >>> defined in arch/riscv/built-in.a(kernel/cpu.o)
>> --
>>>> ld.lld: error: arch/riscv/built-in.a(kernel/cpu.o):(function riscv_of_parent_hartid: .text+0x160): relocation R_RISCV_HI20 out of range: 529283 is not in [-524288, 524287]; references .L.str
>> >>> referenced by cpu.c
>> >>> defined in arch/riscv/built-in.a(kernel/cpu.o)
>> --
>>>> ld.lld: error: arch/riscv/built-in.a(kernel/cpu.o):(function riscv_of_parent_hartid: .text+0x19c): relocation R_RISCV_HI20 out of range: 530099 is not in [-524288, 524287]; references .LCPI1_0
>> >>> referenced by cpu.c
>> >>> defined in arch/riscv/built-in.a(kernel/cpu.o)
>> --
>>>> ld.lld: error: init/built-in.a(initramfs.o):(function wait_for_initramfs: .text+0x3c): relocation R_RISCV_HI20 out of range: 529437 is not in [-524288, 524287]; references initramfs_domain
>> >>> referenced by initramfs.c
>> >>> defined in init/built-in.a(initramfs.o)
>> --
>>>> ld.lld: error: init/built-in.a(initramfs.o):(function panic_show_mem: .text+0xa8): relocation R_RISCV_HI20 out of range: 530099 is not in [-524288, 524287]; references .LCPI8_0
>> >>> referenced by initramfs.c
>> >>> defined in init/built-in.a(initramfs.o)
>>
> _______________________________________________
> kbuild-all mailing list -- kbuild-all@lists.01.org
> To unsubscribe send an email to kbuild-all-leave@lists.01.org
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-04-03 13:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-02 22:08 [linux-next:master 14270/15002] ld.lld: error: init/built-in.a(initramfs.o):(function wait_for_initramfs: .text+0x24): relocation R_RISCV_HI20 out of range: 530109 is not in [-524288, 524287]; references initramfs_cookie kernel test robot
2022-04-03 9:40 ` Christophe Leroy
2022-04-03 13:48 ` [kbuild-all] " Chen, Rong A
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox