Package: criu
Version: 2.9-2
Severity: important

Dear Maintainer,

I was trying to backport criu to jessie following the standard procedure from 
https://wiki.debian.org/SimpleBackportCreation.

Compilation seems to work, but linking fails. Here's part of the output:

...
make[3]: Entering directory '/scratch/debs/criu-2.9'
  GEN      criu/arch/x86/../../include/syscall-codes.h
  GEN      criu/arch/x86/../../include/syscall.h
  GEN      criu/arch/x86/syscalls.S
  DEP      criu/arch/x86/syscalls.d
  GEN      criu/arch/x86/sys-exec-tbl.c
  CC       criu/arch/x86/syscalls.o
  LINK     criu/arch/x86/syscalls.built-in.o
ld: -r and -shared may not be used together
/scratch/debs/criu-2.9/scripts/nmk/scripts/build.mk:150: recipe for target 
'criu/arch/x86/syscalls.built-in.o' failed
make[3]: *** [criu/arch/x86/syscalls.built-in.o] Error 1
make[3]: Leaving directory '/scratch/debs/criu-2.9'
criu/Makefile:39: recipe for target 'syscalls_lib' failed
...


Could the problem be related to the applied patch 
0001-build-nmk-Filter-out-Wl-flags-from-linking-builtin-t.patch?
Or to the linking with ld? I can successfully build criu from the github 
sources on the same system.


-- System Information:
Debian Release: 8.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-0.bpo.2-amd64 (SMP w/16 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Reply via email to