Unable to build ubuntu_bpf test on Groovy 5.8 KVM kernel / F-5.8-hwe (blocking net test in ubuntu_kernel_selftests to build)

Bug #1894964 reported by Po-Hsu Lin on 2020-09-09
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Undecided
Unassigned
linux (Ubuntu)
Undecided
Unassigned
Groovy
Undecided
Unassigned

Bug Description

Issue found on 5.8.0-1001.1 - kvm

Test build failed with:
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'
In file included from /home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/include/linux/build_bug.h:5,
from /home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/include/linux/kernel.h:8,
from /home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/kernel/bpf/disasm.h:10,
from /home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/kernel/bpf/disasm.c:8:
/home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/kernel/bpf/disasm.c: In function ‘__func_get_name’:
/home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/include/linux/compiler.h:37:38: warning: nested extern declaration of ‘__compiletime_assert_0’ [-Wnested-externs]
37 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~~~
/home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/include/linux/compiler.h:16:15: note: in definition of macro ‘__compiletime_assert’
16 | extern void prefix ## suffix(void) __compiletime_error(msg); \
| ^~~~~~
/home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/include/linux/compiler.h:37:2: note: in expansion of macro ‘_compiletime_assert’
37 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
/home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
/home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/include/linux/build_bug.h:50:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
/home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/kernel/bpf/disasm.c:20:2: note: in expansion of macro ‘BUILD_BUG_ON’
20 | BUILD_BUG_ON(ARRAY_SIZE(func_id_str) != __BPF_FUNC_MAX_ID);
| ^~~~~~~~~~~~
libbpf: failed to open format: No such file or directory
Error: failed to load BTF from format: No such file or directory
make[1]: *** [Makefile:190: /home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests/bpf/tools/include/vmlinux.h] Error 2
make[1]: *** Deleting file '/home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests/bpf/tools/include/vmlinux.h'
make: *** [Makefile:157: all] Error 2

Please find attachment for the complete build log.

As the ubuntu_kernel_selftests needs bpf to be built first, this will block the ubuntu_kernel_selftests/net to build as well.

Po-Hsu Lin (cypressyew) wrote :

This issue does not exist on Groovy generic 5.8.0-18

tags: added: 5.8 groovy
tags: added: ubuntu-bpf
Po-Hsu Lin (cypressyew) on 2020-09-09
tags: added: sru-20200826

Issue found on F-5.8 HWE kernel.

summary: - Unable to build ubuntu_bpf test on Groovy 5.8 KVM kernel
+ Unable to build ubuntu_bpf test on Groovy 5.8 KVM kernel / F-5.8-hwe
summary: Unable to build ubuntu_bpf test on Groovy 5.8 KVM kernel / F-5.8-hwe
+ (blocking ubuntu_kernel_selftests to build)
description: updated
Po-Hsu Lin (cypressyew) on 2020-10-20
summary: Unable to build ubuntu_bpf test on Groovy 5.8 KVM kernel / F-5.8-hwe
- (blocking ubuntu_kernel_selftests to build)
+ (blocking net test in ubuntu_kernel_selftests to build)
description: updated
Po-Hsu Lin (cypressyew) on 2020-12-01
tags: added: focal sru-20201109
tags: added: kqa-blocker
Changed in linux (Ubuntu Groovy):
status: New → Confirmed
Changed in linux (Ubuntu):
status: New → Confirmed
Sean Feole (sfeole) on 2021-02-17
tags: added: sru-20210125
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers