Source: linux
Version: 4.5.1-1
Severity: normal
User: [email protected]
Usertags: sh4
Hi!
Linux 4.5.1 fails to build from source on sh4 since it tries to build the libbpf
code which has not been ported to sh4 yet [1]:
gcc
-Wp,-MD,/«PKGBUILDDIR»/debian/build/build-tools/tools/perf/.bpf.o.d,-MT,/«PKGBUILDDIR»/debian/build/build-tools/tools/perf/bpf.o
-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall
-Wdate-time -D_FORTIFY_SOURCE=2 -I/«PKGBUILDDIR»/tools/perf
-I/«PKGBUILDDIR»/debian/build/build-tools/tools/perf -isystem
/«PKGBUILDDIR»/debian/build/build-tools/include -DHAVE_LIBELF_MMAP_SUPPORT
-DHAVE_ELF_GETPHDRNUM_SUPPORT -Wno-error -Werror -Wall -fPIC -I.
-I/«PKGBUILDDIR»/tools/include -I/«PKGBUILDDIR»/arch/sh/include/uapi
-I/«PKGBUILDDIR»/include/uapi -D"BUILD_STR(s)=#s" -c -o
/«PKGBUILDDIR»/debian/build/build-tools/tools/perf/bpf.o bpf.c
bpf.c:28:4: error: #error __NR_bpf not defined. libbpf does not support your
arch.
# error __NR_bpf not defined. libbpf does not support your arch.
^
bpf.c: In function 'sys_bpf':
bpf.c:40:17: error: '__NR_bpf' undeclared (first use in this function)
return syscall(__NR_bpf, cmd, attr, size);
^
bpf.c:40:17: note: each undeclared identifier is reported only once for each
function it appears in
bpf.c:41:1: error: control reaches end of non-void function
[-Werror=return-type]
}
^
cc1: all warnings being treated as errors
mv: cannot stat
'/«PKGBUILDDIR»/debian/build/build-tools/tools/perf/.bpf.o.tmp': No such file
or directory
make[8]: *** [/«PKGBUILDDIR»/debian/build/build-tools/tools/perf/bpf.o] Error 1
/«PKGBUILDDIR»/tools/build/Makefile.build:77: recipe for target
'/«PKGBUILDDIR»/debian/build/build-tools/tools/perf/bpf.o' failed
make[7]: *** [/«PKGBUILDDIR»/debian/build/build-tools/tools/perf/libbpf-in.o]
Error 2
Makefile:157: recipe for target
'/«PKGBUILDDIR»/debian/build/build-tools/tools/perf/libbpf-in.o' failed
make[7]: Leaving directory '/«PKGBUILDDIR»/tools/lib/bpf'
make[6]: *** [/«PKGBUILDDIR»/debian/build/build-tools/tools/perf/libbpf.a]
Error 2
Makefile.perf:451: recipe for target
'/«PKGBUILDDIR»/debian/build/build-tools/tools/perf/libbpf.a' failed
make[6]: Leaving directory '/«PKGBUILDDIR»/tools/perf'
make[5]: *** [all] Error 2
/«PKGBUILDDIR»/debian/rules.d/tools/perf/Makefile:49: recipe for target 'all'
failed
Could you disable libbpf on sh4 for the time being?
Thanks,
Adrian
> [1]
> https://buildd.debian.org/status/fetch.php?pkg=linux&arch=sh4&ver=4.5.1-1&stamp=1461192004
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - [email protected]
`. `' Freie Universitaet Berlin - [email protected]
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913