Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [masahiroy-kbuild:kbuild 18/19] ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0xd4): relocation R_HEX_B22_PCREL out of range: 2313184 is not in [-2097152, 2097151]; references __vmnewmap
@ 2022-09-01 20:41 kernel test robot
  2022-09-01 21:48 ` Nathan Chancellor
  0 siblings, 1 reply; 5+ messages in thread
From: kernel test robot @ 2022-09-01 20:41 UTC (permalink / raw)
  Cc: kbuild-all, llvm

CC: linux-kbuild@vger.kernel.org
TO: Masahiro Yamada <masahiroy@kernel.org>

Hi Masahiro,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git kbuild
head:   67c0e0cf21cd5065fba45a6a00dd252ae4b9417a
commit: 0b1de512cba77e11bdf0305264c56ab61b23b3e1 [18/19] kbuild: use obj-y instead extra-y for objects placed at the head
config: hexagon-randconfig-r041-20220831 (https://download.01.org/0day-ci/archive/20220902/202209020450.jH1ovepP-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project c55b41d5199d2394dd6cdb8f52180d8b81d809d4)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git/commit/?id=0b1de512cba77e11bdf0305264c56ab61b23b3e1
        git remote add masahiroy-kbuild https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git
        git fetch --no-tags masahiroy-kbuild kbuild
        git checkout 0b1de512cba77e11bdf0305264c56ab61b23b3e1
        # 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=hexagon SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0xd4): relocation R_HEX_B22_PCREL out of range: 2313184 is not in [-2097152, 2097151]; references __vmnewmap
   >>> defined in vmlinux.a(arch/hexagon/kernel/vm_ops.o)
--
>> ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0x12c): relocation R_HEX_B22_PCREL out of range: 2313056 is not in [-2097152, 2097151]; references __vmsetvec
   >>> defined in vmlinux.a(arch/hexagon/kernel/vm_ops.o)
--
>> ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0x160): relocation R_HEX_B22_PCREL out of range: 2326848 is not in [-2097152, 2097151]; references memset
   >>> defined in vmlinux.a(arch/hexagon/lib/memset.o)

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [masahiroy-kbuild:kbuild 18/19] ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0xd4): relocation R_HEX_B22_PCREL out of range: 2313184 is not in [-2097152, 2097151]; references __vmnewmap
  2022-09-01 20:41 [masahiroy-kbuild:kbuild 18/19] ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0xd4): relocation R_HEX_B22_PCREL out of range: 2313184 is not in [-2097152, 2097151]; references __vmnewmap kernel test robot
@ 2022-09-01 21:48 ` Nathan Chancellor
  2022-09-02  0:36   ` Masahiro Yamada
  0 siblings, 1 reply; 5+ messages in thread
From: Nathan Chancellor @ 2022-09-01 21:48 UTC (permalink / raw)
  To: kernel test robot; +Cc: kbuild-all, llvm, Masahiro Yamada

+ Masahiro

On Fri, Sep 02, 2022 at 04:41:09AM +0800, kernel test robot wrote:
> CC: linux-kbuild@vger.kernel.org
> TO: Masahiro Yamada <masahiroy@kernel.org>
> 
> Hi Masahiro,
> 
> First bad commit (maybe != root cause):
> 
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git kbuild
> head:   67c0e0cf21cd5065fba45a6a00dd252ae4b9417a
> commit: 0b1de512cba77e11bdf0305264c56ab61b23b3e1 [18/19] kbuild: use obj-y instead extra-y for objects placed at the head
> config: hexagon-randconfig-r041-20220831 (https://download.01.org/0day-ci/archive/20220902/202209020450.jH1ovepP-lkp@intel.com/config)
> compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project c55b41d5199d2394dd6cdb8f52180d8b81d809d4)
> 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
>         # https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git/commit/?id=0b1de512cba77e11bdf0305264c56ab61b23b3e1
>         git remote add masahiroy-kbuild https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git
>         git fetch --no-tags masahiroy-kbuild kbuild
>         git checkout 0b1de512cba77e11bdf0305264c56ab61b23b3e1
>         # 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=hexagon SHELL=/bin/bash
> 
> If you fix the issue, kindly add following tag where applicable
> Reported-by: kernel test robot <lkp@intel.com>
> 
> All errors (new ones prefixed by >>):
> 
> >> ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0xd4): relocation R_HEX_B22_PCREL out of range: 2313184 is not in [-2097152, 2097151]; references __vmnewmap
>    >>> defined in vmlinux.a(arch/hexagon/kernel/vm_ops.o)
> --
> >> ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0x12c): relocation R_HEX_B22_PCREL out of range: 2313056 is not in [-2097152, 2097151]; references __vmsetvec
>    >>> defined in vmlinux.a(arch/hexagon/kernel/vm_ops.o)
> --
> >> ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0x160): relocation R_HEX_B22_PCREL out of range: 2326848 is not in [-2097152, 2097151]; references memset
>    >>> defined in vmlinux.a(arch/hexagon/lib/memset.o)
> 
> -- 
> 0-DAY CI Kernel Test Service
> https://01.org/lkp
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [masahiroy-kbuild:kbuild 18/19] ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0xd4): relocation R_HEX_B22_PCREL out of range: 2313184 is not in [-2097152, 2097151]; references __vmnewmap
  2022-09-01 21:48 ` Nathan Chancellor
@ 2022-09-02  0:36   ` Masahiro Yamada
  2022-09-02 15:08     ` Nathan Chancellor
  0 siblings, 1 reply; 5+ messages in thread
From: Masahiro Yamada @ 2022-09-02  0:36 UTC (permalink / raw)
  To: Nathan Chancellor; +Cc: kernel test robot, kbuild-all, clang-built-linux

On Fri, Sep 2, 2022 at 6:48 AM Nathan Chancellor <nathan@kernel.org> wrote:
>
> + Masahiro
>
> On Fri, Sep 02, 2022 at 04:41:09AM +0800, kernel test robot wrote:
> > CC: linux-kbuild@vger.kernel.org
> > TO: Masahiro Yamada <masahiroy@kernel.org>
> >
> > Hi Masahiro,
> >
> > First bad commit (maybe != root cause):
> >
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git kbuild
> > head:   67c0e0cf21cd5065fba45a6a00dd252ae4b9417a
> > commit: 0b1de512cba77e11bdf0305264c56ab61b23b3e1 [18/19] kbuild: use obj-y instead extra-y for objects placed at the head
> > config: hexagon-randconfig-r041-20220831 (https://download.01.org/0day-ci/archive/20220902/202209020450.jH1ovepP-lkp@intel.com/config)
> > compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project c55b41d5199d2394dd6cdb8f52180d8b81d809d4)
> > 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
> >         # https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git/commit/?id=0b1de512cba77e11bdf0305264c56ab61b23b3e1
> >         git remote add masahiroy-kbuild https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git
> >         git fetch --no-tags masahiroy-kbuild kbuild
> >         git checkout 0b1de512cba77e11bdf0305264c56ab61b23b3e1
> >         # 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=hexagon SHELL=/bin/bash
> >
> > If you fix the issue, kindly add following tag where applicable
> > Reported-by: kernel test robot <lkp@intel.com>
> >
> > All errors (new ones prefixed by >>):
> >
> > >> ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0xd4): relocation R_HEX_B22_PCREL out of range: 2313184 is not in [-2097152, 2097151]; references __vmnewmap
> >    >>> defined in vmlinux.a(arch/hexagon/kernel/vm_ops.o)
> > --
> > >> ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0x12c): relocation R_HEX_B22_PCREL out of range: 2313056 is not in [-2097152, 2097151]; references __vmsetvec
> >    >>> defined in vmlinux.a(arch/hexagon/kernel/vm_ops.o)
> > --
> > >> ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0x160): relocation R_HEX_B22_PCREL out of range: 2326848 is not in [-2097152, 2097151]; references memset
> >    >>> defined in vmlinux.a(arch/hexagon/lib/memset.o)
> >
> > --
> > 0-DAY CI Kernel Test Service
> > https://01.org/lkp
> >


Thanks for the forwarding.

This is not a regression.

The hexagon was already broken.

It is just that it was deemed to be a new breakage
due to slightly different error messages.


Compare the before/after.




[Before]


  LD      .tmp_vmlinux.kallsyms1
ld.lld: error: arch/hexagon/kernel/head.o:(.init.text+0xd4):
relocation R_HEX_B22_PCREL out of range: 2313200 is not in [-2097152,
2097151]; references __vmnewmap
>>> defined in ./built-in.a(arch/hexagon/kernel/vm_ops.o)

ld.lld: error: arch/hexagon/kernel/head.o:(.init.text+0x120):
relocation R_HEX_B22_PCREL out of range: 2313124 is not in [-2097152,
2097151]; references __vmnewmap
>>> defined in ./built-in.a(arch/hexagon/kernel/vm_ops.o)

ld.lld: error: arch/hexagon/kernel/head.o:(.init.text+0x12c):
relocation R_HEX_B22_PCREL out of range: 2313072 is not in [-2097152,
2097151]; references __vmsetvec
>>> defined in ./built-in.a(arch/hexagon/kernel/vm_ops.o)

ld.lld: error: arch/hexagon/kernel/head.o:(.init.text+0x160):
relocation R_HEX_B22_PCREL out of range: 2326848 is not in [-2097152,
2097151]; references memset
>>> defined in ./built-in.a(arch/hexagon/lib/memset.o)
make: *** [Makefile:1170: vmlinux] Error 1
make: Target '__all' not remade because of errors.




[After]

  LD      .tmp_vmlinux.kallsyms1
ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0xd4):
relocation R_HEX_B22_PCREL out of range: 2313200 is not in [-2097152,
2097151]; references __vmnewmap
>>> defined in vmlinux.a(arch/hexagon/kernel/vm_ops.o)

ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0x120):
relocation R_HEX_B22_PCREL out of range: 2313124 is not in [-2097152,
2097151]; references __vmnewmap
>>> defined in vmlinux.a(arch/hexagon/kernel/vm_ops.o)

ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0x12c):
relocation R_HEX_B22_PCREL out of range: 2313072 is not in [-2097152,
2097151]; references __vmsetvec
>>> defined in vmlinux.a(arch/hexagon/kernel/vm_ops.o)

ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0x160):
relocation R_HEX_B22_PCREL out of range: 2326848 is not in [-2097152,
2097151]; references memset
>>> defined in vmlinux.a(arch/hexagon/lib/memset.o)
make: *** [Makefile:1180: vmlinux] Error 1
make: Target '__all' not remade because of errors.























