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

Bug #1828570 reported by Po-Hsu Lin
16
This bug affects 2 people
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/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

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Revision history for this message
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)

Revision history for this message
Kleber Sacilotto de Souza (kleber-souza) wrote :

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
Revision history for this message
Kleber Sacilotto de Souza (kleber-souza) wrote : Re: Unable to build ubuntu_bpf test on B-hwe PowerPC
summary: - Unable to build ubuntu_bpf test on B-hwe PowerPC
+ Unable to build ubuntu_bpf test on B-hwe PowerPC/s390x
Po-Hsu Lin (cypressyew)
tags: added: ubuntu-bpf
Revision history for this message
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)
Revision history for this message
Kleber Sacilotto de Souza (kleber-souza) wrote :

This issue cannot be reproduced anymore on bionic with linux-hwe-5.4 5.4.0-48.52~18.04.1:

18:03:05 DEBUG| Running 'make -C linux/tools/testing/selftests TARGETS=bpf'
[...]
18:03:06 DEBUG| [stdout] make[2]: Entering directory '/tmp/autopkgtest.Es1Hcg/build.ABf/src/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/lib/bpf'
18:03:07 DEBUG| [stdout]
18:03:07 DEBUG| [stdout] Auto-detecting system features:
18:03:07 DEBUG| [stdout] ... libelf: [ on ]
18:03:07 DEBUG| [stdout] ... bpf: [ on ]
18:03:07 DEBUG| [stdout]
18:03:07 DEBUG| [stdout] HOSTCC /tmp/autopkgtest.Es1Hcg/build.ABf/src/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/bpf/fixdep.o
18:03:07 DEBUG| [stdout] HOSTLD /tmp/autopkgtest.Es1Hcg/build.ABf/src/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/bpf/fixdep-in.o
18:03:07 DEBUG| [stdout] LINK /tmp/autopkgtest.Es1Hcg/build.ABf/src/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/bpf/fixdep
18:03:08 DEBUG| [stdout] MKDIR /tmp/autopkgtest.Es1Hcg/build.ABf/src/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/bpf/staticobjs/
18:03:08 DEBUG| [stdout] CC /tmp/autopkgtest.Es1Hcg/build.ABf/src/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/bpf/staticobjs/libbpf.o
18:03:08 DEBUG| [stdout] CC /tmp/autopkgtest.Es1Hcg/build.ABf/src/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/bpf/staticobjs/bpf.o
[...]

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

s390x:
https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-bionic/bionic/s390x/l/linux-hwe-5.4/20200911_175219_cf7d6@/log.gz

Marking this bug as 'Fix Released'.

Changed in ubuntu-kernel-tests:
status: In Progress → Fix Released
Changed in linux-hwe (Ubuntu Bionic):
status: Confirmed → Fix Released
Changed in linux-hwe (Ubuntu):
status: New → Fix Released
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.