[CRIU] race in the build system?

Tycho Andersen tycho.andersen at canonical.com
Tue Dec 8 14:40:58 PST 2015


Hi all,

As of a pull today (haven't bisected so not sure what caused it), I'm
seeing races in the build system if I do make -j4. Sometimes it dies
with:

  CC       arch/x86/syscalls.o
arch/x86/syscalls.S: Assembler messages:
arch/x86/syscalls.S:100: Error: symbol `sys_read' is already defined
arch/x86/syscalls.S:101: Error: symbol `sys_write' is already defined
arch/x86/syscalls.S:102: Error: symbol `sys_open' is already defined
arch/x86/syscalls.S:103: Error: symbol `sys_close' is already defined
arch/x86/syscalls.S:104: Error: symbol `sys_lseek' is already defined
arch/x86/syscalls.S:105: Error: symbol `sys_mmap' is already defined
<snip>

And I've also seen,

  DEP      arch/x86/prlimit.d
In file included from include/syscall.h:4:0,
                 from arch/x86/prlimit.c:10:
include/syscall-codes.h:198:2: error: #endif without #if
 #endif /* __ASM_CR_SYSCALL_CODES_H__ */
  ^
  DEP      arch/x86/cpu.d
In file included from include/syscall.h:4:0,
                 from arch/x86/prlimit.c:10:
include/syscall-codes.h:198:2: error: #endif without #if
 #endif /* __ASM_CR_SYSCALL_CODES_H__ */
  ^
In file included from include/syscall.h:4:0,
                 from arch/x86/prlimit.c:10:
include/syscall-codes.h:198:2: error: #endif without #if
 #endif /* __ASM_CR_SYSCALL_CODES_H__ */
  ^
  DEP      arch/x86/cpu.d
  DEP      arch/x86/crtools.d
  DEP      arch/x86/crtools.d
In file included from include/syscall.h:4:0,
                 from include/lock.h:11,
                 from include/restorer.h:12,
                 from arch/x86/crtools.c:16:
include/syscall-codes.h:198:2: error: #endif without #if
 #endif /* __ASM_CR_SYSCALL_CODES_H__ */
  ^

and a third one which I can't reproduce right now. Also, it sometimes succeeds.

Any ideas? :)

Tycho


More information about the CRIU mailing list