[CRIU] alpine linux

Cyrill Gorcunov gorcunov at gmail.com
Mon Jun 27 10:47:39 PDT 2016


On Mon, Jun 27, 2016 at 3:27 PM, Adrian Reber <adrian at lisas.de> wrote:
> On Mon, Jun 27, 2016 at 12:48:00AM +0000, Ross Boucher wrote:
>> If you want to try to reproduce what I'm seeing you can run this Dockerfile
>> from the criu src directory:
>>
>> FROM alpine:3.2
>>
>> RUN apk update && apk add \
>>                 build-base \
>>                 protobuf-c-dev \
>>                 protobuf-dev \
>>                 python \
>>                 libaio-dev \
>>                 libcap-dev \
>>                 libnl3-dev \
>>                 pkgconfig
>>
>> COPY . /criu
>> WORKDIR /criu
>>
>> RUN make clean && make -j $(nproc)
>>
>>
>> On Sun, Jun 26, 2016 at 5:35 PM Ross Boucher <rboucher at gmail.com> wrote:
>>
>> > Has anyone tried or succeeded in building CRIU on alpine linux? I'm not
>> > able to get it to compile (error below but probably not that useful).
>> >
>> > -Ross
>> >
>> > /root/criu-2.3/criu/include/files.h:43:14: error: field 'stat' has
>> > incomplete type
>> >   struct stat stat;
>
> Trying to build CRIU in LXC alpine container I can get further than you
> by adding additional includes and casts but it later fails in fsnotify.c
> where CRIU wants to use the syscall open_by_handle_at() which does not
> exist in alpine's libc (musl).
>
> So at least open_by_handle_at() support must be added to musl to
> continue.
>
> See my diff to get this far. Not sure how useful it would be to submit
> this as a real patch to CRIU.

I think it will be useful.


More information about the CRIU mailing list