test_maps in ubuntu_bpf test failed to build on s390x system

Bug #1711299 reported by Po-Hsu Lin on 2017-08-17
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Medium
Unassigned
Nominated for Bionic by Po-Hsu Lin

Bug Description

With the Zesty source tree:

$ make
gcc -Wall -O2 -I../../../../usr/include test_verifier.c -o test_verifier
In file included from test_verifier.c:23:0:
/usr/include/linux/bpf_perf_event.h:14:17: error: field 'regs' has incomplete type
  struct pt_regs regs;
                 ^~~~
<builtin>: recipe for target 'test_verifier' failed
make: *** [test_verifier] Error 1

This issue can be reproduced on Artful tree and Linus' tree (commit ac9a40905) as well.

Po-Hsu Lin (cypressyew) wrote :

This issue is similar to bug 1675395, with different arch.

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 1711299

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
Po-Hsu Lin (cypressyew) on 2017-08-17
tags: added: artful bot-stop-nagging zesty
Changed in linux (Ubuntu):
status: Incomplete → Confirmed

From upstream commits, there are some commits that make it looks like this test should be able to run on s390x:

bpf: fix selftest/bpf/test_pkt_md_access on s390x

Po-Hsu Lin (cypressyew) wrote :

Some on-going discussion found upstream:

http://<email address hidden>/msg1459347.html
http://<email address hidden>/msg1468498.html
http://<email address hidden>/msg1468604.html

Changed in linux (Ubuntu Zesty):
importance: Undecided → Medium
Changed in linux (Ubuntu Artful):
importance: Undecided → Medium
Changed in linux (Ubuntu Zesty):
status: New → Confirmed
Po-Hsu Lin (cypressyew) on 2017-10-19
tags: added: s390x
Po-Hsu Lin (cypressyew) on 2018-02-22
tags: added: bionic
Po-Hsu Lin (cypressyew) wrote :
Download full text (9.9 KiB)

On Bionic, the error message is different:

$ make
make[1]: Entering directory '/tmp/bionic/tools/testing/selftests/bpf'
make -C ../../../lib/bpf OUTPUT=/tmp/bionic/tools/testing/selftests/bpf/
make[2]: Entering directory '/tmp/bionic/tools/lib/bpf'
make[2]: Leaving directory '/tmp/bionic/tools/lib/bpf'
make -C ../../../lib/bpf OUTPUT=/tmp/bionic/tools/testing/selftests/bpf/
make[2]: Entering directory '/tmp/bionic/tools/lib/bpf'
make[2]: Leaving directory '/tmp/bionic/tools/lib/bpf'
gcc -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../../include/generated -I../../../include test_verifier.c /tmp/bionic/tools/testing/selftests/bpf/libbpf.a /tmp/bionic/tools/testing/selftests/bpf/cgroup_helpers.c -lcap -lelf -lrt -o /tmp/bionic/tools/testing/selftests/bpf/test_verifier
gcc -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../../include/generated -I../../../include test_tag.c /tmp/bionic/tools/testing/selftests/bpf/libbpf.a /tmp/bionic/tools/testing/selftests/bpf/cgroup_helpers.c -lcap -lelf -lrt -o /tmp/bionic/tools/testing/selftests/bpf/test_tag
gcc -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../../include/generated -I../../../include test_maps.c /tmp/bionic/tools/testing/selftests/bpf/libbpf.a /tmp/bionic/tools/testing/selftests/bpf/cgroup_helpers.c -lcap -lelf -lrt -o /tmp/bionic/tools/testing/selftests/bpf/test_maps
gcc -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../../include/generated -I../../../include test_lru_map.c /tmp/bionic/tools/testing/selftests/bpf/libbpf.a /tmp/bionic/tools/testing/selftests/bpf/cgroup_helpers.c -lcap -lelf -lrt -o /tmp/bionic/tools/testing/selftests/bpf/test_lru_map
gcc -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../../include/generated -I../../../include test_lpm_map.c /tmp/bionic/tools/testing/selftests/bpf/libbpf.a /tmp/bionic/tools/testing/selftests/bpf/cgroup_helpers.c -lcap -lelf -lrt -o /tmp/bionic/tools/testing/selftests/bpf/test_lpm_map
gcc -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../../include/generated -I../../../include test_progs.c /tmp/bionic/tools/testing/selftests/bpf/libbpf.a /tmp/bionic/tools/testing/selftests/bpf/cgroup_helpers.c -lcap -lelf -lrt -o /tmp/bionic/tools/testing/selftests/bpf/test_progs
gcc -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../../include/generated -I../../../include test_align.c /tmp/bionic/tools/testing/selftests/bpf/libbpf.a /tmp/bionic/tools/testing/selftests/bpf/cgroup_helpers.c -lcap -lelf -lrt -o /tmp/bionic/tools/testing/selftests/bpf/test_align
gcc -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../../include/generated -I../../../include test_verifier_log.c /tmp/bionic/tools/testing/selftests/bpf/libbpf.a /tmp/bionic/tools/testing/selftests/bpf/cgroup_helpers.c -lcap -lelf -lrt -o /tmp/bionic/tools/testing/selftests/bpf/test_verifier_log
gcc -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../../include/generated -I../../../include test_dev_cgroup.c /tmp/bionic/tools/testing/selftests/bpf/libbpf.a /tmp/bionic/tools/testing/selftests/bpf/cgroup_helpers.c -lcap -lelf -lrt -o /tmp/bionic/tools/testing/selftests/bpf/test_dev_cgro...

Po-Hsu Lin (cypressyew) on 2018-06-29
summary: - ubuntu_bpf test failed to build on s390x system
+ test_maps in ubuntu_bpf test failed to build on s390x system

This bug was nominated against a series that is no longer supported, ie artful. The bug task representing the artful nomination is being closed as Won't Fix.

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

Changed in linux (Ubuntu Artful):
status: Confirmed → Won't Fix
Po-Hsu Lin (cypressyew) on 2018-08-23
no longer affects: linux (Ubuntu Artful)
no longer affects: linux (Ubuntu Zesty)
Changed in linux (Ubuntu):
status: Confirmed → Won't Fix
no longer affects: ubuntu-kernel-tests
Po-Hsu Lin (cypressyew) wrote :

The build error found in Bionic:
libbpf: failed to open ./sockmap_parse_prog.o: No such file or directory

Has been fixed already.

Changed in linux (Ubuntu):
status: Won't Fix → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers