Failed to build upstream test_maps bpf test on Artful/Bionic ppc64le
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Similar to bug 1738962
Steps:
1. git clone --depth=1 https:/
2. sudo apt-get install clang llvm libcap-dev libelf-dev build-essential
3. Change the Makefile in linux/tools/
4. make
Result:
* It complains about missing headers, this issue applies to the Ubuntu Artful source tree as well.
With Artful source tree:
$ make
for TARGET in bpf; do \
BUILD_
mkdir $BUILD_TARGET -p; \
make OUTPUT=
done;
make[1]: Entering directory '/home/
make -C ../../../lib/bpf OUTPUT=
make[2]: Entering directory '/home/
Auto-detecting system features:
... libelf: [ on ]
... bpf: [ on ]
HOSTCC /home/ubuntu/
HOSTLD /home/ubuntu/
LINK /home/ubuntu/
Warning: tools/include/
CC /home/ubuntu/
CC /home/ubuntu/
LD /home/ubuntu/
LINK /home/ubuntu/
LINK /home/ubuntu/
make[2]: Leaving directory '/home/
gcc -Wall -O2 -I../..
gcc -Wall -O2 -I../..
gcc -Wall -O2 -I../..
gcc -Wall -O2 -I../..
gcc -Wall -O2 -I../..
gcc -Wall -O2 -I../..
gcc -Wall -O2 -I../..
clang -I. -I./include/uapi -I../..
-Wno-compare-
-O2 -target bpf -c /home/ubuntu/
In file included from /home/ubuntu/
/usr/include/
#include <bits/libc-
1 error generated.
Makefile:39: recipe for target '/home/
make[1]: *** [/home/
make[1]: Leaving directory '/home/
Makefile:66: recipe for target 'all' failed
make: *** [all] Error 2
With upstream kernel tree:
$ make
make[1]: Entering directory '/home/
make -C ../../../lib/bpf OUTPUT=
make[2]: Entering directory '/home/
Auto-detecting system features:
... libelf: [ on ]
... bpf: [ on ]
HOSTCC /home/ubuntu/
HOSTLD /home/ubuntu/
LINK /home/ubuntu/
CC /home/ubuntu/
CC /home/ubuntu/
CC /home/ubuntu/
LD /home/ubuntu/
LINK /home/ubuntu/
LINK /home/ubuntu/
make[2]: Leaving directory '/home/
make -C ../../../lib/bpf OUTPUT=
make[2]: Entering directory '/home/
make[2]: Leaving directory '/home/
gcc -Wall -O2 -I../..
gcc -Wall -O2 -I../..
gcc -Wall -O2 -I../..
gcc -Wall -O2 -I../..
gcc -Wall -O2 -I../..
gcc -Wall -O2 -I../..
gcc -Wall -O2 -I../..
gcc -Wall -O2 -I../..
gcc -Wall -O2 -I../..
gcc -Wall -O2 -I../..
gcc -Wall -O2 -I../..
clang -I. -I./include/uapi -I../..
-O2 -target bpf -emit-llvm -c test_pkt_access.c -o - | \
llc -march=bpf -mcpu=generic -filetype=obj -o /home/ubuntu/
In file included from test_pkt_
/usr/include/
#include <bits/libc-
1 error generated.
clang -I. -I./include/uapi -I../..
-O2 -target bpf -emit-llvm -c test_xdp.c -o - | \
llc -march=bpf -mcpu=generic -filetype=obj -o /home/ubuntu/
In file included from test_xdp.c:8:
/usr/include/
#include <bits/libc-
1 error generated.
clang -I. -I./include/uapi -I../..
-O2 -target bpf -emit-llvm -c test_l4lb.c -o - | \
llc -march=bpf -mcpu=generic -filetype=obj -o /home/ubuntu/
In file included from test_l4lb.c:9:
/usr/include/
#include <bits/libc-
1 error generated.
clang -I. -I./include/uapi -I../..
-O2 -target bpf -emit-llvm -c test_tcp_estats.c -o - | \
llc -march=bpf -mcpu=generic -filetype=obj -o /home/ubuntu/
In file included from test_tcp_
/usr/include/
#include <bits/libc-
1 error generated.
clang -I. -I./include/uapi -I../..
-O2 -target bpf -emit-llvm -c test_obj_id.c -o - | \
llc -march=bpf -mcpu=generic -filetype=obj -o /home/ubuntu/
In file included from test_obj_id.c:8:
In file included from ../../.
In file included from ./include/
/usr/include/
#include <asm/bitsperlong.h>
1 error generated.
clang -I. -I./include/uapi -I../..
-O2 -target bpf -emit-llvm -c test_pkt_
llc -march=bpf -mcpu=generic -filetype=obj -o /home/ubuntu/
In file included from test_pkt_
/usr/include/
#include <bits/libc-
1 error generated.
clang -I. -I./include/uapi -I../..
-O2 -target bpf -emit-llvm -c test_xdp_redirect.c -o - | \
llc -march=bpf -mcpu=generic -filetype=obj -o /home/ubuntu/
In file included from test_xdp_
In file included from ../../.
In file included from ./include/
/usr/include/
#include <asm/bitsperlong.h>
1 error generated.
clang -I. -I./include/uapi -I../..
-O2 -target bpf -emit-llvm -c test_xdp_meta.c -o - | \
llc -march=bpf -mcpu=generic -filetype=obj -o /home/ubuntu/
In file included from test_xdp_meta.c:1:
In file included from ../../.
In file included from ./include/
/usr/include/
#include <asm/bitsperlong.h>
1 error generated.
clang -I. -I./include/uapi -I../..
-O2 -target bpf -emit-llvm -c sockmap_
llc -march=bpf -mcpu=generic -filetype=obj -o /home/ubuntu/
In file included from sockmap_
In file included from ../../.
In file included from ./include/
/usr/include/
#include <asm/bitsperlong.h>
1 error generated.
clang -I. -I./include/uapi -I../..
-O2 -target bpf -emit-llvm -c sockmap_
llc -march=bpf -mcpu=generic -filetype=obj -o /home/ubuntu/
In file included from sockmap_
In file included from ../../.
In file included from ./include/
/usr/include/
#include <asm/bitsperlong.h>
1 error generated.
clang -I. -I./include/uapi -I../..
-O2 -target bpf -emit-llvm -c dev_cgroup.c -o - | \
llc -march=bpf -mcpu=generic -filetype=obj -o /home/ubuntu/
In file included from dev_cgroup.c:8:
In file included from ../../.
In file included from ./include/
/usr/include/
#include <asm/bitsperlong.h>
1 error generated.
clang -I. -I./include/uapi -I../..
-O2 -target bpf -emit-llvm -c sample_ret0.c -o - | \
llc -march=bpf -mcpu=generic -filetype=obj -o /home/ubuntu/
clang -I. -I./include/uapi -I../..
-O2 -target bpf -emit-llvm -c test_tracepoint.c -o - | \
llc -march=bpf -mcpu=generic -filetype=obj -o /home/ubuntu/
In file included from test_tracepoint
In file included from ../../.
In file included from ./include/
/usr/include/
#include <asm/bitsperlong.h>
1 error generated.
clang -I. -I./include/uapi -I../..
-O2 -target bpf -emit-llvm -c test_l4lb_
llc -march=bpf -mcpu=generic -filetype=obj -o /home/ubuntu/
In file included from test_l4lb_
/usr/include/
#include <bits/libc-
1 error generated.
clang -I. -I./include/uapi -I../..
-O2 -target bpf -emit-llvm -c test_xdp_noinline.c -o - | \
llc -march=bpf -mcpu=generic -filetype=obj -o /home/ubuntu/
In file included from test_xdp_
/usr/include/
#include <bits/libc-
1 error generated.
clang -I. -I./include/uapi -I../..
-O2 -target bpf -emit-llvm -c test_stacktrace
llc -march=bpf -mcpu=generic -filetype=obj -o /home/ubuntu/
In file included from test_stacktrace
In file included from ../../.
In file included from ./include/
/usr/include/
#include <asm/bitsperlong.h>
1 error generated.
clang -I. -I./include/uapi -I../..
-O2 -target bpf -emit-llvm -c sample_map_ret0.c -o - | \
llc -march=bpf -mcpu=generic -filetype=obj -o /home/ubuntu/
In file included from sample_
In file included from ../../.
In file included from ./include/
/usr/include/
#include <asm/bitsperlong.h>
1 error generated.
clang -I. -I./include/uapi -I../..
-O2 -target bpf -emit-llvm -c test_tcpbpf_kern.c -o - | \
llc -march=bpf -mcpu=generic -filetype=obj -o /home/ubuntu/
In file included from test_tcpbpf_
/usr/include/
#include <bits/libc-
1 error generated.
make[1]: Leaving directory '/home/
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: linux-image-
ProcVersionSign
Uname: Linux 4.13.0-36-generic ppc64le
AlsaDevices:
total 0
crw-rw---- 1 root audio 116, 1 Feb 21 11:05 seq
crw-rw---- 1 root audio 116, 33 Feb 21 11:05 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.7-0ubuntu3.7
Architecture: ppc64el
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
Date: Wed Feb 21 11:47:39 2018
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
Lsusb:
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
PciMultimedia:
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
LANG=C.UTF-8
SHELL=/bin/bash
ProcFB:
ProcKernelCmdLine: root=UUID=
ProcLoadAvg: 1.17 2.95 3.62 1/1783 86499
ProcSwaps:
Filename Type Size Used Priority
/swap.img file 8388544 0 -1
ProcVersion: Linux version 4.13.0-36-generic (buildd@
RelatedPackageV
linux-
linux-
linux-firmware 1.169.3
RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
VarLogDump_list: total 0
cpu_cores: Number of cores present = 20
cpu_coreson: Number of cores online = 20
cpu_dscr: DSCR is 0
cpu_freq:
min: 3.694 GHz (cpu 159)
max: 3.695 GHz (cpu 1)
avg: 3.695 GHz
cpu_runmode:
Could not retrieve current diagnostics mode,
No kernel interface to firmware
cpu_smt: SMT=8
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
status: | Confirmed → Triaged |
summary: |
- Failed to build upstream bpf test on Artful ppc64le + Failed to build upstream bpf test on Artful/Bionic ppc64le |
tags: | added: bionic |
summary: |
- Failed to build upstream bpf test on Artful/Bionic ppc64le + Failed to build upstream test_maps bpf test on Artful/Bionic ppc64le |
no longer affects: | ubuntu-kernel-tests |
This change was made by a bot.