[CRIU] Lots of "conflicting type" errors when trying to build

Bryan Cattle kc7qif at gmail.com
Fri Aug 4 08:55:03 MSK 2017


Hello,
I'm trying to build CRIU and getting tons of "conflicting type" errors. I'm
trying to build using headers from an older kernel than the one running on
my system. (The reason for this is because I want to run CRIU under a user
mode kernel.)

I'm getting errors like the following:

  CC       criu/arch/x86/crtools.o
In file included from /usr/include/asm-generic/types.h:6:0,
                 from /usr/include/asm/types.h:4,
                 from
/home/ec2-user/linux-4.3.5/include/uapi/linux/types.h:4,
                 from /home/ec2-user/linux-4.3.5/include/linux/types.h:5,
                 from
/home/ec2-user/linux-4.3.5/include/uapi/linux/futex.h:5,
                 from /home/ec2-user/linux-4.3.5/include/linux/futex.h:4,
                 from include/common/lock.h:5,
                 from criu/include/restorer.h:13,
                 from criu/arch/x86/crtools.c:21:
/home/ec2-user/linux-4.3.5/include/asm-generic/int-ll64.h:24:26: error:
conflicting types for ‘s64’
 typedef signed long long s64;
                          ^
In file included from criu/arch/x86/include/asm/int.h:4:0,
                 from criu/arch/x86/include/asm/types.h:9,
                 from criu/include/types.h:4,
                 from criu/arch/x86/crtools.c:11:
criu/include/asm-generic/int.h:7:18: note: previous declaration of ‘s64’
was here
 typedef int64_t  s64;

TLDR: the definition of s64 in criu/include/asm-generic/int.h is
conflicting with the definition in
linux-4.3.5/include/asm-generic/int-ll64.h.

Why is this happening? Does this indicate some sort of incompatibility with
kernel version 4.3.5?

I'm compiling CRIU with the command

$ make USERCFLAGS="-I$HOME/include -I$HOME/linux-4.3.5/include/ -L$HOME/lib"

Thanks,
Bryan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20170804/9b87b510/attachment.html>


More information about the CRIU mailing list