Public bug reported:

Commit c33a23ff (selftests: skip seccomp get_metadata test if not real
root)

Is causing compilation error for the seccomp test in
ubuntu_kernel_selftests:

$ sudo make -C tools/testing/selftests TARGETS=seccomp run_tests
make: Entering directory 
'/home/jenkins/ubuntu-gke-4.15-bionic/tools/testing/selftests'
make[1]: Entering directory 
'/home/jenkins/ubuntu-gke-4.15-bionic/tools/testing/selftests/seccomp'
gcc -Wl,-no-as-needed -Wall  seccomp_bpf.c -lpthread -o seccomp_bpf
seccomp_bpf.c: In function ‘syscall_restart’:
seccomp_bpf.c:2685:3: warning: implicit declaration of function ‘XFAIL’; did 
you mean ‘EFAULT’? [-Wimplicit-function-declaration]
   XFAIL(return, "get_metadata requires real root");
   ^~~~~
   EFAULT
seccomp_bpf.c:2685:9: error: expected expression before ‘return’
   XFAIL(return, "get_metadata requires real root");
         ^~~~~~
Makefile:12: recipe for target 'seccomp_bpf' failed
make[1]: *** [seccomp_bpf] Error 1
make[1]: Leaving directory 
'/home/jenkins/ubuntu-gke-4.15-bionic/tools/testing/selftests/seccomp'
Makefile:73: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory 
'/home/jenkins/ubuntu-gke-4.15-bionic/tools/testing/selftests'

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-4.15.0-1040-gke 4.15.0-1040.42
ProcVersionSignature: Ubuntu 4.15.0-1040.42-gke 4.15.18
Uname: Linux 4.15.0-1040-gke x86_64
ApportVersion: 2.20.9-0ubuntu7.7
Architecture: amd64
Date: Wed Aug 21 14:33:19 2019
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=C.UTF-8
 SHELL=/bin/bash
SourcePackage: linux-signed-gke-4.15
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: ubuntu-kernel-tests
     Importance: Undecided
         Status: New

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: Incomplete

** Affects: linux (Ubuntu Bionic)
     Importance: Undecided
         Status: Incomplete


** Tags: amd64 apport-bug bionic sru-20190812 ubuntu-kernel-selftests uec-images

** Package changed: linux-signed-gke-4.15 (Ubuntu) => linux (Ubuntu)

** Also affects: linux (Ubuntu Bionic)
   Importance: Undecided
       Status: New

** Also affects: ubuntu-kernel-tests
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1840932

Title:
  [Regression] failed to compile seccomp test from
  ubuntu_kernel_selftests

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1840932/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to