[CRIU] [PATCH 3/3] make: arch -- Make sure the syscalls headers are generated before deps

Cyrill Gorcunov gorcunov at openvz.org
Mon Feb 18 16:53:27 EST 2013


In case if here is a fast cpu and make is done in parallel
we may have the following error

| GEN      arch/x86/sys-exec-tbl.c
| GEN      arch/x86/syscalls.S
| CC       arch/x86/crtools.o
| CC       arch/x86/cpu.o
| CC       arch/x86/syscalls.o
| LINK     arch/x86/syscalls.built-in.o
| In file included from include/restorer.h:12:0,
|                 from arch/x86/crtools.c:19:
| include/lock.h: In function ‘futex_set_and_wake’:
| include/lock.h:56:2: error: implicit declaration of function ‘sys_futex’ [-Werror=implicit-function-declaration]
| cc1: all warnings being treated as errors
| make[1]: *** [arch/x86/crtools.o] Error 1
| make: *** [arch/x86] Error 2

This is because crtools.c includes syscall.h but this header
is generated by a special script. So use $(deps-after) feature
provided by our make engine making sure the header is generated
before the deps are started to build.

Reported-by: Andrey Vagin <avagin at openvz.org>
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 arch/arm/Makefile | 1 +
 arch/x86/Makefile | 1 +
 2 files changed, 2 insertions(+)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-make-arch-Make-sure-the-syscalls-headers-are-generat.patch
Type: text/x-patch
Size: 574 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20130219/f24079cf/attachment.bin>


More information about the CRIU mailing list