* ld.lld: error: ./arch/x86/kernel/vmlinux.lds:191: at least one side of the expression must be absolute
@ 2023-08-09 6:10 Naresh Kamboju
2023-08-09 6:24 ` Naresh Kamboju
0 siblings, 1 reply; 5+ messages in thread
From: Naresh Kamboju @ 2023-08-09 6:10 UTC (permalink / raw)
To: linux-stable, clang-built-linux
Cc: Greg Kroah-Hartman, Sasha Levin, Nathan Chancellor,
Nick Desaulniers, Anders Roxell, Arnd Bergmann
While building Linux stable rc 6.1 x86_64 with clang-17 failed due to
following warnings / errors.
make --silent --keep-going --jobs=8
O=/home/tuxbuild/.cache/tuxmake/builds/2/build ARCH=x86_64 SRCARCH=x86
CROSS_COMPILE=x86_64-linux-gnu- 'HOSTCC=sccache clang' 'CC=sccache
clang' LLVM=1 LLVM_IAS=1
arch/x86/lib/retpoline.o: warning: objtool: .altinstr_replacement:
unexpected end of section
ld.lld: error: ./arch/x86/kernel/vmlinux.lds:191: at least one side of
the expression must be absolute
ld.lld: error: ./arch/x86/kernel/vmlinux.lds:192: at least one side of
the expression must be absolute
ld.lld: error: ./arch/x86/kernel/vmlinux.lds:191: at least one side of
the expression must be absolute
ld.lld: error: ./arch/x86/kernel/vmlinux.lds:192: at least one side of
the expression must be absolute
ld.lld: error: ./arch/x86/kernel/vmlinux.lds:191: at least one side of
the expression must be absolute
ld.lld: error: ./arch/x86/kernel/vmlinux.lds:192: at least one side of
the expression must be absolute
make[2]: *** [scripts/Makefile.vmlinux:34: vmlinux] Error 1
make[2]: Target '__default' not remade because of errors.
make[1]: *** [Makefile:1255: vmlinux] Error 2
Build links,
- https://storage.tuxsuite.com/public/linaro/lkft/builds/2TiTUgExGs7SrTm9Lb4fakgeTfw/
- https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.1.y/build/v6.1.44-117-g74848b090997/testrun/18917095/suite/build/test/clang-lkftconfig/details/
- https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.1.y/build/v6.1.44-117-g74848b090997/testrun/18917095/suite/build/test/clang-lkftconfig/history/
Steps to reproduce:
tuxmake --runtime podman --target-arch x86_64 --toolchain clang-17
--kconfig https://storage.tuxsuite.com/public/linaro/lkft/builds/2TiTUgExGs7SrTm9Lb4fakgeTfw/config
LLVM=1 LLVM_IAS=1
https://storage.tuxsuite.com/public/linaro/lkft/builds/2TiTUgExGs7SrTm9Lb4fakgeTfw/tuxmake_reproducer.sh
--
Linaro LKFT
https://lkft.linaro.org
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ld.lld: error: ./arch/x86/kernel/vmlinux.lds:191: at least one side of the expression must be absolute
2023-08-09 6:10 ld.lld: error: ./arch/x86/kernel/vmlinux.lds:191: at least one side of the expression must be absolute Naresh Kamboju
@ 2023-08-09 6:24 ` Naresh Kamboju
2023-08-09 14:43 ` Sasha Levin
2023-08-09 15:47 ` Nick Desaulniers
0 siblings, 2 replies; 5+ messages in thread
From: Naresh Kamboju @ 2023-08-09 6:24 UTC (permalink / raw)
To: linux-stable, clang-built-linux
Cc: Greg Kroah-Hartman, Sasha Levin, Nathan Chancellor,
Nick Desaulniers, Anders Roxell, Arnd Bergmann
also noticed on stable-rc 5.15 and 5.10.
On Wed, 9 Aug 2023 at 11:40, Naresh Kamboju <naresh.kamboju@linaro.org> wrote:
>
> While building Linux stable rc 6.1 x86_64 with clang-17 failed due to
> following warnings / errors.
>
> make --silent --keep-going --jobs=8
> O=/home/tuxbuild/.cache/tuxmake/builds/2/build ARCH=x86_64 SRCARCH=x86
> CROSS_COMPILE=x86_64-linux-gnu- 'HOSTCC=sccache clang' 'CC=sccache
> clang' LLVM=1 LLVM_IAS=1
>
> arch/x86/lib/retpoline.o: warning: objtool: .altinstr_replacement:
> unexpected end of section
> ld.lld: error: ./arch/x86/kernel/vmlinux.lds:191: at least one side of
> the expression must be absolute
> ld.lld: error: ./arch/x86/kernel/vmlinux.lds:192: at least one side of
> the expression must be absolute
> ld.lld: error: ./arch/x86/kernel/vmlinux.lds:191: at least one side of
> the expression must be absolute
> ld.lld: error: ./arch/x86/kernel/vmlinux.lds:192: at least one side of
> the expression must be absolute
> ld.lld: error: ./arch/x86/kernel/vmlinux.lds:191: at least one side of
> the expression must be absolute
> ld.lld: error: ./arch/x86/kernel/vmlinux.lds:192: at least one side of
> the expression must be absolute
> make[2]: *** [scripts/Makefile.vmlinux:34: vmlinux] Error 1
> make[2]: Target '__default' not remade because of errors.
> make[1]: *** [Makefile:1255: vmlinux] Error 2
>
>
> Build links,
> - https://storage.tuxsuite.com/public/linaro/lkft/builds/2TiTUgExGs7SrTm9Lb4fakgeTfw/
> - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.1.y/build/v6.1.44-117-g74848b090997/testrun/18917095/suite/build/test/clang-lkftconfig/details/
> - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.1.y/build/v6.1.44-117-g74848b090997/testrun/18917095/suite/build/test/clang-lkftconfig/history/
>
> Steps to reproduce:
> tuxmake --runtime podman --target-arch x86_64 --toolchain clang-17
> --kconfig https://storage.tuxsuite.com/public/linaro/lkft/builds/2TiTUgExGs7SrTm9Lb4fakgeTfw/config
> LLVM=1 LLVM_IAS=1
> https://storage.tuxsuite.com/public/linaro/lkft/builds/2TiTUgExGs7SrTm9Lb4fakgeTfw/tuxmake_reproducer.sh
>
>
> --
> Linaro LKFT
> https://lkft.linaro.org
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ld.lld: error: ./arch/x86/kernel/vmlinux.lds:191: at least one side of the expression must be absolute
2023-08-09 6:24 ` Naresh Kamboju
@ 2023-08-09 14:43 ` Sasha Levin
2023-08-09 15:47 ` Nick Desaulniers
1 sibling, 0 replies; 5+ messages in thread
From: Sasha Levin @ 2023-08-09 14:43 UTC (permalink / raw)
To: Naresh Kamboju, bp
Cc: linux-stable, clang-built-linux, Greg Kroah-Hartman,
Nathan Chancellor, Nick Desaulniers, Anders Roxell, Arnd Bergmann
On Wed, Aug 09, 2023 at 11:54:59AM +0530, Naresh Kamboju wrote:
>also noticed on stable-rc 5.15 and 5.10.
>
>On Wed, 9 Aug 2023 at 11:40, Naresh Kamboju <naresh.kamboju@linaro.org> wrote:
>>
>> While building Linux stable rc 6.1 x86_64 with clang-17 failed due to
>> following warnings / errors.
>>
>> make --silent --keep-going --jobs=8
>> O=/home/tuxbuild/.cache/tuxmake/builds/2/build ARCH=x86_64 SRCARCH=x86
>> CROSS_COMPILE=x86_64-linux-gnu- 'HOSTCC=sccache clang' 'CC=sccache
>> clang' LLVM=1 LLVM_IAS=1
>>
>> arch/x86/lib/retpoline.o: warning: objtool: .altinstr_replacement:
>> unexpected end of section
>> ld.lld: error: ./arch/x86/kernel/vmlinux.lds:191: at least one side of
>> the expression must be absolute
>> ld.lld: error: ./arch/x86/kernel/vmlinux.lds:192: at least one side of
>> the expression must be absolute
>> ld.lld: error: ./arch/x86/kernel/vmlinux.lds:191: at least one side of
>> the expression must be absolute
>> ld.lld: error: ./arch/x86/kernel/vmlinux.lds:192: at least one side of
>> the expression must be absolute
>> ld.lld: error: ./arch/x86/kernel/vmlinux.lds:191: at least one side of
>> the expression must be absolute
>> ld.lld: error: ./arch/x86/kernel/vmlinux.lds:192: at least one side of
>> the expression must be absolute
>> make[2]: *** [scripts/Makefile.vmlinux:34: vmlinux] Error 1
>> make[2]: Target '__default' not remade because of errors.
>> make[1]: *** [Makefile:1255: vmlinux] Error 2
>>
>>
>> Build links,
>> - https://storage.tuxsuite.com/public/linaro/lkft/builds/2TiTUgExGs7SrTm9Lb4fakgeTfw/
>> - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.1.y/build/v6.1.44-117-g74848b090997/testrun/18917095/suite/build/test/clang-lkftconfig/details/
>> - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.1.y/build/v6.1.44-117-g74848b090997/testrun/18917095/suite/build/test/clang-lkftconfig/history/
>>
>> Steps to reproduce:
>> tuxmake --runtime podman --target-arch x86_64 --toolchain clang-17
>> --kconfig https://storage.tuxsuite.com/public/linaro/lkft/builds/2TiTUgExGs7SrTm9Lb4fakgeTfw/config
>> LLVM=1 LLVM_IAS=1
>> https://storage.tuxsuite.com/public/linaro/lkft/builds/2TiTUgExGs7SrTm9Lb4fakgeTfw/tuxmake_reproducer.sh
Same here... Bisected to ac41e90d8daa ("x86/srso: Add a Speculative RAS
Overflow mitigation"), so adding in Borislav.
--
Thanks,
Sasha
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ld.lld: error: ./arch/x86/kernel/vmlinux.lds:191: at least one side of the expression must be absolute
2023-08-09 6:24 ` Naresh Kamboju
2023-08-09 14:43 ` Sasha Levin
@ 2023-08-09 15:47 ` Nick Desaulniers
2023-08-09 15:53 ` Nathan Chancellor
1 sibling, 1 reply; 5+ messages in thread
From: Nick Desaulniers @ 2023-08-09 15:47 UTC (permalink / raw)
To: Naresh Kamboju
Cc: linux-stable, clang-built-linux, Greg Kroah-Hartman, Sasha Levin,
Nathan Chancellor, Anders Roxell, Arnd Bergmann, Borislav Petkov,
Peter Zijlstra
Thanks for the report. We're tracking this here
https://github.com/ClangBuiltLinux/linux/issues/1907
It was pointed out that PeterZ has a series reworking this code entirely:
https://lore.kernel.org/lkml/20230809071218.000335006@infradead.org/
On Tue, Aug 8, 2023 at 11:25 PM Naresh Kamboju
<naresh.kamboju@linaro.org> wrote:
>
> also noticed on stable-rc 5.15 and 5.10.
That's troubling if stable is already picking up patches that are
breaking the build!
>
> On Wed, 9 Aug 2023 at 11:40, Naresh Kamboju <naresh.kamboju@linaro.org> wrote:
> >
> > While building Linux stable rc 6.1 x86_64 with clang-17 failed due to
> > following warnings / errors.
> >
> > make --silent --keep-going --jobs=8
> > O=/home/tuxbuild/.cache/tuxmake/builds/2/build ARCH=x86_64 SRCARCH=x86
> > CROSS_COMPILE=x86_64-linux-gnu- 'HOSTCC=sccache clang' 'CC=sccache
> > clang' LLVM=1 LLVM_IAS=1
> >
> > arch/x86/lib/retpoline.o: warning: objtool: .altinstr_replacement:
> > unexpected end of section
> > ld.lld: error: ./arch/x86/kernel/vmlinux.lds:191: at least one side of
> > the expression must be absolute
> > ld.lld: error: ./arch/x86/kernel/vmlinux.lds:192: at least one side of
> > the expression must be absolute
> > ld.lld: error: ./arch/x86/kernel/vmlinux.lds:191: at least one side of
> > the expression must be absolute
> > ld.lld: error: ./arch/x86/kernel/vmlinux.lds:192: at least one side of
> > the expression must be absolute
> > ld.lld: error: ./arch/x86/kernel/vmlinux.lds:191: at least one side of
> > the expression must be absolute
> > ld.lld: error: ./arch/x86/kernel/vmlinux.lds:192: at least one side of
> > the expression must be absolute
> > make[2]: *** [scripts/Makefile.vmlinux:34: vmlinux] Error 1
> > make[2]: Target '__default' not remade because of errors.
> > make[1]: *** [Makefile:1255: vmlinux] Error 2
> >
> >
> > Build links,
> > - https://storage.tuxsuite.com/public/linaro/lkft/builds/2TiTUgExGs7SrTm9Lb4fakgeTfw/
> > - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.1.y/build/v6.1.44-117-g74848b090997/testrun/18917095/suite/build/test/clang-lkftconfig/details/
> > - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.1.y/build/v6.1.44-117-g74848b090997/testrun/18917095/suite/build/test/clang-lkftconfig/history/
> >
> > Steps to reproduce:
> > tuxmake --runtime podman --target-arch x86_64 --toolchain clang-17
> > --kconfig https://storage.tuxsuite.com/public/linaro/lkft/builds/2TiTUgExGs7SrTm9Lb4fakgeTfw/config
> > LLVM=1 LLVM_IAS=1
> > https://storage.tuxsuite.com/public/linaro/lkft/builds/2TiTUgExGs7SrTm9Lb4fakgeTfw/tuxmake_reproducer.sh
> >
> >
> > --
> > Linaro LKFT
> > https://lkft.linaro.org
--
Thanks,
~Nick Desaulniers
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ld.lld: error: ./arch/x86/kernel/vmlinux.lds:191: at least one side of the expression must be absolute
2023-08-09 15:47 ` Nick Desaulniers
@ 2023-08-09 15:53 ` Nathan Chancellor
0 siblings, 0 replies; 5+ messages in thread
From: Nathan Chancellor @ 2023-08-09 15:53 UTC (permalink / raw)
To: Nick Desaulniers
Cc: Naresh Kamboju, linux-stable, clang-built-linux,
Greg Kroah-Hartman, Sasha Levin, Anders Roxell, Arnd Bergmann,
Borislav Petkov, Peter Zijlstra
On Wed, Aug 09, 2023 at 08:47:08AM -0700, Nick Desaulniers wrote:
> Thanks for the report. We're tracking this here
> https://github.com/ClangBuiltLinux/linux/issues/1907
> It was pointed out that PeterZ has a series reworking this code entirely:
> https://lore.kernel.org/lkml/20230809071218.000335006@infradead.org/
As I pointed out in that issue, I don't think that series helps us with
this issue but I will try to test shortly (the patches did not apply
cleanly but I have not looked into why yet).
> On Tue, Aug 8, 2023 at 11:25 PM Naresh Kamboju
> <naresh.kamboju@linaro.org> wrote:
> >
> > also noticed on stable-rc 5.15 and 5.10.
>
> That's troubling if stable is already picking up patches that are
> breaking the build!
Those patches are already released in stable, they were basically
released at the same time as they were merged into mainline:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/log/?h=linux-6.4.y
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/log/?h=linux-6.1.y
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/log/?h=linux-5.15.y
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/log/?h=linux-5.10.y
Cheers,
Nathan
> > On Wed, 9 Aug 2023 at 11:40, Naresh Kamboju <naresh.kamboju@linaro.org> wrote:
> > >
> > > While building Linux stable rc 6.1 x86_64 with clang-17 failed due to
> > > following warnings / errors.
> > >
> > > make --silent --keep-going --jobs=8
> > > O=/home/tuxbuild/.cache/tuxmake/builds/2/build ARCH=x86_64 SRCARCH=x86
> > > CROSS_COMPILE=x86_64-linux-gnu- 'HOSTCC=sccache clang' 'CC=sccache
> > > clang' LLVM=1 LLVM_IAS=1
> > >
> > > arch/x86/lib/retpoline.o: warning: objtool: .altinstr_replacement:
> > > unexpected end of section
> > > ld.lld: error: ./arch/x86/kernel/vmlinux.lds:191: at least one side of
> > > the expression must be absolute
> > > ld.lld: error: ./arch/x86/kernel/vmlinux.lds:192: at least one side of
> > > the expression must be absolute
> > > ld.lld: error: ./arch/x86/kernel/vmlinux.lds:191: at least one side of
> > > the expression must be absolute
> > > ld.lld: error: ./arch/x86/kernel/vmlinux.lds:192: at least one side of
> > > the expression must be absolute
> > > ld.lld: error: ./arch/x86/kernel/vmlinux.lds:191: at least one side of
> > > the expression must be absolute
> > > ld.lld: error: ./arch/x86/kernel/vmlinux.lds:192: at least one side of
> > > the expression must be absolute
> > > make[2]: *** [scripts/Makefile.vmlinux:34: vmlinux] Error 1
> > > make[2]: Target '__default' not remade because of errors.
> > > make[1]: *** [Makefile:1255: vmlinux] Error 2
> > >
> > >
> > > Build links,
> > > - https://storage.tuxsuite.com/public/linaro/lkft/builds/2TiTUgExGs7SrTm9Lb4fakgeTfw/
> > > - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.1.y/build/v6.1.44-117-g74848b090997/testrun/18917095/suite/build/test/clang-lkftconfig/details/
> > > - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.1.y/build/v6.1.44-117-g74848b090997/testrun/18917095/suite/build/test/clang-lkftconfig/history/
> > >
> > > Steps to reproduce:
> > > tuxmake --runtime podman --target-arch x86_64 --toolchain clang-17
> > > --kconfig https://storage.tuxsuite.com/public/linaro/lkft/builds/2TiTUgExGs7SrTm9Lb4fakgeTfw/config
> > > LLVM=1 LLVM_IAS=1
> > > https://storage.tuxsuite.com/public/linaro/lkft/builds/2TiTUgExGs7SrTm9Lb4fakgeTfw/tuxmake_reproducer.sh
> > >
> > >
> > > --
> > > Linaro LKFT
> > > https://lkft.linaro.org
>
>
>
> --
> Thanks,
> ~Nick Desaulniers
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-08-09 15:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-09 6:10 ld.lld: error: ./arch/x86/kernel/vmlinux.lds:191: at least one side of the expression must be absolute Naresh Kamboju
2023-08-09 6:24 ` Naresh Kamboju
2023-08-09 14:43 ` Sasha Levin
2023-08-09 15:47 ` Nick Desaulniers
2023-08-09 15:53 ` Nathan Chancellor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox