* next-20250422: arch/riscv/kernel/vdso/vdso.so.dbg: dynamic relocations are not supported
@ 2025-04-23 14:45 Naresh Kamboju
2025-04-30 15:48 ` Miguel Ojeda
0 siblings, 1 reply; 4+ messages in thread
From: Naresh Kamboju @ 2025-04-23 14:45 UTC (permalink / raw)
To: open list, linux-riscv, lkft-triage, Linux Regressions,
clang-built-linux
Cc: Albert Ou, Palmer Dabbelt, Nam Cao, Masahiro Yamada,
Arnd Bergmann, Nathan Chancellor, Anders Roxell, Dan Carpenter
Regressions on riscv tinyconfig and lkftconfig failed with clang-20
and gcc-13 on the Linux next-20250422 tag onwards.
The defconfig builds pass but tinyconfig and lkftconfig (compat and
VDSO) failed.
First seen on the next-20250422
Good: next-20250417
Bad: next-20250422..next-20250423
Regressions found on riscv:
- build/rv32-clang-20-tinyconfig
- build/rv32-clang-20-tinyconfig
- build/korg-clang-20-lkftconfig-hardening
- build/gcc-13-lkftconfig
Regression Analysis:
- New regression? Yes
- Reproducibility? Yes
Build regression: riscv vdso.so.dbg dynamic relocations are not supported
Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
## Build log riscv
build errors with gcc
arch/riscv/kernel/vdso/vdso.so.dbg: dynamic relocations are not supported
make[3]: *** [arch/riscv/kernel/vdso/Makefile:60:
arch/riscv/kernel/vdso/vdso.so.dbg] Error 1
build errors with clang
ld.lld: error: version script assignment of 'LINUX_4.15' to symbol
'__vdso_getrandom' failed: symbol not defined
llvm-nm: error: arch/riscv/kernel/compat_vdso/compat_vdso.so.dbg: No
such file or directory
ld.lld: error: version script assignment of 'LINUX_4.15' to symbol
'__vdso_getrandom' failed: symbol not defined
llvm-objcopy: error:
'arch/riscv/kernel/compat_vdso/compat_vdso.so.dbg': No such file or
directory
arch/riscv/kernel/compat_signal.c:220:28: error: use of undeclared
identifier 'compat__vdso_rt_sigreturn_offset'
220 | regs->ra = (unsigned long)COMPAT_VDSO_SYMBOL(
| ^
arch/riscv/include/asm/vdso.h:29:42: note: expanded from macro
'COMPAT_VDSO_SYMBOL'
29 | (void __user *)((unsigned long)(base) +
compat__vdso_##name##_offset)
| ^
<scratch space>:317:1: note: expanded from here
317 | compat__vdso_rt_sigreturn_offset
| ^
1 error generated.
## Source
* Kernel version: 6.15.0-rc3
* Git tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/next/linux-next.git
* Git sha: 2c9c612abeb38aab0e87d48496de6fd6daafb00b
* Git describe: next-20250422
* Project details:
https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20250422/
* Architectures: riscv
* Toolchains: clang-20, gcc-13
* Kconfigs: lkftconfig
## Build riscv
* Build log: https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20250422/testrun/28190346/suite/build/test/gcc-13-lkftconfig/log
* Build history:
https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20250422/testrun/28190346/suite/build/test/gcc-13-lkftconfig/history/
* Build details:
https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20250422/testrun/28190346/suite/build/test/gcc-13-lkftconfig/details/
* Build link: https://storage.tuxsuite.com/public/linaro/lkft/builds/2w5Fmeq3a09b3torxIis2kurhBY/
* Kernel config:
https://storage.tuxsuite.com/public/linaro/lkft/builds/2w5Fmeq3a09b3torxIis2kurhBY/config
## Steps to reproduce on riscv
- tuxmake --runtime podman --target-arch riscv --toolchain clang-20
--kconfig tinyconfig --kconfig-add rv32_defconfig LLVM=1
- tuxmake --runtime podman --target-arch riscv --toolchain gcc-13
--kconfig https://storage.tuxsuite.com/public/linaro/lkft/builds/2w5Fmeq3a09b3torxIis2kurhBY/config
--
Linaro LKFT
https://lkft.linaro.org
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: next-20250422: arch/riscv/kernel/vdso/vdso.so.dbg: dynamic relocations are not supported
2025-04-23 14:45 next-20250422: arch/riscv/kernel/vdso/vdso.so.dbg: dynamic relocations are not supported Naresh Kamboju
@ 2025-04-30 15:48 ` Miguel Ojeda
2025-05-01 0:44 ` Nathan Chancellor
0 siblings, 1 reply; 4+ messages in thread
From: Miguel Ojeda @ 2025-04-30 15:48 UTC (permalink / raw)
To: naresh.kamboju
Cc: anders.roxell, aou, arnd, dan.carpenter, linux-kernel,
linux-riscv, lkft-triage, llvm, masahiroy, namcao, nathan, palmer,
regressions
On Wed, 23 Apr 2025 20:15:45 +0530 Naresh Kamboju <naresh.kamboju@linaro.org> wrote:
>
> build errors with clang
> ld.lld: error: version script assignment of 'LINUX_4.15' to symbol
> '__vdso_getrandom' failed: symbol not defined
> llvm-nm: error: arch/riscv/kernel/compat_vdso/compat_vdso.so.dbg: No
> such file or directory
I have also been seeing this too in my Rust-enabled builds for a few
days at least.
Thanks!
Cheers,
Miguel
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: next-20250422: arch/riscv/kernel/vdso/vdso.so.dbg: dynamic relocations are not supported
2025-04-30 15:48 ` Miguel Ojeda
@ 2025-05-01 0:44 ` Nathan Chancellor
2025-05-01 9:12 ` Alexandre Ghiti
0 siblings, 1 reply; 4+ messages in thread
From: Nathan Chancellor @ 2025-05-01 0:44 UTC (permalink / raw)
To: Miguel Ojeda
Cc: naresh.kamboju, anders.roxell, aou, arnd, dan.carpenter,
linux-kernel, linux-riscv, lkft-triage, llvm, masahiroy, namcao,
palmer, regressions
On Wed, Apr 30, 2025 at 05:48:45PM +0200, Miguel Ojeda wrote:
> On Wed, 23 Apr 2025 20:15:45 +0530 Naresh Kamboju <naresh.kamboju@linaro.org> wrote:
> >
> > build errors with clang
> > ld.lld: error: version script assignment of 'LINUX_4.15' to symbol
> > '__vdso_getrandom' failed: symbol not defined
> > llvm-nm: error: arch/riscv/kernel/compat_vdso/compat_vdso.so.dbg: No
> > such file or directory
>
> I have also been seeing this too in my Rust-enabled builds for a few
> days at least.
I forgot to follow up here and say that I sent a patch for this, it just
needs to be applied by the RISC-V folks.
https://lore.kernel.org/20250423-riscv-fix-compat_vdso-lld-v2-1-b7bbbc244501@kernel.org/
Cheers,
Nathan
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: next-20250422: arch/riscv/kernel/vdso/vdso.so.dbg: dynamic relocations are not supported
2025-05-01 0:44 ` Nathan Chancellor
@ 2025-05-01 9:12 ` Alexandre Ghiti
0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Ghiti @ 2025-05-01 9:12 UTC (permalink / raw)
To: Nathan Chancellor, Miguel Ojeda
Cc: naresh.kamboju, anders.roxell, aou, arnd, dan.carpenter,
linux-kernel, linux-riscv, lkft-triage, llvm, masahiroy, namcao,
palmer, regressions
On 01/05/2025 02:44, Nathan Chancellor wrote:
> On Wed, Apr 30, 2025 at 05:48:45PM +0200, Miguel Ojeda wrote:
>> On Wed, 23 Apr 2025 20:15:45 +0530 Naresh Kamboju <naresh.kamboju@linaro.org> wrote:
>>> build errors with clang
>>> ld.lld: error: version script assignment of 'LINUX_4.15' to symbol
>>> '__vdso_getrandom' failed: symbol not defined
>>> llvm-nm: error: arch/riscv/kernel/compat_vdso/compat_vdso.so.dbg: No
>>> such file or directory
>> I have also been seeing this too in my Rust-enabled builds for a few
>> days at least.
> I forgot to follow up here and say that I sent a patch for this, it just
> needs to be applied by the RISC-V folks.
>
> https://lore.kernel.org/20250423-riscv-fix-compat_vdso-lld-v2-1-b7bbbc244501@kernel.org/
Yes, we will, I just want to review the assembly part of the original
patchset before!
Thanks for the heads-up,
Alex
>
> Cheers,
> Nathan
>
> _______________________________________________
> linux-riscv mailing list
> linux-riscv@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-05-01 9:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-23 14:45 next-20250422: arch/riscv/kernel/vdso/vdso.so.dbg: dynamic relocations are not supported Naresh Kamboju
2025-04-30 15:48 ` Miguel Ojeda
2025-05-01 0:44 ` Nathan Chancellor
2025-05-01 9:12 ` Alexandre Ghiti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).