Unable to build ubuntu_bpf test on B-hwe PowerPC/s390x
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Sean Feole | ||
linux-hwe (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The ubuntu_bpf test could be built on Bionic, but not B-hwe-edge, it will fail with:
BPF API too old
Complete build log:
(clone the kernel tree first)
$ cd linux/tools/
$ sudo make
readelf: Error: Missing knowledge of 32-bit reloc types used in DWARF sections of machine number 247
readelf: Warning: unable to apply unsupported reloc type 10 to section .debug_info
readelf: Warning: unable to apply unsupported reloc type 1 to section .debug_info
readelf: Warning: unable to apply unsupported reloc type 10 to section .debug_info
gcc -o /home/ubuntu/
make -C ../../../lib/bpf OUTPUT=
make[1]: Entering directory '/home/
Auto-detecting system features:
... libelf: [ on ]
... bpf: [ OFF ]
BPF API too old
Makefile:245: recipe for target 'bpfdep' failed
make[1]: *** [bpfdep] Error 1
make[1]: Leaving directory '/home/
Makefile:94: recipe for target '/home/
make: *** [/home/
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-
ProcVersionSign
Uname: Linux 5.0.0-14-generic ppc64le
ApportVersion: 2.20.9-0ubuntu7.6
Architecture: ppc64el
Date: Fri May 10 13:07:19 2019
ProcLoadAvg: 0.20 0.14 0.05 1/1274 5985
ProcLocks:
1: POSIX ADVISORY WRITE 1825 00:17:377 0 EOF
2: POSIX ADVISORY WRITE 3882 00:17:394 0 EOF
3: FLOCK ADVISORY WRITE 3429 00:17:507 0 EOF
4: POSIX ADVISORY WRITE 3875 00:17:584 0 EOF
5: FLOCK ADVISORY WRITE 4037 00:17:602 0 EOF
ProcSwaps:
Filename Type Size Used Priority
/swap.img file 8388544 0 -2
ProcVersion: Linux version 5.0.0-14-generic (buildd@
SourcePackage: linux-signed-
UpgradeStatus: No upgrade log present (probably fresh install)
VarLogDump_list: total 0
cpu_cores: Number of cores present = 40
cpu_coreson: Number of cores online = 39
cpu_dscr: DSCR is 16
cpu_freq:
min: 2.862 GHz (cpu 79)
max: 2.946 GHz (cpu 81)
avg: 2.903 GHz
cpu_runmode:
Could not retrieve current diagnostics mode,
No kernel interface to firmware
cpu_smt: SMT=4
summary: |
- Unable to build ubunut_bpf test on B-hwe-edge PowerPC + Unable to build ubunut_bpf test on B-hwe PowerPC |
Changed in linux-hwe (Ubuntu): | |
status: | Invalid → New |
summary: |
- Unable to build ubunut_bpf test on B-hwe PowerPC + Unable to build ubuntu_bpf test on B-hwe PowerPC |
tags: | added: ubuntu-bpf |
Build log with upstream tree on B-hwe-edge, P9
The detection passed:
$ sudo make /home/ubuntu/ linux/tools/ testing/ selftests/ bpf/ ubuntu/ linux/tools/ lib/bpf'
/bin/sh: 1: llvm-readelf: not found
make -C ../../../lib/bpf OUTPUT=
make[1]: Entering directory '/home/
Auto-detecting system features:
... libelf: [ on ]
... bpf: [ on ]
(please refer to the attachment for more information)