perf doesn't build on x86
Username: Stijn Tintel
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=906
LEDE master 683e7373 x86/64
make[1]: Entering directory '/home/stijn/Development/LEDE/source' make[2]: Entering directory '/home/stijn/Development/LEDE/source/package/devel/perf' rm -rf /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl rm -f /home/stijn/Development/LEDE/source/bin/targets/x86/64/packages/perf_4.4.74-2_x86_64.ipk rm -f /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/stamp/.perf_installed rm -f /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/packages/perf.list /home/stijn/Development/LEDE/source/staging_dir/host/packages/perf.list make[2]: Leaving directory '/home/stijn/Development/LEDE/source/package/devel/perf' make[1]: Leaving directory '/home/stijn/Development/LEDE/source' make[1]: Entering directory '/home/stijn/Development/LEDE/source' make[2]: Entering directory '/home/stijn/Development/LEDE/source/package/libs/toolchain' echo "libc" >> /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install echo "libgcc" >> /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install echo "libstdcpp" >> /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install echo "libpthread" >> /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install echo "librt" >> /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install make[2]: Leaving directory '/home/stijn/Development/LEDE/source/package/libs/toolchain' make[2]: Entering directory '/home/stijn/Development/LEDE/source/package/libs/zlib' echo "zlib" >> /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/pkginfo/zlib.default.install make[2]: Leaving directory '/home/stijn/Development/LEDE/source/package/libs/zlib' make[2]: Entering directory '/home/stijn/Development/LEDE/source/package/libs/gettext' make[2]: Leaving directory '/home/stijn/Development/LEDE/source/package/libs/gettext' make[2]: Entering directory '/home/stijn/Development/LEDE/source/package/libs/libiconv' make[2]: Leaving directory '/home/stijn/Development/LEDE/source/package/libs/libiconv' make[2]: Entering directory '/home/stijn/Development/LEDE/source/package/devel/binutils' echo "libbfd" >> /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/pkginfo/binutils.default.install echo "libopcodes" >> /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/pkginfo/binutils.default.install echo "objdump" >> /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/pkginfo/binutils.default.install make[2]: Leaving directory '/home/stijn/Development/LEDE/source/package/devel/binutils' make[2]: Entering directory '/home/stijn/Development/LEDE/source/package/utils/bzip2' echo "libbz2" >> /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/pkginfo/bzip2.default.install make[2]: Leaving directory '/home/stijn/Development/LEDE/source/package/utils/bzip2' make[2]: Entering directory '/home/stijn/Development/LEDE/source/package/libs/argp-standalone' make[2]: Leaving directory '/home/stijn/Development/LEDE/source/package/libs/argp-standalone' make[2]: Entering directory '/home/stijn/Development/LEDE/source/package/libs/elfutils' echo "libdw" >> /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/pkginfo/elfutils.default.install echo "libelf1" >> /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/pkginfo/elfutils.default.install make[2]: Leaving directory '/home/stijn/Development/LEDE/source/package/libs/elfutils' make[2]: Entering directory '/home/stijn/Development/LEDE/source/package/devel/perf' touch /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/.prepared_b5b87dd2e8f7ab9635c0cd3762fb0d45_6664517399ebbbc92a37c5bb081b5c53_check cp -fpR /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/* /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/ touch /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/.prepared_b5b87dd2e8f7ab9635c0cd3762fb0d45_6664517399ebbbc92a37c5bb081b5c53 rm -f /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/stamp/.perf_installed (cd /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/./; if [ -x ./configure ]; then find /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/ -name config.guess | xargs -r chmod u+w; find /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/ -name config.guess | xargs -r -n1 cp --remove-destination /home/stijn/Development/LEDE/source/scripts/config.guess; find /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/ -name config.sub | xargs -r chmod u+w; find /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/ -name config.sub | xargs -r -n1 cp --remove-destination /home/stijn/Development/LEDE/source/scripts/config.sub; AR="x86_64-openwrt-linux-musl-gcc-ar" AS="x86_64-openwrt-linux-musl-gcc -c -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl:perf-target-x86_64_musl -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wl,-z,now -Wl,-z,relro" LD=x86_64-openwrt-linux-musl-ld NM="x86_64-openwrt-linux-musl-gcc-nm" CC="x86_64-openwrt-linux-musl-gcc" GCC="x86_64-openwrt-linux-musl-gcc" CXX="x86_64-openwrt-linux-musl-g++" RANLIB="x86_64-openwrt-linux-musl-gcc-ranlib" STRIP=x86_64-openwrt-linux-musl-strip OBJCOPY=x86_64-openwrt-linux-musl-objcopy OBJDUMP=x86_64-openwrt-linux-musl-objdump SIZE=x86_64-openwrt-linux-musl-size CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl:perf-target-x86_64_musl -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wl,-z,now -Wl,-z,relro " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl:perf-target-x86_64_musl -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wl,-z,now -Wl,-z,relro " CPPFLAGS="-I/home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/usr/include -I/home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/include -I/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/usr/include -I/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/fortify -I/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include " LDFLAGS="-L/home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/usr/lib -L/home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/lib -L/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/usr/lib -L/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/lib -znow -zrelro " ./configure --target=x86_64-openwrt-linux --host=x86_64-openwrt-linux --build=x86_64-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls ; fi; ) rm -f /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/.configured_* touch /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/.configured_68b329da9893e34099c7d8ad5cb9c940 rm -f /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/.built touch /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/.built_check ARCH="x86" NO_LIBPERL=1 NO_LIBPYTHON=1 NO_NEWT=1 NO_LZMA=1 NO_BACKTRACE=1 NO_LIBNUMA=1 NO_GTK2=1 NO_LIBAUDIT=1 NO_LIBCRYPTO=1 NO_LIBUNWIND=1 CROSS_COMPILE="x86_64-openwrt-linux-musl-" CC="x86_64-openwrt-linux-musl-gcc" LD="x86_64-openwrt-linux-musl-ld" CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl:perf-target-x86_64_musl -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wl,-z,now -Wl,-z,relro -I/home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/usr/include -I/home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/include -I/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/usr/include -I/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/fortify -I/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include" LDFLAGS="-L/home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/usr/lib -L/home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/lib -L/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/usr/lib -L/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/lib -znow -zrelro" V='' WERROR=0 prefix=/usr make -C /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl -f Makefile.perf --no-print-directory
Auto-detecting system features: ... dwarf: [ [32mon[m ] ... dwarf_getlocations: [ [32mon[m ] ... glibc: [ [31mOFF[m ] ... gtk2: [ [31mOFF[m ] ... libaudit: [ [31mOFF[m ] ... libbfd: [ [32mon[m ] ... libelf: [ [32mon[m ] ... libnuma: [ [31mOFF[m ] ... numa_num_possible_cpus: [ [31mOFF[m ] ... libperl: [ [31mOFF[m ] ... libpython: [ [32mon[m ] ... libslang: [ [31mOFF[m ] ... libcrypto: [ [32mon[m ] ... libunwind: [ [31mOFF[m ] ... libdw-dwarf-unwind: [ [32mon[m ] ... zlib: [ [32mon[m ] ... lzma: [ [31mOFF[m ] ... get_cpuid: [ [32mon[m ] ... bpf: [ [32mon[m ]
Makefile.config:360: No sys/sdt.h found, no SDT events are defined, please install systemtap-sdt-devel or systemtap-sdt-dev Makefile.config:569: Python support disabled by user PERF_VERSION = 4.9.34 GEN common-cmds.h Warning: x86_64's syscall_64.tbl differs from kernel CC util/alias.o In file included from util/alias.c:2:0: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/../ui/ui.h:4, from util/cache.h:6, from util/alias.c:1: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/annotate.o CC util/block-range.o In file included from util/symbol.h:16:0, from util/block-range.h:4, from util/block-range.c:1: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/symbol.h:7, from util/block-range.h:4, from util/block-range.c:1: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/build-id.o CC util/config.o CC util/ctype.o CC util/db-export.o In file included from util/symbol.h:16:0, from util/evsel.h:10, from util/db-export.c:18: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/symbol.h:7, from util/evsel.h:10, from util/db-export.c:18: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/env.o In file included from util/env.c:3:0: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/map.h:8, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/event.h:8, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/debug.h:7, from util/cpumap.h:9, from util/env.c:1: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/event.o In file included from util/symbol.h:16:0, from util/callchain.h:9, from util/hist.h:6, from util/event.c:6: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/event.h:8, from util/event.c:4: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/evlist.o CC util/evsel.o In file included from util/symbol.h:16:0, from util/callchain.h:9, from util/evsel.c:19: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/event.h:8, from util/callchain.h:7, from util/evsel.c:19: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/evsel_fprintf.o In file included from util/symbol.h:16:0, from util/evsel.h:10, from util/evsel_fprintf.c:4: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/symbol.h:7, from util/evsel.h:10, from util/evsel_fprintf.c:4: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/find_bit.o CC util/kallsyms.o CC util/levenshtein.o CC util/llvm-utils.o In file included from util/llvm-utils.c:13:0: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/event.h:8, from util/debug.h:7, from util/llvm-utils.c:10: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ BISON util/parse-events-bison.c FLEX util/parse-events-flex.c CC util/parse-events.o CC util/perf_regs.o CC util/path.o In file included from util/path.c:14:0: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/../ui/ui.h:4, from util/cache.h:6, from util/path.c:13: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/rbtree.o CC util/libstring.o CC util/bitmap.o CC util/hweight.o CC util/quote.o CC util/strbuf.o In file included from util/strbuf.c:2:0: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/event.h:8, from util/debug.h:7, from util/strbuf.c:1: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/string.o CC util/strlist.o CC util/strfilter.o CC util/top.o In file included from util/symbol.h:16:0, from util/evsel.h:10, from util/evlist.h:10, from util/top.c:11: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/map.h:8, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/event.h:8, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/debug.h:7, from util/cpumap.h:9, from util/top.c:9: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/usage.o CC util/dso.o In file included from util/symbol.h:16:0, from util/dso.c:4: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/symbol.h:7, from util/dso.c:4: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/symbol.o In file included from util/symbol.h:16:0, from util/annotate.h:7, from util/symbol.c:12: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/symbol.h:7, from util/annotate.h:7, from util/symbol.c:12: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/symbol_fprintf.o In file included from util/symbol.h:16:0, from util/symbol_fprintf.c:5: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/symbol.h:7, from util/symbol_fprintf.c:5: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/color.o CC util/header.o CC util/callchain.o In file included from util/symbol.h:16:0, from util/callchain.h:9, from util/hist.h:6, from util/callchain.c:20: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/hist.h:5, from util/callchain.c:20: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/values.o CC util/debug.o In file included from util/debug.c:15:0: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/../ui/ui.h:4, from util/cache.h:6, from util/debug.c:11: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/machine.o In file included from util/symbol.h:16:0, from util/callchain.h:9, from util/machine.c:1: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/event.h:8, from util/callchain.h:7, from util/machine.c:1: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/map.o In file included from util/symbol.h:16:0, from util/map.c:1: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/symbol.h:7, from util/map.c:1: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/pstack.o CC util/session.o In file included from util/symbol.h:16:0, from util/evsel.h:10, from util/evlist.h:10, from util/session.c:9: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/event.h:8, from util/evlist.h:9, from util/session.c:9: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/ordered-events.o In file included from util/symbol.h:16:0, from util/session.h:8, from util/ordered-events.c:5: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/event.h:8, from util/session.h:5, from util/ordered-events.c:5: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/comm.o CC util/thread.o In file included from util/symbol.h:16:0, from util/session.h:8, from util/thread.c:5: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/event.h:8, from util/session.h:5, from util/thread.c:5: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/thread_map.o CC util/trace-event-parse.o CC util/parse-events-flex.o CC util/parse-events-bison.o BISON util/pmu-bison.c FLEX util/pmu-flex.c CC util/pmu.o CC util/pmu-flex.o CC util/pmu-bison.o CC util/trace-event-read.o In file included from util/trace-event-read.c:36:0: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/trace-event-read.c:30: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/trace-event-info.o CC util/trace-event-scripting.o CC util/trace-event.o In file included from util/trace-event.c:16:0: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/machine.h:6, from util/trace-event.c:15: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/svghelper.o CC util/sort.o CC util/hist.o CC util/util.o CC util/xyarray.o CC util/cpumap.o CC util/cgroup.o CC util/target.o CC util/rblist.o CC util/intlist.o CC util/vdso.o CC util/counts.o In file included from util/symbol.h:16:0, from util/evsel.h:10, from util/counts.c:2: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/symbol.h:7, from util/evsel.h:10, from util/counts.c:2: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/stat.o In file included from util/symbol.h:16:0, from util/evsel.h:10, from util/evlist.h:10, from util/stat.c:3: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/event.h:8, from util/evlist.h:9, from util/stat.c:3: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/stat-shadow.o In file included from util/symbol.h:16:0, from util/evsel.h:10, from util/stat-shadow.c:2: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/symbol.h:7, from util/evsel.h:10, from util/stat-shadow.c:2: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/record.o In file included from util/symbol.h:16:0, from util/evsel.h:10, from util/evlist.h:10, from util/record.c:1: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/event.h:8, from util/evlist.h:9, from util/record.c:1: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/srcline.o In file included from util/srcline.c:8:0: /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/dso.h:9, from util/srcline.c:7: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/data.o CC util/tsc.o CC util/cloexec.o In file included from util/cloexec.c:2:0: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from util/cloexec.c:1:0: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/call-path.o CC util/thread-stack.o In file included from util/symbol.h:16:0, from util/thread.h:9, from util/thread-stack.c:18: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/symbol.h:7, from util/thread.h:9, from util/thread-stack.c:18: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/auxtrace.o CC util/intel-pt-decoder/intel-pt-pkt-decoder.o GEN util/intel-pt-decoder/inat-tables.c CC util/intel-pt-decoder/intel-pt-insn-decoder.o CC util/intel-pt-decoder/intel-pt-log.o CC util/intel-pt-decoder/intel-pt-decoder.o In file included from util/intel-pt-decoder/intel-pt-decoder.c:27:0: util/intel-pt-decoder/../util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/intel-pt-decoder/../../ui/ui.h:4, from util/intel-pt-decoder/../cache.h:6, from util/intel-pt-decoder/intel-pt-decoder.c:26: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ LD util/intel-pt-decoder/libperf-in.o LD util/scripting-engines/libperf-in.o CC util/intel-pt.o In file included from util/symbol.h:16:0, from util/session.h:8, from util/intel-pt.c:23: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/event.h:8, from util/session.h:5, from util/intel-pt.c:23: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/intel-bts.o In file included from util/symbol.h:16:0, from util/evsel.h:10, from util/intel-bts.c:25: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/map.h:8, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/event.h:8, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/debug.h:7, from util/cpumap.h:9, from util/intel-bts.c:23: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/parse-branch-options.o CC util/parse-regs-options.o CC util/term.o CC util/help-unknown-cmd.o In file included from util/../builtin.h:4:0, from util/help-unknown-cmd.c:5: util/../util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/../ui/ui.h:4, from util/cache.h:6, from util/help-unknown-cmd.c:1: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/mem-events.o In file included from util/symbol.h:16:0, from util/mem-events.c:11: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/event.h:8, from util/debug.h:7, from util/mem-events.c:10: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/vsprintf.o CC util/drv_configs.o In file included from util/symbol.h:16:0, from util/evsel.h:10, from util/evlist.h:10, from util/drv_configs.h:20, from util/drv_configs.c:16: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/event.h:8, from util/evlist.h:9, from util/drv_configs.h:20, from util/drv_configs.c:16: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/bpf-loader.o In file included from util/symbol.h:16:0, from util/evsel.h:10, from util/evlist.h:10, from util/bpf-loader.h:13, from util/bpf-loader.c:15: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/event.h:8, from util/debug.h:7, from util/bpf-loader.c:14: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/bpf-prologue.o In file included from util/symbol.h:16:0, from util/evsel.h:10, from util/evlist.h:10, from util/bpf-loader.h:13, from util/bpf-prologue.c:12: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/event.h:8, from util/debug.h:7, from util/bpf-prologue.c:11: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/symbol-elf.o In file included from util/symbol.h:16:0, from util/symbol-elf.c:8: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/symbol.h:7, from util/symbol-elf.c:8: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/probe-file.o CC util/probe-event.o CC util/probe-finder.o In file included from util/probe-finder.c:39:0: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/event.h:8, from util/probe-finder.c:35: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/dwarf-aux.o CC util/dwarf-regs.o CC util/unwind-libdw.o In file included from util/symbol.h:16:0, from util/unwind.h:6, from util/unwind-libdw.c:7: util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from util/map.h:8, from util/event.h:8, from util/debug.h:7, from util/unwind-libdw.c:6: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC util/zlib.o CC util/demangle-java.o CC util/demangle-rust.o CC util/jitdump.o util/jitdump.c: In function 'jit_process': util/jitdump.c:622:3: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] fprintf(stderr, "injected: %s (%d)\n", path, ret); ^ util/jitdump.c:584:6: note: 'ret' was declared here int ret; ^ CC util/genelf.o CC util/genelf_debug.o LD util/libperf-in.o CC arch/common.o In file included from arch/common.c:4:0: arch/../util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/map.h:8, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/event.h:8, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/debug.h:7, from arch/../util/cpumap.h:9, from arch/../util/env.h:5, from arch/common.h:4, from arch/common.c:3: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC arch/x86/util/header.o CC arch/x86/util/tsc.o CC arch/x86/util/pmu.o In file included from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/symbol.h:16:0, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/evsel.h:10, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/pmu.h:7, from arch/x86/util/pmu.c:7: /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/map.h:8, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/symbol.h:7, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/evsel.h:10, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/pmu.h:7, from arch/x86/util/pmu.c:7: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC arch/x86/util/kvm-stat.o In file included from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/symbol.h:16:0, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/evsel.h:10, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/kvm-stat.h:5, from arch/x86/util/kvm-stat.c:1: /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/map.h:8, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/symbol.h:7, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/evsel.h:10, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/kvm-stat.h:5, from arch/x86/util/kvm-stat.c:1: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC arch/x86/util/perf_regs.o CC arch/x86/util/group.o CC arch/x86/util/dwarf-regs.o CC arch/x86/util/unwind-libdw.o In file included from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/symbol.h:16:0, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/thread.h:9, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/unwind-libdw.h:6, from arch/x86/util/unwind-libdw.c:2: /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/map.h:8, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/event.h:8, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/unwind-libdw.h:5, from arch/x86/util/unwind-libdw.c:2: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ CC arch/x86/util/auxtrace.o In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:12:0, from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/asm/byteorder.h:4, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/include/uapi/linux/perf_event.h:19, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/header.h:4, from arch/x86/util/auxtrace.c:18: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/swab.h:160:8: error: unknown type name '__always_inline' static __always_inline __u16 __swab16p(const __u16 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/swab.h:160:30: error: expected '=', ',', ';', 'asm' or 'attribute' before '__swab16p' static __always_inline __u16 __swab16p(const __u16 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/swab.h:173:8: error: unknown type name '__always_inline' static __always_inline __u32 __swab32p(const __u32 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/swab.h:173:30: error: expected '=', ',', ';', 'asm' or 'attribute' before '__swab32p' static __always_inline __u32 __swab32p(const __u32 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/swab.h:186:8: error: unknown type name '__always_inline' static __always_inline __u64 __swab64p(const __u64 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/swab.h:186:30: error: expected '=', ',', ';', 'asm' or 'attribute' before '__swab64p' static __always_inline __u64 __swab64p(const __u64 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/swab.h:241:24: error: expected '=', ',', ';', 'asm' or 'attribute' before 'void' static __always_inline void __swab32s(__u32 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/swab.h:254:24: error: expected '=', ',', ';', 'asm' or 'attribute' before 'void' static __always_inline void __swab64s(__u64 *p) ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/asm/byteorder.h:4:0, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/include/uapi/linux/perf_event.h:19, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/header.h:4, from arch/x86/util/auxtrace.c:18: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:43:8: error: unknown type name '__always_inline' static __always_inline __le64 __cpu_to_le64p(const __u64 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:43:31: error: expected '=', ',', ';', 'asm' or 'attribute' before '__cpu_to_le64p' static __always_inline __le64 __cpu_to_le64p(const __u64 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:47:8: error: unknown type name '__always_inline' static __always_inline __u64 __le64_to_cpup(const __le64 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:47:30: error: expected '=', ',', ';', 'asm' or 'attribute' before '__le64_to_cpup' static __always_inline __u64 __le64_to_cpup(const __le64 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:51:8: error: unknown type name '__always_inline' static __always_inline __le32 __cpu_to_le32p(const __u32 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:51:31: error: expected '=', ',', ';', 'asm' or 'attribute' before '__cpu_to_le32p' static __always_inline __le32 __cpu_to_le32p(const __u32 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:55:8: error: unknown type name '__always_inline' static __always_inline __u32 __le32_to_cpup(const __le32 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:55:30: error: expected '=', ',', ';', 'asm' or 'attribute' before '__le32_to_cpup' static __always_inline __u32 __le32_to_cpup(const __le32 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:59:8: error: unknown type name '__always_inline' static __always_inline __le16 __cpu_to_le16p(const __u16 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:59:31: error: expected '=', ',', ';', 'asm' or 'attribute' before '__cpu_to_le16p' static __always_inline __le16 __cpu_to_le16p(const __u16 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:63:8: error: unknown type name '__always_inline' static __always_inline __u16 __le16_to_cpup(const __le16 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:63:30: error: expected '=', ',', ';', 'asm' or 'attribute' before '__le16_to_cpup' static __always_inline __u16 __le16_to_cpup(const __le16 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:67:8: error: unknown type name '__always_inline' static __always_inline __be64 __cpu_to_be64p(const __u64 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:67:31: error: expected '=', ',', ';', 'asm' or 'attribute' before '__cpu_to_be64p' static __always_inline __be64 __cpu_to_be64p(const __u64 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:71:8: error: unknown type name '__always_inline' static __always_inline __u64 __be64_to_cpup(const __be64 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:71:30: error: expected '=', ',', ';', 'asm' or 'attribute' before '__be64_to_cpup' static __always_inline __u64 __be64_to_cpup(const __be64 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:75:8: error: unknown type name '__always_inline' static __always_inline __be32 __cpu_to_be32p(const __u32 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:75:31: error: expected '=', ',', ';', 'asm' or 'attribute' before '__cpu_to_be32p' static __always_inline __be32 __cpu_to_be32p(const __u32 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:79:8: error: unknown type name '__always_inline' static __always_inline __u32 __be32_to_cpup(const __be32 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:79:30: error: expected '=', ',', ';', 'asm' or 'attribute' before '__be32_to_cpup' static __always_inline __u32 __be32_to_cpup(const __be32 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:83:8: error: unknown type name '__always_inline' static __always_inline __be16 __cpu_to_be16p(const __u16 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:83:31: error: expected '=', ',', ';', 'asm' or 'attribute' before '__cpu_to_be16p' static __always_inline __be16 __cpu_to_be16p(const __u16 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:87:8: error: unknown type name '__always_inline' static __always_inline __u16 __be16_to_cpup(const __be16 *p) ^ /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:87:30: error: expected '=', ',', ';', 'asm' or 'attribute' before '__be16_to_cpup' static __always_inline __u16 __be16_to_cpup(const __be16 *p) ^ In file included from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/symbol.h:16:0, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/evsel.h:10, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/pmu.h:7, from arch/x86/util/auxtrace.c:20: /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls] extern int sched_getcpu(void); ^ In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/map.h:8, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/event.h:8, from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/header.h:9, from arch/x86/util/auxtrace.c:18: /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here int sched_getcpu(void); ^ mv: cannot stat 'arch/x86/util/.auxtrace.o.tmp': No such file or directory make[7]: *** [/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/build/Makefile.build:92: arch/x86/util/auxtrace.o] Error 1 make[6]: *** [/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/build/Makefile.build:134: util] Error 2 make[5]: *** [/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/build/Makefile.build:134: x86] Error 2 make[4]: *** [/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/build/Makefile.build:134: arch] Error 2 make[3]: *** [Makefile.perf:559: libperf-in.o] Error 2 make[2]: *** [Makefile:85: /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/.built] Error 2 make[2]: Leaving directory '/home/stijn/Development/LEDE/source/package/devel/perf' make[1]: *** [package/Makefile:111: package/devel/perf/compile] Error 2 make[1]: Leaving directory '/home/stijn/Development/LEDE/source' make: *** [/home/stijn/Development/LEDE/source/include/toplevel.mk:209: package/perf/compile] Error 2