=== RUN Test
cannot build multi-lib syscall runner: exit status 1
In file included from /usr/include/stdlib.h:24:0,
from /tmp/check-2150495705731966221/1/seccomp_syscall_runner.c:3:
/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or directory
compilation terminated.
----------------------------------------------------------------------
FAIL: main_test.go:769: snapSeccompSuite.TestCompatArchWorks
main_test.go:791:
s.runBpf(c, t.seccompWhitelist, t.bpfInput, t.expected)
main_test.go:316:
c.Fatalf("unexpected error for %q (failed to run %q): %s", seccompWhitelist, lastKmsg(), err)
... Error: unexpected error for "read" (failed to run "Showing last 10 lines of dmesg:\n[169174.985736] audit: type=1326 audit(1513083015.385:1588): auid=1000 uid=1000 gid=1000 ses=2 pid=31520 comm=\"seccomp_syscall\" exe=\"/tmp/check-1467387486965314352/1/seccomp_syscall_runner\" sig=31 arch=c000003e syscall=41 compat=0 ip=0x440199 code=0x0\n[169175.123694] audit: type=1326 audit(1513083015.523:1589): auid=1000 uid=1000 gid=1000 ses=2 pid=31523 comm=\"seccomp_syscall\" exe=\"/tmp/check-1467387486965314352/1/seccomp_syscall_runner\" sig=31 arch=c000003e syscall=41 compat=0 ip=0x440199 code=0x0\n[169175.265358] audit: type=1326 audit(1513083015.665:1590): auid=1000 uid=1000 gid=1000 ses=2 pid=31526 comm=\"seccomp_syscall\" exe=\"/tmp/check-1467387486965314352/1/seccomp_syscall_runner\" sig=31 arch=c000003e syscall=41 compat=0 ip=0x440199 code=0x0\n[169175.477401] audit: type=1326 audit(1513083015.877:1591): auid=1000 uid=1000 gid=1000 ses=2 pid=31529 comm=\"seccomp_syscall\" exe=\"/tmp/check-1467387486965314352/1/seccomp_syscall_runner\" sig=31 arch=c000003e syscall=41 compat=0 ip=0x440199 code=0x0\n[169177.591442] can: request_module (can-proto-0) failed.\n[169177.724195] can: request_module (can-proto-0) failed.\n[169177.864074] can: request_module (can-proto-0) failed.\n[169530.441088] kauditd_printk_skb: 15 callbacks suppressed\n[169530.441089] audit: type=1326 audit(1513083370.860:1607): auid=1000 uid=1000 gid=1000 ses=2 pid=36967 comm=\"seccomp_bpf_loa\" exe=\"/tmp/check-2150495705731966221/0/seccomp_bpf_loader\" sig=31 arch=c000003e syscall=32 compat=0 ip=0x7f44e1d0e917 code=0x0\n"): signal: bad system call (core dumped)
OOPS: 12 passed, 1 FAILED
--- FAIL: Test (118.29s)
FAIL
coverage: 62.3% of statements
exit status 1
FAIL github.com/snapcore/snapd/cmd/snap-seccomp 118.297s