* [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'
@ 2020-06-10 19:42 kernel test robot
2020-06-10 22:39 ` Nick Desaulniers
0 siblings, 1 reply; 5+ messages in thread
From: kernel test robot @ 2020-06-10 19:42 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 1444 bytes --]
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
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33659 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* 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'
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
0 siblings, 1 reply; 5+ messages in thread
From: Nick Desaulniers @ 2020-06-10 22:39 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 1586 bytes --]
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?
--
Thanks,
~Nick Desaulniers
^ permalink raw reply [flat|nested] 5+ messages in thread
* 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'
2020-06-10 22:39 ` Nick Desaulniers
@ 2020-06-10 23:04 ` Fangrui Song
2020-06-10 23:30 ` Nick Desaulniers
0 siblings, 1 reply; 5+ messages in thread
From: Fangrui Song @ 2020-06-10 23:04 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2019 bytes --]
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).
> 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]
^ permalink raw reply [flat|nested] 5+ messages in thread
* 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'
2020-06-10 23:04 ` Fangrui Song
@ 2020-06-10 23:30 ` Nick Desaulniers
2020-06-11 0:51 ` Philip Li
0 siblings, 1 reply; 5+ messages in thread
From: Nick Desaulniers @ 2020-06-10 23:30 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2407 bytes --]
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.
>
> > 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* 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'
2020-06-10 23:30 ` Nick Desaulniers
@ 2020-06-11 0:51 ` Philip Li
0 siblings, 0 replies; 5+ messages in thread
From: Philip Li @ 2020-06-11 0:51 UTC (permalink / raw)
To: kbuild-all
[-- 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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-06-11 0:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.