All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nathan Chancellor <nathan@kernel.org>
To: kernel test robot <lkp@intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Palmer Dabbelt <palmer@rivosinc.com>,
	Sasha Levin <sashal@kernel.org>
Subject: Re: [linux-stable-rc:linux-5.10.y 9077/9999] ld.lld: error: arch/riscv/kernel/vdso/rt_sigreturn.o:(.riscv.attributes): rv32i2p1_m2p0_a2p1_c2p0: unsupported version number 2.1 for extension 'i'
Date: Wed, 28 Dec 2022 18:13:27 -0700	[thread overview]
Message-ID: <Y6zpt9lSRrJzwEpm@dev-arch.thelio-3990X> (raw)
In-Reply-To: <202212282306.PrOqTZyG-lkp@intel.com>

On Wed, Dec 28, 2022 at 11:22:16PM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.10.y
> head:   6081b6cc6ce7747d025057e6a64a66133a33b970
> commit: c0bb600f076832764b43ae4ef6ee003d9a71f7f9 [9077/9999] RISC-V: vdso: Do not add missing symbols to version section in linker script
> config: riscv-randconfig-r001-20221228
> compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project f5700e7b69048de958172fb513b336564e7f8709)
> 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
>         # install riscv cross compiling tool for clang build
>         # apt-get install binutils-riscv-linux-gnu
>         # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=c0bb600f076832764b43ae4ef6ee003d9a71f7f9
>         git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
>         git fetch --no-tags linux-stable-rc linux-5.10.y
>         git checkout c0bb600f076832764b43ae4ef6ee003d9a71f7f9
>         # 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=riscv olddefconfig
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/
> 
> 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: arch/riscv/kernel/vdso/rt_sigreturn.o:(.riscv.attributes): rv32i2p1_m2p0_a2p1_c2p0: unsupported version number 2.1 for extension 'i'
> >> ld.lld: error: arch/riscv/kernel/vdso/getcpu.o:(.riscv.attributes): rv32i2p1_m2p0_a2p1_c2p0: unsupported version number 2.1 for extension 'i'
> >> ld.lld: error: arch/riscv/kernel/vdso/flush_icache.o:(.riscv.attributes): rv32i2p1_m2p0_a2p1_c2p0: unsupported version number 2.1 for extension 'i'
> >> ld.lld: error: arch/riscv/kernel/vdso/note.o:(.riscv.attributes): rv32i2p1_m2p0_a2p1_c2p0: unsupported version number 2.1 for extension 'i'

I do not think ld.lld works that well on 5.10; it seems like my patch
clears up a previous build error and exposes this one.

It could be an incompatibility with GNU as that maybe we do not see on
newer versions due to using the integrated assembler?

Cheers,
Nathan

      reply	other threads:[~2022-12-29  1:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-28 15:22 [linux-stable-rc:linux-5.10.y 9077/9999] ld.lld: error: arch/riscv/kernel/vdso/rt_sigreturn.o:(.riscv.attributes): rv32i2p1_m2p0_a2p1_c2p0: unsupported version number 2.1 for extension 'i' kernel test robot
2022-12-29  1:13 ` Nathan Chancellor [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y6zpt9lSRrJzwEpm@dev-arch.thelio-3990X \
    --to=nathan@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=palmer@rivosinc.com \
    --cc=sashal@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.