[CRIU] [PATCH 0/4] PPC+clang compile fixes

Kir Kolyshkin kir at virtuozzo.com
Thu Oct 27 14:04:36 PDT 2016


On 10/27/2016 02:11 AM, Laurent Dufour wrote:
> On 26/10/2016 07:08, Kir Kolyshkin wrote:
>> This series aims to compile CRIU for ppc64 with clang-3.8 instead of gcc.
>> With these patches I was able to compile CRIU (with either clang or gcc),
>> but did no further testing.
>>
>> Now, as I have near zero experience with Power, and zero hardware,
>> please do not commit any of these without a word from Monsieur Dufour.
>>
>> Kir Kolyshkin (4):
>>    ppc64/crtools.c: fix compilation with clang
>>    ppc64/restore.h: fix for clang
>>    compel/handle-elf.c: handle R_PPC64_REL32
>>    ppc asm/bitops.h: fix for clang
>>
>>   compel/src/lib/handle-elf.c           | 1 +
>>   criu/arch/ppc64/crtools.c             | 2 +-
>>   criu/arch/ppc64/include/asm/bitops.h  | 2 +-
>>   criu/arch/ppc64/include/asm/restore.h | 2 +-
>>   4 files changed, 4 insertions(+), 3 deletions(-)
>>
> Hi Kir,
>
> Thanks for doing this job, I'd like to give it a try on my victim.
> I build criu setting HOSTCC at clang but I still see al lot gcc calls
> when building criu this way :
> make -j 80 HOSTCC=clang V=1
>
> Indeed only 7 files stored in compel/ are built using clang.
>
> Am I missing some interesting patches ?

HOSTCC is there for compel only, you need CC=clang.

After looking into this, I think we should derive the value
of CC from that of HOSTCC. I will send a patch shortly.




More information about the CRIU mailing list