--
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [masahiroy-kbuild:kbuild 18/19] ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0xd4): relocation R_HEX_B22_PCREL out of range: 2313184 is not in [-2097152, 2097151]; references __vmnewmap
  2022-09-02  0:36   ` Masahiro Yamada
@ 2022-09-02 15:08     ` Nathan Chancellor
  2022-09-05 17:04       ` Brian Cain
  0 siblings, 1 reply; 5+ messages in thread
From: Nathan Chancellor @ 2022-09-02 15:08 UTC (permalink / raw)
  To: Masahiro Yamada, Brian Cain
  Cc: kernel test robot, kbuild-all, clang-built-linux, linux-hexagon

On Fri, Sep 02, 2022 at 09:36:33AM +0900, Masahiro Yamada wrote:
> On Fri, Sep 2, 2022 at 6:48 AM Nathan Chancellor <nathan@kernel.org> wrote:
> >
> > + Masahiro
> >
> > On Fri, Sep 02, 2022 at 04:41:09AM +0800, kernel test robot wrote:
> > > CC: linux-kbuild@vger.kernel.org
> > > TO: Masahiro Yamada <masahiroy@kernel.org>
> > >
> > > Hi Masahiro,
> > >
> > > First bad commit (maybe != root cause):
> > >
> > > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git kbuild
> > > head:   67c0e0cf21cd5065fba45a6a00dd252ae4b9417a
> > > commit: 0b1de512cba77e11bdf0305264c56ab61b23b3e1 [18/19] kbuild: use obj-y instead extra-y for objects placed at the head
> > > config: hexagon-randconfig-r041-20220831 (https://download.01.org/0day-ci/archive/20220902/202209020450.jH1ovepP-lkp@intel.com/config)
> > > compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project c55b41d5199d2394dd6cdb8f52180d8b81d809d4)
> > > 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
> > >         # https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git/commit/?id=0b1de512cba77e11bdf0305264c56ab61b23b3e1
> > >         git remote add masahiroy-kbuild https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git
> > >         git fetch --no-tags masahiroy-kbuild kbuild
> > >         git checkout 0b1de512cba77e11bdf0305264c56ab61b23b3e1
> > >         # 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=hexagon SHELL=/bin/bash
> > >
> > > If you fix the issue, kindly add following tag where applicable
> > > Reported-by: kernel test robot <lkp@intel.com>
> > >
> > > All errors (new ones prefixed by >>):
> > >
> > > >> ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0xd4): relocation R_HEX_B22_PCREL out of range: 2313184 is not in [-2097152, 2097151]; references __vmnewmap
> > >    >>> defined in vmlinux.a(arch/hexagon/kernel/vm_ops.o)
> > > --
> > > >> ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0x12c): relocation R_HEX_B22_PCREL out of range: 2313056 is not in [-2097152, 2097151]; references __vmsetvec
> > >    >>> defined in vmlinux.a(arch/hexagon/kernel/vm_ops.o)
> > > --
> > > >> ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0x160): relocation R_HEX_B22_PCREL out of range: 2326848 is not in [-2097152, 2097151]; references memset
> > >    >>> defined in vmlinux.a(arch/hexagon/lib/memset.o)
> > >
> > > --
> > > 0-DAY CI Kernel Test Service
> > > https://01.org/lkp
> > >
> 
> 
> Thanks for the forwarding.
> 
> This is not a regression.
> 
> The hexagon was already broken.
> 
> It is just that it was deemed to be a new breakage
> due to slightly different error messages.

Thanks a lot for checking! Something for the Hexagon folks to look at
then.

The original report is at

https://lore.kernel.org/202209020450.jH1ovepP-lkp@intel.com/

with the original config file.

Cheers,
Nathan

> Compare the before/after.
> 
> 
> 
> 
> [Before]
> 
> 
>   LD      .tmp_vmlinux.kallsyms1
> ld.lld: error: arch/hexagon/kernel/head.o:(.init.text+0xd4):
> relocation R_HEX_B22_PCREL out of range: 2313200 is not in [-2097152,
> 2097151]; references __vmnewmap
> >>> defined in ./built-in.a(arch/hexagon/kernel/vm_ops.o)
> 
> ld.lld: error: arch/hexagon/kernel/head.o:(.init.text+0x120):
> relocation R_HEX_B22_PCREL out of range: 2313124 is not in [-2097152,
> 2097151]; references __vmnewmap
> >>> defined in ./built-in.a(arch/hexagon/kernel/vm_ops.o)
> 
> ld.lld: error: arch/hexagon/kernel/head.o:(.init.text+0x12c):
> relocation R_HEX_B22_PCREL out of range: 2313072 is not in [-2097152,
> 2097151]; references __vmsetvec
> >>> defined in ./built-in.a(arch/hexagon/kernel/vm_ops.o)
> 
> ld.lld: error: arch/hexagon/kernel/head.o:(.init.text+0x160):
> relocation R_HEX_B22_PCREL out of range: 2326848 is not in [-2097152,
> 2097151]; references memset
> >>> defined in ./built-in.a(arch/hexagon/lib/memset.o)
> make: *** [Makefile:1170: vmlinux] Error 1
> make: Target '__all' not remade because of errors.
> 
> 
> 
> 
> [After]
> 
>   LD      .tmp_vmlinux.kallsyms1
> ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0xd4):
> relocation R_HEX_B22_PCREL out of range: 2313200 is not in [-2097152,
> 2097151]; references __vmnewmap
> >>> defined in vmlinux.a(arch/hexagon/kernel/vm_ops.o)
> 
> ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0x120):
> relocation R_HEX_B22_PCREL out of range: 2313124 is not in [-2097152,
> 2097151]; references __vmnewmap
> >>> defined in vmlinux.a(arch/hexagon/kernel/vm_ops.o)
> 
> ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0x12c):
> relocation R_HEX_B22_PCREL out of range: 2313072 is not in [-2097152,
> 2097151]; references __vmsetvec
> >>> defined in vmlinux.a(arch/hexagon/kernel/vm_ops.o)
> 
> ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0x160):
> relocation R_HEX_B22_PCREL out of range: 2326848 is not in [-2097152,
> 2097151]; references memset
> >>> defined in vmlinux.a(arch/hexagon/lib/memset.o)
> make: *** [Makefile:1180: vmlinux] Error 1
> make: Target '__all' not remade because of errors.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> Best Regards
> Masahiro Yamada

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [masahiroy-kbuild:kbuild 18/19] ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0xd4): relocation R_HEX_B22_PCREL out of range: 2313184 is not in [-2097152, 2097151]; references __vmnewmap
  2022-09-02 15:08     ` Nathan Chancellor
