Unable to build ubuntu_bpf test on B-hwe PowerPC/s390x

Bug #1828570 reported by Po-Hsu Lin on 2019-05-10
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Undecided
Sean Feole
linux-hwe (Ubuntu)
Undecided
Unassigned
Bionic
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/testing/selftests/bpf
$ 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/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests/bpf/urandom_read -static urandom_read.c -Wl,--build-id
make -C ../../../lib/bpf OUTPUT=/home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests/bpf/
make[1]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/lib/bpf'

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/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/lib/bpf'
Makefile:94: recipe for target '/home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests/bpf/libbpf.a' failed
make: *** [/home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests/bpf/libbpf.a] Error 2

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-5.0.0-14-generic 5.0.0-14.15~18.04.1+signed1
ProcVersionSignature: Ubuntu 5.0.0-14.15~18.04.1-generic 5.0.6
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@bos02-ppc64el-014) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #15~18.04.1-Ubuntu SMP Thu Apr 25 18:55:27 UTC 2019
SourcePackage: linux-signed-hwe-edge
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

Po-Hsu Lin (cypressyew) wrote :
Po-Hsu Lin (cypressyew) wrote :

Build log with upstream tree on B-hwe-edge, P9
The detection passed:

$ sudo make
/bin/sh: 1: llvm-readelf: not found
make -C ../../../lib/bpf OUTPUT=/home/ubuntu/linux/tools/testing/selftests/bpf/
make[1]: Entering directory '/home/ubuntu/linux/tools/lib/bpf'

Auto-detecting system features:
... libelf: [ on ]
... bpf: [ on ]
(please refer to the attachment for more information)

On bionic, linux-hwe-edge has been moved to linux-hwe and it's still having the same compilation issue with ppc64el:

https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-bionic/bionic/ppc64el/l/linux-hwe/20190708_145914_ee3a8@/log.gz

I have adjusted the bug nomination.

no longer affects: linux-signed-hwe-edge (Ubuntu)
Changed in linux-hwe (Ubuntu):
status: New → Invalid
Changed in linux-hwe (Ubuntu Bionic):
status: New → Confirmed
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
Po-Hsu Lin (cypressyew) on 2019-09-16
tags: added: ubuntu-bpf
Sean Feole (sfeole) wrote :

Taking ownership of this as if affects multiple arch types

Changed in ubuntu-kernel-tests:
status: New → In Progress
assignee: nobody → Sean Feole (sfeole)
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