• Cyrill Gorcunov's avatar
    make: arch -- Make sure the syscalls headers are generated before deps · ff328579
    Cyrill Gorcunov authored
    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: 's avatarAndrey Vagin <avagin@openvz.org>
    Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
    Tested-by: 's avatarAndrew Vagin <avagin@parallels.com>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    ff328579
Name
Last commit
Last update
Documentation Loading commit data...
arch Loading commit data...
include Loading commit data...
pie Loading commit data...
protobuf Loading commit data...
scripts Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Makefile Loading commit data...
Makefile.crtools Loading commit data...
README Loading commit data...
cr-check.c Loading commit data...
cr-dump.c Loading commit data...
cr-exec.c Loading commit data...
cr-restore.c Loading commit data...
cr-show.c Loading commit data...
crtools.c Loading commit data...
eventfd.c Loading commit data...
eventpoll.c Loading commit data...
fifo.c Loading commit data...
file-ids.c Loading commit data...
file-lock.c Loading commit data...
files-reg.c Loading commit data...
files.c Loading commit data...
fsnotify.c Loading commit data...
image.c Loading commit data...
ipc_ns.c Loading commit data...
kcmp-ids.c Loading commit data...
libnetlink.c Loading commit data...
log.c Loading commit data...
mount.c Loading commit data...
namespaces.c Loading commit data...
net.c Loading commit data...
netfilter.c Loading commit data...
parasite-syscall.c Loading commit data...
pipes.c Loading commit data...
proc_parse.c Loading commit data...
protobuf.c Loading commit data...
pstree.c Loading commit data...
ptrace.c Loading commit data...
rbtree.c Loading commit data...
shmem.c Loading commit data...
signalfd.c Loading commit data...
sk-inet.c Loading commit data...
sk-packet.c Loading commit data...
sk-queue.c Loading commit data...
sk-tcp.c Loading commit data...
sk-unix.c Loading commit data...
sockets.c Loading commit data...
sysctl.c Loading commit data...
tty.c Loading commit data...
util.c Loading commit data...
uts_ns.c Loading commit data...