@ 2022-09-05 17:04       ` Brian Cain
  0 siblings, 0 replies; 5+ messages in thread
From: Brian Cain @ 2022-09-05 17:04 UTC (permalink / raw)
  To: Nathan Chancellor, Masahiro Yamada, Sid Manning
  Cc: kernel test robot, kbuild-all@lists.01.org, clang-built-linux,
	linux-hexagon@vger.kernel.org



> -----Original Message-----
> From: Nathan Chancellor <nathan@kernel.org>
> Sent: Friday, September 2, 2022 10:08 AM
> To: Masahiro Yamada <masahiroy@kernel.org>; Brian Cain
> <bcain@quicinc.com>
> Cc: kernel test robot <lkp@intel.com>; kbuild-all@lists.01.org; clang-built-linux
> <llvm@lists.linux.dev>; linux-hexagon@vger.kernel.org
> Subject: Re: [masahiroy-kbuild:kbuild 18/19] ld.lld: error:
> vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0xd4): relocation
> R_HEX_B22_PCREL out of range: 2313184 is not in [-2097152, 2097151];
> references __vmnewmap
> 
> WARNING: This email originated from outside of Qualcomm. Please be wary of
> any links or attachments, and do not enable macros.
> 
> On Fri, Sep 02, 2022 at 09:36:33AM +0900, Masahiro Yamada wrote:
> > On Fri, Sep 2, 2022 at 6:48 AM Nathan Chancellor <nathan@kernel.org>
> wrote:
> > >
> > > + Masahiro
> > >
> > > On Fri, Sep 02, 2022 at 04:41:09AM +0800, kernel test robot wrote:
> > > > CC: linux-kbuild@vger.kernel.org
> > > > TO: Masahiro Yamada <masahiroy@kernel.org>
> > > >
> > > > Hi Masahiro,
> > > >
> > > > First bad commit (maybe != root cause):
> > > >
> > > > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-
> kbuild.git kbuild
> > > > head:   67c0e0cf21cd5065fba45a6a00dd252ae4b9417a
> > > > commit: 0b1de512cba77e11bdf0305264c56ab61b23b3e1 [18/19] kbuild:
> use obj-y instead extra-y for objects placed at the head
> > > > config: hexagon-randconfig-r041-20220831
> (https://download.01.org/0day-
> ci/archive/20220902/202209020450.jH1ovepP-lkp@intel.com/config)
> > > > compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project
> c55b41d5199d2394dd6cdb8f52180d8b81d809d4)
> > > > 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
> > > >         # https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-
> kbuild.git/commit/?id=0b1de512cba77e11bdf0305264c56ab61b23b3e1
> > > >         git remote add masahiroy-kbuild
> https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git
> > > >         git fetch --no-tags masahiroy-kbuild kbuild
> > > >         git checkout 0b1de512cba77e11bdf0305264c56ab61b23b3e1
> > > >         # 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=hexagon SHELL=/bin/bash
> > > >
> > > > If you fix the issue, kindly add following tag where applicable
> > > > Reported-by: kernel test robot <lkp@intel.com>
> > > >
> > > > All errors (new ones prefixed by >>):
> > > >
> > > > >> ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0xd4):
> relocation R_HEX_B22_PCREL out of range: 2313184 is not in [-2097152,
> 2097151]; references __vmnewmap
> > > >    >>> defined in vmlinux.a(arch/hexagon/kernel/vm_ops.o)
> > > > --
> > > > >> ld.lld: error:
> vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0x12c): relocation
> R_HEX_B22_PCREL out of range: 2313056 is not in [-2097152, 2097151];
> references __vmsetvec
> > > >    >>> defined in vmlinux.a(arch/hexagon/kernel/vm_ops.o)
> > > > --
> > > > >> ld.lld: error:
> vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0x160): relocation
> R_HEX_B22_PCREL out of range: 2326848 is not in [-2097152, 2097151];
> references memset
> > > >    >>> defined in vmlinux.a(arch/hexagon/lib/memset.o)
> > > >
> > > > --
> > > > 0-DAY CI Kernel Test Service
> > > > https://01.org/lkp
> > > >
> >
> >
> > Thanks for the forwarding.
> >
> > This is not a regression.
> >
> > The hexagon was already broken.
> >
> > It is just that it was deemed to be a new breakage
> > due to slightly different error messages.
> 
> Thanks a lot for checking! Something for the Hexagon folks to look at
> then.

Thanks Yamada-san and Nathan.  We are investigating this and will report back.

> 
> The original report is at
> 
> https://lore.kernel.org/202209020450.jH1ovepP-lkp@intel.com/
> 
> with the original config file.
> 
> Cheers,
> Nathan
> 
> > Compare the before/after.
> >
> >
> >
> >
> > [Before]
> >
> >
> >   LD      .tmp_vmlinux.kallsyms1
> > ld.lld: error: arch/hexagon/kernel/head.o:(.init.text+0xd4):
> > relocation R_HEX_B22_PCREL out of range: 2313200 is not in [-2097152,
> > 2097151]; references __vmnewmap
> > >>> defined in ./built-in.a(arch/hexagon/kernel/vm_ops.o)
> >
> > ld.lld: error: arch/hexagon/kernel/head.o:(.init.text+0x120):
> > relocation R_HEX_B22_PCREL out of range: 2313124 is not in [-2097152,
> > 2097151]; references __vmnewmap
> > >>> defined in ./built-in.a(arch/hexagon/kernel/vm_ops.o)
> >
> > ld.lld: error: arch/hexagon/kernel/head.o:(.init.text+0x12c):
> > relocation R_HEX_B22_PCREL out of range: 2313072 is not in [-2097152,
> > 2097151]; references __vmsetvec
> > >>> defined in ./built-in.a(arch/hexagon/kernel/vm_ops.o)
> >
> > ld.lld: error: arch/hexagon/kernel/head.o:(.init.text+0x160):
> > relocation R_HEX_B22_PCREL out of range: 2326848 is not in [-2097152,
> > 2097151]; references memset
> > >>> defined in ./built-in.a(arch/hexagon/lib/memset.o)
> > make: *** [Makefile:1170: vmlinux] Error 1
> > make: Target '__all' not remade because of errors.
> >
> >
> >
> >
> > [After]
> >
> >   LD      .tmp_vmlinux.kallsyms1
> > ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0xd4):
> > relocation R_HEX_B22_PCREL out of range: 2313200 is not in [-2097152,
> > 2097151]; references __vmnewmap
> > >>> defined in vmlinux.a(arch/hexagon/kernel/vm_ops.o)
> >
> > ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0x120):
> > relocation R_HEX_B22_PCREL out of range: 2313124 is not in [-2097152,
> > 2097151]; references __vmnewmap
> > >>> defined in vmlinux.a(arch/hexagon/kernel/vm_ops.o)
> >
> > ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0x12c):
> > relocation R_HEX_B22_PCREL out of range: 2313072 is not in [-2097152,
> > 2097151]; references __vmsetvec
> > >>> defined in vmlinux.a(arch/hexagon/kernel/vm_ops.o)
> >
> > ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0x160):
> > relocation R_HEX_B22_PCREL out of range: 2326848 is not in [-2097152,
> > 2097151]; references memset
> > >>> defined in vmlinux.a(arch/hexagon/lib/memset.o)
> > make: *** [Makefile:1180: vmlinux] Error 1
> > make: Target '__all' not remade because of errors.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > Best Regards
> > Masahiro Yamada

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-09-05 17:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-01 20:41 [masahiroy-kbuild:kbuild 18/19] ld.lld: error: vmlinux.a(arch/hexagon/kernel/head.o):(.init.text+0xd4): relocation R_HEX_B22_PCREL out of range: 2313184 is not in [-2097152, 2097151]; references __vmnewmap kernel test robot
2022-09-01 21:48 ` Nathan Chancellor
2022-09-02  0:36   ` Masahiro Yamada
2022-09-02 15:08     ` Nathan Chancellor
2022-09-05 17:04       ` Brian Cain

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