[CRIU] [PATCH] travis: workaround a compilation error for fedora rawhide

Andrei Vagin avagin at openvz.org
Wed Oct 4 02:19:53 MSK 2017


From: Andrei Vagin <avagin at virtuozzo.com>

In file included from /usr/include/linux/aio_abi.h:31:0,
                 from criu/cr-check.c:24:
/usr/include/sys/mount.h:35:3: error: expected identifier before numeric constant
   MS_RDONLY = 1,  /* Mount read-only.  */
   ^
make[2]: *** [/criu/scripts/nmk/scripts/build.mk:111: criu/cr-check.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [criu/Makefile:80: criu/built-in.o] Error 2
make: *** [Makefile:230: criu] Error 2

Cc: Adrian Reber <areber at redhat.com>
Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
---
 scripts/travis/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/travis/Makefile b/scripts/travis/Makefile
index 614f1bbd7..48853c17f 100644
--- a/scripts/travis/Makefile
+++ b/scripts/travis/Makefile
@@ -20,7 +20,7 @@ $(TARGETS):
 	echo 'DOCKER_OPTS="--storage-driver=devicemapper"' > /etc/default/docker
 	restart docker
 	$(MAKE) -C ../build $@$(target-suffix)
-	docker run --rm -it --privileged -v /lib/modules:/lib/modules criu-$@ ./scripts/travis/asan.sh $(ZDTM_OPTIONS)
+	docker run --rm -it --privileged -v /lib/modules:/lib/modules --tmpfs /run criu-$@ ./scripts/travis/asan.sh $(ZDTM_OPTIONS)
 
 %:
 	$(MAKE) -C ../build $@$(target-suffix)
-- 
2.13.3



More information about the CRIU mailing list