Hello, I could reproduce the build error in a qemu mipsel VM (installed from [1]).
Also I found that in the chromiumos repository a patch from Ben Chan is applied which seem to just fix this issue [2][3]. (Otherwise this fork seems stuck at version 0.0.5.) With this patch applied the package at least builds. Kind regards, Bernhard These are the steps for the rebuild with the patch (took over 2 hours to build in the qemu VM ...): benutzer@debian:~$ uname -a Linux debian 3.16.0-4-4kc-malta #1 Debian 3.16.7-ckt2-1 (2014-12-08) mips GNU/Linux benutzer@debian:~$ dpkg --print-architecture mipsel git clone https://chromium.googlesource.com/chromiumos/third_party/tlsdate cd tlsdate git format-patch --keep-subject -o .. -1 cd .. apt-get source tlsdate mkdir tlsdate-0.0.12/debian/patches cp 0001-tlsdate-add-SECCOMP_AUDIT_ARCH-definition-for-MIPS.patch tlsdate-0.0.12/debian/patches/ echo 0001-tlsdate-add-SECCOMP_AUDIT_ARCH-definition-for-MIPS.patch > tlsdate-0.0.12/debian/patches/series cd tlsdate-0.0.12 quilt push debian/patches/0001-tlsdate-add-SECCOMP_AUDIT_ARCH-definition-for-MIPS.patch [1] http://ftp.nl.debian.org/debian/dists/testing/main/installer-mipsel/20141002/images/malta/netboot [2] https://chromium.googlesource.com/chromiumos/third_party/tlsdate/+/5175004c2560dc3955abe45e442180fd1df0d720%5E!/ [3] https://chromium-review.googlesource.com/#/c/219419/
From 5175004c2560dc3955abe45e442180fd1df0d720 Mon Sep 17 00:00:00 2001 From: Ben Chan <benc...@chromium.org> Date: Mon, 22 Sep 2014 22:08:43 -0700 Subject: tlsdate: add SECCOMP_AUDIT_ARCH definition for MIPS BUG=chromium:416748 TEST=`USE=seccomp emerge-{x86,amd64,arm,mipsel-o32}-generic tlsdate` Change-Id: Ie50b4739aa35042d9a322c05c8d1b6875f14ee4a Reviewed-on: https://chromium-review.googlesource.com/219419 Reviewed-by: Jorge Lucangeli Obes <jorg...@chromium.org> Tested-by: Ben Chan <benc...@chromium.org> Commit-Queue: Ben Chan <benc...@chromium.org> --- src/seccomp.c | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/seccomp.c b/src/seccomp.c index bc25e4c..8ce0967 100644 --- a/src/seccomp.c +++ b/src/seccomp.c @@ -44,10 +44,24 @@ #elif defined(__x86_64__) # define SECCOMP_AUDIT_ARCH AUDIT_ARCH_X86_64 #elif defined(__arm__) -# ifndef EM_ARM -# define EM_ARM 40 -# endif +# ifndef EM_ARM +# define EM_ARM 40 +# endif # define SECCOMP_AUDIT_ARCH AUDIT_ARCH_ARM +#elif defined(__mips__) +# if defined(__mips64) +# if defined(__MIPSEB__) +# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_MIPS64 +# else +# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_MIPSEL64 +# endif +# else +# if defined(__MIPSEB__) +# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_MIPS +# else +# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_MIPSEL +# endif +# endif #else # error "Platform does not support seccomp filter yet" #endif -- 2.1.3