seccomp from ubuntu_kernel_selftests failed to build on B-5.4

Bug #1942472 reported by Luke Nowakowski-Krijger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
New
Undecided
Unassigned
linux (Ubuntu)
Incomplete
Undecided
Unassigned
Bionic
Incomplete
Undecided
Unassigned
Focal
Incomplete
Undecided
Unassigned
linux-oracle-5.4 (Ubuntu)
New
Undecided
Unassigned
Bionic
New
Undecided
Unassigned
Focal
New
Undecided
Unassigned

Bug Description

Test build on B-5.4 (5.4.0-1054.58~18.04.1) failed with:
error: storage size of ‘md’ isn’t known

Build log:
* Command:
      sudo make -C linux/tools/testing/selftests TARGETS=seccomp run_tests
  Exit status: 2
  Duration: 2.12612104416

  stdout:
  make: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests'
  make --no-builtin-rules ARCH=x86 -C ../../.. headers_install
  make[1]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux'
    INSTALL ./usr/include
  make[1]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux'
  make[1]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/seccomp'
  gcc -Wl,-no-as-needed -Wall seccomp_bpf.c -lpthread -o seccomp_bpf
  Makefile:12: recipe for target 'seccomp_bpf' failed
  make[1]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/seccomp'
  Makefile:143: recipe for target 'all' failed
  make: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests'
  stderr:
  seccomp_bpf.c: In function get_metadata’:
  seccomp_bpf.c:3029:26: error: storage size of ‘md’ isn’t known
    struct seccomp_metadata md;
                            ^~
  seccomp_bpf.c:3029:26: warning: unused variable unused variable ‘md’ [-Wunused-variable]
  make[1]: *** [seccomp_bpf] Error 1
  make: *** [all] Error 2

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1942472

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Changed in linux (Ubuntu Bionic):
status: New → Incomplete
Changed in linux (Ubuntu Focal):
status: New → Incomplete
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.