powerpc: clang-nightly: fatal error: error in backend: Trying to obtain a reserved register "r2".

2 messages, 2 authors, 2024-10-25 · open the first message on its own page

powerpc: clang-nightly: fatal error: error in backend: Trying to obtain a reserved register "r2".

From: Naresh Kamboju <hidden>
Date: 2024-10-24 15:05:23

The powerpc clang-nightly version 20.0.0 build warnings / errors noticed on
the Today's Linux next-20241024 tag.

powerpc:
  build:
    * clang-nightly-maple_defconfig
    * clang-nightly-tinyconfig
    * clang-nightly-tqm8xx_defconfig
    * clang-nightly-mpc83xx_defconfig
    * clang-nightly-defconfig
    * clang-nightly-cell_defconfig
    * clang-nightly-ppc64e_defconfig
    * clang-nightly-allnoconfig

Reported-by: Linux Kernel Functional Testing <redacted>

Build errors:
----------
fatal error: error in backend: Trying to obtain a reserved register "r2".
clang: error: clang frontend command failed with exit code 70 (use -v
to see invocation)
Debian clang version 20.0.0
(++20241023112211+699ce16b6284-1~exp1~20241023112229.1038)
Target: powerpc-unknown-linux-gnu

metadata:
----------
kernel: 6.12.0-rc4
git_repo: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git_sha: fd21fa4a912ebbf8a6a341c31d8456f61e7d4170
git_describe: next-20241024
Test details: https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20241024
config:  https://storage.tuxsuite.com/public/linaro/lkft/builds/2ns7sv9TltSifV46KaGs3BxlB85/config
download_url: https://storage.tuxsuite.com/public/linaro/lkft/builds/2ns7sv9TltSifV46KaGs3BxlB85/
arch: powerpc
toolchain: Clang-nightly (version 20.0.0)

build log link:
------
 - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20241024/testrun/25530243/suite/build/test/clang-nightly-defconfig/log
  - https://storage.tuxsuite.com/public/linaro/lkft/builds/2ns7sv9TltSifV46KaGs3BxlB85/

steps to reproduce:
------
# tuxmake --runtime podman --target-arch powerpc --toolchain
clang-nightly --kconfig defconfig LLVM=1 LLVM_IAS=0
LD=powerpc64le-linux-gnu-ld


--
Linaro LKFT
https://lkft.linaro.org

Re: powerpc: clang-nightly: fatal error: error in backend: Trying to obtain a reserved register "r2".

From: Nathan Chancellor <nathan@kernel.org>
Date: 2024-10-25 01:22:40

Hi Naresh,

On Thu, Oct 24, 2024 at 08:35:11PM +0530, Naresh Kamboju wrote:
The powerpc clang-nightly version 20.0.0 build warnings / errors noticed on
the Today's Linux next-20241024 tag.
...
Build errors:
----------
fatal error: error in backend: Trying to obtain a reserved register "r2".
Thanks for the report. I reported this upstream earlier, it should be
resolved now but it will take a little bit for that to filter into
clang-nightly from Debian.

https://github.com/llvm/llvm-project/pull/112603#issuecomment-2430709704

Cheers,
Nathan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help