All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philip Li <philip.li@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [linux-review:UPDATE-20200603-033008/Nathan-Chancellor/s390-vdso-Use-LD-instead-of-CC-to-link-vDSO/20200528-140859 1/1] ld.lld: error: unknown argument '-fPIC'
Date: Thu, 11 Jun 2020 08:51:44 +0800	[thread overview]
Message-ID: <20200611005144.GA10966@intel.com> (raw)
In-Reply-To: <CAKwvOd=pCUmhhCazgg5bM5QHxeXo40NAwkTqer9MweGhCXkK7w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2642 bytes --]

On Wed, Jun 10, 2020 at 04:30:45PM -0700, Nick Desaulniers wrote:
> On Wed, Jun 10, 2020 at 4:04 PM 'Fangrui Song' via Clang Built Linux
> <clang-built-linux@googlegroups.com> wrote:
> >
> >
> > On 2020-06-10, 'Nick Desaulniers' via Clang Built Linux wrote:
> > >On Wed, Jun 10, 2020 at 12:43 PM kernel test robot <lkp@intel.com> wrote:
> > >>
> > >> TO: Nathan Chancellor <natechancellor@gmail.com>
> > >> CC: 0day robot <lkp@intel.com>
> > >>
> > >> tree:   https://github.com/0day-ci/linux/commits/UPDATE-20200603-033008/Nathan-Chancellor/s390-vdso-Use-LD-instead-of-CC-to-link-vDSO/20200528-140859
> > >> head:   b19361026b76f9167c9206f654b12f53023550d1
> > >> commit: b19361026b76f9167c9206f654b12f53023550d1 [1/1] s390: vdso: Use $(LD) instead of $(CC) to link vDSO
> > >> config: s390-randconfig-r021-20200607 (attached as .config)
> > >> compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project bc2b70982be8f5250cd0082a7190f8b417bd4dfe)
> > >> 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 s390 cross compiling tool for clang build
> > >>         # apt-get install binutils-s390-linux-gnu
> > >>         git checkout b19361026b76f9167c9206f654b12f53023550d1
> > >>         # save the attached .config to linux build tree
> > >>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
> > >>
> > >> If you fix the issue, kindly add following tag as appropriate
> > >> Reported-by: kernel test robot <lkp@intel.com>
> > >>
> > >> All errors (new ones prefixed by >>, old ones prefixed by <<):
> > >>
> > >> >> ld.lld: error: unknown argument '-fPIC'
> > >> ld.lld: error: unknown emulation: elf64_s390
> > >
> > >^ is this another inconsistency we have with emulation modes, or is
> > >this completely unsupported in LLD?
> >
> > LLD does not support EM_S390. I don't know anyone is working on it (or
> > is interested at the support).
> 
> Ah right, Nathan confirmed no LLD support for s390. Philip, we may
> need to not use LD=ld.lld for s390.  Not sure about the second error
> message.
Got it, we will remove the usage of ld.lld for s390.

> 
> >
> > > ld.lld: error: unknown argument '-fPIC'
> >
> > There may be a build system bug.
> >
> > In GNU ld, -f --auxillary is an option. -fPIC is not:
> >
> > % ld.bfd -fPIC -shared a.o
> > % readelf -d a.out | grep PIC
> >   0x000000007ffffffd (AUXILIARY)          Auxiliary library: [PIC]
> >
> -- 
> Thanks,
> ~Nick Desaulniers

      reply	other threads:[~2020-06-11  0:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-10 19:42 [linux-review:UPDATE-20200603-033008/Nathan-Chancellor/s390-vdso-Use-LD-instead-of-CC-to-link-vDSO/20200528-140859 1/1] ld.lld: error: unknown argument '-fPIC' kernel test robot
2020-06-10 22:39 ` Nick Desaulniers
2020-06-10 23:04   ` Fangrui Song
2020-06-10 23:30     ` Nick Desaulniers
2020-06-11  0:51       ` Philip Li [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=20200611005144.GA10966@intel.com \
    --to=philip.li@intel.com \
    --cc=kbuild-all@lists.01.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.