On Wed, Jun 10, 2020 at 4:04 PM 'Fangrui Song' via Clang Built Linux
<clang-built-linux(a)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(a)intel.com> wrote:
>>
>> TO: Nathan Chancellor <natechancellor(a)gmail.com>
>> CC: 0day robot <lkp(a)intel.com>
>>
>> tree:
https://github.com/0day-ci/linux/commits/UPDATE-20200603-033008/Nathan-Ch...
>> 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(a)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