From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============1862763703834395036==" MIME-Version: 1.0 From: Philip Li 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 Message-ID: <20200611005144.GA10966@intel.com> In-Reply-To: List-Id: --===============1862763703834395036== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 > wrote: > > > > > > On 2020-06-10, 'Nick Desaulniers' via Clang Built Linux wrote: > > >On Wed, Jun 10, 2020 at 12:43 PM kernel test robot w= rote: > > >> > > >> TO: Nathan Chancellor > > >> CC: 0day robot > > >> > > >> tree: https://github.com/0day-ci/linux/commits/UPDATE-20200603-033= 008/Nathan-Chancellor/s390-vdso-Use-LD-instead-of-CC-to-link-vDSO/20200528-= 140859 > > >> head: b19361026b76f9167c9206f654b12f53023550d1 > > >> commit: b19361026b76f9167c9206f654b12f53023550d1 [1/1] s390: vdso: U= se $(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=3D1 build): > > >> wget https://raw.githubusercontent.com/intel/lkp-tests/maste= r/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=3D$HOME/0day COMPILER=3Dclang make.cro= ss ARCH=3Ds390 > > >> > > >> If you fix the issue, kindly add following tag as appropriate > > >> Reported-by: kernel test robot > > >> > > >> 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=3Dld.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 --===============1862763703834395036==--