perf build failed on mainline

From: Naresh Kamboju
Date: Tue Mar 24 2020 - 14:44:08 EST


The perf build failed on Linux mainline kernel for arm, arm64, i386 and x86_64.

perf build failure log on x86_64:
-------------------------------------------
| find: unknown predicate `-m64/arch'
| Try 'find --help' for more information.
| x86_64-linaro-linux-gcc: warning: '-x c' after last input file has no effect
| x86_64-linaro-linux-gcc: error: unrecognized command line option
'-m64/include/uapi/asm-generic/errno.h'
| x86_64-linaro-linux-gcc: fatal error: no input files
| compilation terminated.
| MKDIR /srv/oe/build/tmp-lkft-glibc/work/intel_corei7_64-linaro-linux/perf/1.0-r9/perf-1.0/pmu-events/
| GEN perf-archive
| GEN perf-with-kcore
| MKDIR /srv/oe/build/tmp-lkft-glibc/work/intel_corei7_64-linaro-linux/perf/1.0-r9/perf-1.0/pmu-events/
| HOSTCC /srv/oe/build/tmp-lkft-glibc/work/intel_corei7_64-linaro-linux/perf/1.0-r9/perf-1.0/pmu-events/jevents.o
| HOSTCC /srv/oe/build/tmp-lkft-glibc/work/intel_corei7_64-linaro-linux/perf/1.0-r9/perf-1.0/pmu-events/json.o
| x86_64-linaro-linux-gcc: warning: '-x c' after last input file has no effect
| LD /srv/oe/build/tmp-lkft-glibc/work/intel_corei7_64-linaro-linux/perf/1.0-r9/perf-1.0/libsubcmd-in.o
| HOSTCC /srv/oe/build/tmp-lkft-glibc/work/intel_corei7_64-linaro-linux/perf/1.0-r9/perf-1.0/pmu-events/jsmn.o
| x86_64-linaro-linux-gcc: error: unrecognized command line option
'-m64/include/uapi/asm-generic/errno.h'
| x86_64-linaro-linux-gcc: fatal error: no input files
| compilation terminated.

| make[3]: Nothing to be done for
'/srv/oe/build/tmp-lkft-glibc/work/intel_corei7_64-linaro-linux/perf/1.0-r9/perf-1.0/plugins/libtraceevent-dynamic-list'.
| GEN /srv/oe/build/tmp-lkft-glibc/work/intel_corei7_64-linaro-linux/perf/1.0-r9/perf-1.0/python/perf.so
| Traceback (most recent call last):
| File "util/setup.py", line 6, in <module>
| cc_is_clang = b"clang version" in Popen([cc, "-v"],
stderr=PIPE).stderr.readline()
| File "/srv/oe/build/tmp-lkft-glibc/work/intel_corei7_64-linaro-linux/perf/1.0-r9/recipe-sysroot-native/usr/lib/python2.7/subprocess.py",
line 394, in __init__
| errread, errwrite)
| File "/srv/oe/build/tmp-lkft-glibc/work/intel_corei7_64-linaro-linux/perf/1.0-r9/recipe-sysroot-native/usr/lib/python2.7/subprocess.py",
line 1047, in _execute_child
| raise child_exception
| OSError: [Errno 2] No such file or directory
| cp: cannot stat
'/srv/oe/build/tmp-lkft-glibc/work/intel_corei7_64-linaro-linux/perf/1.0-r9/perf-1.0/python_ext_build/lib/perf*.so':
No such file or directory
| Makefile.perf:590: recipe for target
'/srv/oe/build/tmp-lkft-glibc/work/intel_corei7_64-linaro-linux/perf/1.0-r9/perf-1.0/python/perf.so'
failed

ref:
https://ci.linaro.org/view/lkft/job/openembedded-lkft-linux-mainline/DISTRO=lkft,MACHINE=intel-corei7-64,label=docker-lkft/2544/consoleText

--
Linaro LKFT
https://lkft.linaro.org