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
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
New
Undecided
Unassigned
linux (Ubuntu)
Confirmed
Undecided
Unassigned
Groovy
Won't Fix
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.

Revision history for this message
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)
tags: added: sru-20200826
Revision history for this message
Po-Hsu Lin (cypressyew) wrote : Re: Unable to build ubuntu_bpf test on Groovy 5.8 KVM kernel / F-5.8-hwe

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)
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)
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)
tags: added: sru-20210125
Revision history for this message
Krzysztof Kozlowski (krzk) wrote :

focal/aws-5.8 5.8.0-1031.33~20.04.1

04/24 08:20:01 DEBUG| utils:0153| [stdout] make: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests'
5818. 04/24 08:20:01 DEBUG| utils:0153| [stdout] make[1]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests/bpf'
5819. 04/24 08:20:01 DEBUG| utils:0153| [stdout] make[1]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests/bpf'
5820. 04/24 08:20:01 ERROR| utils:0153| [stderr] Makefile:148: *** Cannot find a vmlinux for VMLINUX_BTF at any of " ../../../../vmlinux /sys/kernel/btf/vmlinux /boot/vmlinux-5.8.0-1031-aws". Stop.
5821. 04/24 08:20:01 DEBUG| utils:0153| [stdout] make: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests'
5822. 04/24 08:20:01 ERROR| utils:0153| [stderr] make: *** [Makefile:262: clean] Error 2

tags: added: aws sru-20210412
tags: added: hwe hwe-5.8
tags: added: ubuntu-kernel-selftests
tags: added: sru-20210510
Revision history for this message
Guilherme G. Piccoli (gpiccoli) wrote :

I found a pretty similar error on G/RISC-V, cycle sru-20210510, see the attachment.

tags: added: riscv
Revision history for this message
Guilherme G. Piccoli (gpiccoli) wrote :

I've opened a new bug to better track the issue I found, I'm not sure it fits 100% here, but they seem related. The new LP is: https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1930100

Changed in ubuntu-kernel-tests:
assignee: nobody → Krzysztof Kozlowski (krzk)
Revision history for this message
Krzysztof Kozlowski (krzk) wrote :

Found on focal/azure 5.8.0-1034.36~20.04.1-azure

tags: added: azure sru-20210531
Changed in ubuntu-kernel-tests:
assignee: Krzysztof Kozlowski (krzk) → nobody
tags: added: sru-20210621
Revision history for this message
Brian Murray (brian-murray) wrote :

The Groovy Gorilla has reached end of life, so this bug will not be fixed for that release

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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