** Changed in: linux-azure (Ubuntu Focal)
Importance: Undecided => Medium
** Changed in: linux-azure (Ubuntu Focal)
Status: New => In Progress
** Changed in: linux-azure (Ubuntu Focal)
Assignee: (unassigned) => Tim Gardner (timg-tpi)
** Changed in: linux-azure (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-azure in Ubuntu.
https://bugs.launchpad.net/bugs/1990794
Title:
ubuntu_bpf failed to build on F-azure-5.4 / B-azure-5.4 ( error:
‘bpf_object_open_opts’ undeclared)
Status in ubuntu-kernel-tests:
New
Status in linux-azure package in Ubuntu:
Fix Released
Status in linux-azure source package in Focal:
In Progress
Bug description:
Issue found on B-azure-5.4.0-1092.97~18.04.1
This is a regression as the test can be built and run in the last
cycle.
Error log:
prog_tests/tcp_estats.c prog_tests/obj_name.c prog_tests/map_lock.c
prog_tests/xdp_noinline.c prog_tests/global_data.c prog_tests/pkt_access.c
-lcap -lelf -lrt -lpthread -o
/home/azure/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests/bpf/test_progs
../lib.mk:146: recipe for target
'/home/azure/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests/bpf/test_progs'
failed
make[1]: Leaving directory
'/home/azure/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests/bpf'
Makefile:143: recipe for target 'all' failed
make: Leaving directory
'/home/azure/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests'
stderr:
Warning: Kernel ABI header at 'tools/include/uapi/linux/netlink.h' differs
from latest version at 'include/uapi/linux/netlink.h'
Warning: Kernel ABI header at 'tools/include/uapi/linux/if_link.h' differs
from latest version at 'include/uapi/linux/if_link.h'
prog_tests/send_signal.c: In function ‘test_send_signal_common’:
prog_tests/send_signal.c:52:3: warning: ignoring return value of ‘write’,
declared with attribute warn_unused_result [-Wunused-result]
write(pipe_c2p[1], buf, 1);
^~~~~~~~~~~~~~~~~~~~~~~~~~
prog_tests/send_signal.c:55:3: warning: ignoring return value of ‘read’,
declared with attribute warn_unused_result [-Wunused-result]
read(pipe_p2c[0], buf, 1);
^~~~~~~~~~~~~~~~~~~~~~~~~
prog_tests/send_signal.c:61:4: warning: ignoring return value of ‘write’,
declared with attribute warn_unused_result [-Wunused-result]
write(pipe_c2p[1], "2", 1);
^~~~~~~~~~~~~~~~~~~~~~~~~~
prog_tests/send_signal.c:63:4: warning: ignoring return value of ‘write’,
declared with attribute warn_unused_result [-Wunused-result]
write(pipe_c2p[1], "0", 1);
^~~~~~~~~~~~~~~~~~~~~~~~~~
prog_tests/send_signal.c:66:3: warning: ignoring return value of ‘read’,
declared with attribute warn_unused_result [-Wunused-result]
read(pipe_p2c[0], buf, 1);
^~~~~~~~~~~~~~~~~~~~~~~~~
prog_tests/send_signal.c:109:2: warning: ignoring return value of ‘read’,
declared with attribute warn_unused_result [-Wunused-result]
read(pipe_c2p[0], buf, 1);
^~~~~~~~~~~~~~~~~~~~~~~~~
prog_tests/send_signal.c:117:2: warning: ignoring return value of ‘write’,
declared with attribute warn_unused_result [-Wunused-result]
write(pipe_p2c[1], buf, 1);
^~~~~~~~~~~~~~~~~~~~~~~~~~
prog_tests/send_signal.c:131:2: warning: ignoring return value of ‘write’,
declared with attribute warn_unused_result [-Wunused-result]
write(pipe_p2c[1], buf, 1);
^~~~~~~~~~~~~~~~~~~~~~~~~~
prog_tests/stacktrace_build_id_nmi.c: In function
‘read_perf_max_sample_freq’:
prog_tests/stacktrace_build_id_nmi.c:12:2: warning: ignoring return value
of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%llu", &sample_freq);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog_tests/probe_user.c: In function ‘test_probe_user’:
prog_tests/probe_user.c:9:2: warning: implicit declaration of function
‘DECLARE_LIBBPF_OPTS’ [-Wimplicit-function-declaration]
DECLARE_LIBBPF_OPTS(bpf_object_open_opts, opts, );
^~~~~~~~~~~~~~~~~~~
prog_tests/probe_user.c:9:22: error: ‘bpf_object_open_opts’ undeclared
(first use in this function); did you mean ‘bpf_object_open_attr’?
DECLARE_LIBBPF_OPTS(bpf_object_open_opts, opts, );
^~~~~~~~~~~~~~~~~~~~
bpf_object_open_attr
prog_tests/probe_user.c:9:22: note: each undeclared identifier is reported
only once for each function it appears in
prog_tests/probe_user.c:9:44: error: ‘opts’ undeclared (first use in this
function); did you mean ‘open’?
DECLARE_LIBBPF_OPTS(bpf_object_open_opts, opts, );
^~~~
open
prog_tests/probe_user.c:9:50: error: expected expression before ‘)’ token
DECLARE_LIBBPF_OPTS(bpf_object_open_opts, opts, );
^
prog_tests/probe_user.c:18:8: warning: implicit declaration of function
‘bpf_object__open_file’; did you mean ‘bpf_object__open_buffer’?
[-Wimplicit-function-declaration]
obj = bpf_object__open_file(obj_file, &opts);
^~~~~~~~~~~~~~~~~~~~~
bpf_object__open_buffer
make[1]: ***
[/home/azure/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests/bpf/test_progs]
Error 1
make: *** [all] Error 2
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1990794/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp