* [next] arm: current.h:53:6: error: out of range pc-relative fixup value
@ 2021-12-22 18:27 Naresh Kamboju
2021-12-22 18:32 ` Nathan Chancellor
0 siblings, 1 reply; 2+ messages in thread
From: Naresh Kamboju @ 2021-12-22 18:27 UTC (permalink / raw)
To: llvm, open list, clang-built-linux, Linux-Next Mailing List, Linux ARM
Cc: Nick Desaulniers, Nathan Chancellor, Arnd Bergmann,
Catalin Marinas, Ard Biesheuvel, Nicolas Pitre, Linus Walleij
[ Please ignore this email if it is already reported ]
On Linux next 20211220 (and 20211222) tag following arm config builds failed
with clang-11, clang-12, clang-13 and clang-nightly.
Build errors:
-------------
In file included from /builds/linux/kernel/sched/core.c:10:
In file included from /builds/linux/include/trace/events/sched.h:8:
In file included from /builds/linux/include/linux/kthread.h:6:
In file included from /builds/linux/include/linux/sched.h:12:
/builds/linux/arch/arm/include/asm/current.h:53:6: error: out of range
pc-relative fixup value
asm(LOAD_SYM_ARMV6(%0, __current) : "=r"(cur));
^
/builds/linux/arch/arm/include/asm/insn.h:25:2: note: expanded from
macro 'LOAD_SYM_ARMV6'
" ldr " #reg ", =" #sym " \n\t" \
^
<inline asm>:1:3: note: instantiated into assembly here
ldr r2, =__current
^
Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
meta data:
-----------
git describe: next-20211220 to next-20211222
git_repo: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git_sha: 2bd48302750c652889a2604b3df8b591c1d3af08
git_short_log: 2bd48302750c (\"Add linux-next specific files for 20211222\")
target_arch: arm
toolchain: clang-11, clang-12, clang-13 and clang-nightly
Build log:
https://builds.tuxbuild.com/22doqqkr5uM1RUG67iJevPNL9nQ/
Regressions found on arm:
- clang-11-vexpress_defconfig
- clang-11-shmobile_defconfig
- clang-13-at91_dt_defconfig
- clang-13-lpc32xx_defconfig
- clang-11-omap2plus_defconfig
- clang-12-allnoconfig
- clang-13-imx_v6_v7_defconfig
- clang-11-mini2440_defconfig
- clang-13-imx_v4_v5_defconfig
- clang-12-multi_v5_defconfig
- clang-13-mxs_defconfig
- clang-13-ixp4xx_defconfig
- clang-11-lpc32xx_defconfig
- clang-nightly-s3c6400_defconfig
- clang-13-nhk8815_defconfig
- clang-12-imx_v6_v7_defconfig
- clang-11-nhk8815_defconfig
- clang-12-ixp4xx_defconfig
- clang-13-footbridge_defconfig
- clang-11-tinyconfig
- clang-11-axm55xx_defconfig
- clang-12-bcm2835_defconfig
- clang-12-davinci_all_defconfig
- clang-12-omap2plus_defconfig
- clang-11-at91_dt_defconfig
- clang-11-multi_v5_defconfig
- clang-11-s3c2410_defconfig
- clang-11-footbridge_defconfig
- clang-12-s3c2410_defconfig
- clang-12-mxs_defconfig
- clang-12-omap1_defconfig
- clang-11-defconfig
- clang-11-omap1_defconfig
- clang-13-orion5x_defconfig
- clang-12-orion5x_defconfig
- clang-11-davinci_all_defconfig
- clang-12-lpc32xx_defconfig
- clang-11-ixp4xx_defconfig
- clang-12-mini2440_defconfig
- clang-11-u8500_defconfig
- clang-11-integrator_defconfig
- clang-13-davinci_all_defconfig
- clang-11-mxs_defconfig
- clang-11-orion5x_defconfig
- clang-12-tinyconfig
- clang-12-footbridge_defconfig
- clang-11-imx_v4_v5_defconfig
- clang-13-s3c2410_defconfig
- clang-nightly-bcm2835_defconfig
- clang-11-allnoconfig
- clang-11-exynos_defconfig
- clang-11-keystone_defconfig
- clang-13-mini2440_defconfig
- clang-13-integrator_defconfig
- clang-12-imx_v4_v5_defconfig
- clang-13-multi_v5_defconfig
- clang-13-omap1_defconfig
- clang-11-bcm2835_defconfig
- clang-11-imx_v6_v7_defconfig
- clang-12-at91_dt_defconfig
- clang-12-integrator_defconfig
- clang-12-nhk8815_defconfig
steps to reproduce:
-------------------
# To install tuxmake on your system globally:
# sudo pip3 install -U tuxmake
#
# See https://docs.tuxmake.org/ for complete documentation.
# Original tuxmake command with fragments listed below.
# tuxmake --runtime podman --target-arch arm --toolchain clang-11
--kconfig at91_dt_defconfig LLVM=1 LLVM_IAS=1
tuxmake --runtime podman --target-arch arm --toolchain clang-11
--kconfig https://builds.tuxbuild.com/22doqqkr5uM1RUG67iJevPNL9nQ/config
LLVM=1 LLVM_IAS=1
--
Linaro LKFT
https://lkft.linaro.org
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [next] arm: current.h:53:6: error: out of range pc-relative fixup value
2021-12-22 18:27 [next] arm: current.h:53:6: error: out of range pc-relative fixup value Naresh Kamboju
@ 2021-12-22 18:32 ` Nathan Chancellor
0 siblings, 0 replies; 2+ messages in thread
From: Nathan Chancellor @ 2021-12-22 18:32 UTC (permalink / raw)
To: Naresh Kamboju
Cc: llvm, open list, Linux-Next Mailing List, Linux ARM,
Nick Desaulniers, Arnd Bergmann, Catalin Marinas, Ard Biesheuvel,
Nicolas Pitre, Linus Walleij
On Wed, Dec 22, 2021 at 11:57:20PM +0530, Naresh Kamboju wrote:
> [ Please ignore this email if it is already reported ]
>
> On Linux next 20211220 (and 20211222) tag following arm config builds failed
> with clang-11, clang-12, clang-13 and clang-nightly.
>
> Build errors:
> -------------
> In file included from /builds/linux/kernel/sched/core.c:10:
> In file included from /builds/linux/include/trace/events/sched.h:8:
> In file included from /builds/linux/include/linux/kthread.h:6:
> In file included from /builds/linux/include/linux/sched.h:12:
> /builds/linux/arch/arm/include/asm/current.h:53:6: error: out of range
> pc-relative fixup value
> asm(LOAD_SYM_ARMV6(%0, __current) : "=r"(cur));
> ^
> /builds/linux/arch/arm/include/asm/insn.h:25:2: note: expanded from
> macro 'LOAD_SYM_ARMV6'
> " ldr " #reg ", =" #sym " \n\t" \
> ^
> <inline asm>:1:3: note: instantiated into assembly here
> ldr r2, =__current
> ^
Report on our issue tracker with discussion:
https://github.com/ClangBuiltLinux/linux/issues/1551
Ard has a fix that should resolve this here:
https://lore.kernel.org/r/20211222104939.1154570-1-ardb@kernel.org/
I am about to reply with a Tested-by tag, I have tested LLVM 12 and 13
and my 14 build is running right now. Might be helpful for you to run
that patch through your matrix as well.
Cheers,
Nathan
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-22 18:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-22 18:27 [next] arm: current.h:53:6: error: out of range pc-relative fixup value Naresh Kamboju
2021-12-22 18:32 ` Nathan Chancellor
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).