Package: src:criu
Version: 3.8.1-1
Severity: important

Hi!

I've been doing a full rebuild of the Debian archive, building all
source packages targeting armel and armhf using arm64 hardware. We are
planning in future to move all of our 32-bit armel/armhf builds to
using arm64 machines, so this rebuild is to identify packages that
might have problems with this configuration.

I've tried to build criu for armhf on top of arm64, and it's failing
to build:

...
  PBCC     images/pipe-data.pb-c.c
  PBCC     images/sk-packet.pb-c.c
  PBCC     images/pstree.pb-c.c
  PBCC     images/fs.pb-c.c
In file included from include/common/lock.h:9,
                 from compel/plugins/std/infect.c:5:
include/common/asm/atomic.h:61:2: error: #error ARM architecture version 
(CONFIG_ARMV*) not set or unsupported.
 #error ARM architecture version (CONFIG_ARMV*) not set or unsupported.
  ^~~~~
include/common/asm/atomic.h: In function 'atomic_add_return':
include/common/asm/atomic.h:82:2: error: implicit declaration of function 
'smp_mb' [-Werror=implicit-function-declaration]
  smp_mb();
  ^~~~~~
  PBCC     images/eventpoll.pb-c.c
  AR       soccr/libsoccr.a
  PBCC     images/eventfd.pb-c.c
cc1: all warnings being treated as errors
make[2]: *** 
[/home/steve/debian/build/criu/criu-3.8.1/scripts/nmk/scripts/build.mk:208: 
compel/plugins/std/infect.o] Error 1
make[1]: *** [Makefile.compel:52: compel/plugins/std.lib.a] Error 2
make[1]: *** Waiting for unfinished jobs....
...

It's blindly using the output of uname and assuming that's the right
answer for the target system. I *might* be building on a system that's
showing as "armv8l", but I'm building *for* armhf which is ARMv7 not
ARMv7. This package could do with a way to specify what the target is
via configuration, rather than the simple parsing of uname that's
currently hard-coded in the Makefile.

Full build log online at

  
https://www.einval.com/debian/arm/rebuild-logs/armhf/FAIL/criu_3.8.1-1_armhf.log

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

Kernel: Linux 4.9.0-8-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Reply via email to