Bug 13982 - recipe perf error for kernel5.6
Summary: recipe perf error for kernel5.6
Status: RESOLVED FIXED
Alias: None
Product: Installation
Classification: Runtime
Component: Installation (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 3.0.4
Assignee: Anuj Mittal
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2020-07-16 02:15 UTC by shawn
Modified: 2020-08-09 20:02 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shawn 2020-07-16 02:15:05 UTC
do_completed encounter error.

That is python3 version problem.
This cause of the problem is caused by python3.6
I upgrade to python3.8,that is solved.

But in that case, Yocto should be building it's own version of python

this error log:

NOTE: Setscene tasks completed
ERROR: perf-1.0-r9 do_compile: oe_runmake failed
ERROR: perf-1.0-r9 do_compile: Execution of '/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/temp/run.do_compile.14707' failed with exit code 1:
make: Entering directory '/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/tools/perf'
  BUILD:   Doing 'make -j40' parallel build

Auto-detecting system features:
...                         dwarf: [ on  ]
...            dwarf_getlocations: [ on  ]
...                         glibc: [ on  ]
...                          gtk2: [ OFF ]
...                      libaudit: [ OFF ]
...                        libbfd: [ on  ]
...                        libcap: [ OFF ]
...                        libelf: [ on  ]
...                       libnuma: [ OFF ]
...        numa_num_possible_cpus: [ OFF ]
...                       libperl: [ OFF ]
...                     libpython: [ on  ]
...                     libcrypto: [ on  ]
...                     libunwind: [ on  ]
...            libdw-dwarf-unwind: [ on  ]
...                          zlib: [ on  ]
...                          lzma: [ on  ]
...                     get_cpuid: [ on  ]
...                           bpf: [ on  ]
...                        libaio: [ on  ]
...                       libzstd: [ OFF ]
...        disassembler-four-args: [ on  ]

Makefile.config:506: DWARF support is off, BPF prologue is disabled
Makefile.config:714: Missing perl devel files. Disabling perl scripting support, please install perl-ExtUtils-Embed/libperl-dev
Makefile.config:843: No libzstd found, disables trace compression, please install libzstd-dev[el] and/or set LIBZSTD_DIR
Makefile.config:854: No libcap found, disables capability support, please install libcap-devel/libcap-dev
Makefile.config:922: No libbabeltrace found, disables 'perf data' CTF format support, please install libbabeltrace-dev[el]/libbabeltrace-ctf-dev
  DESCEND  plugins
  GEN      /mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/bpf_helper_defs.h
Failed to import the site module
Traceback (most recent call last):
  File "/usr/lib/python3.6/site.py", line 570, in <module>
    main()
  File "/usr/lib/python3.6/site.py", line 556, in main
    known_paths = addusersitepackages(known_paths)
  File "/usr/lib/python3.6/site.py", line 288, in addusersitepackages
    user_site = getusersitepackages()
  File "/usr/lib/python3.6/site.py", line 264, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "/usr/lib/python3.6/site.py", line 254, in getuserbase
    USER_BASE = get_config_var('userbase')
  File "/usr/lib/python3.6/sysconfig.py", line 607, in get_config_var
    return get_config_vars().get(name)
  File "/usr/lib/python3.6/sysconfig.py", line 550, in get_config_vars
    _init_posix(_CONFIG_VARS)
  File "/usr/lib/python3.6/sysconfig.py", line 421, in _init_posix
    _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
ModuleNotFoundError: No module named '_sysconfigdata'
Makefile:186: recipe for target '/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/bpf_helper_defs.h' failed
make[3]: *** [/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/bpf_helper_defs.h] Error 1
make[3]: *** Deleting file '/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/bpf_helper_defs.h'
Makefile.perf:778: recipe for target '/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/libbpf.a' failed
make[2]: *** [/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/libbpf.a] Error 2
make[2]: *** Waiting for unfinished jobs....
make[3]: Nothing to be done for '/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/plugins/libtraceevent-dynamic-list'.
Makefile:653: arch/x86/Makefile: No such file or directory
make[3]: *** No rule to make target 'arch/x86/Makefile'.  Stop.
Makefile.perf:224: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
Makefile:69: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/tools/perf'
WARNING: exit code 1 from a shell command.

ERROR: Logfile of failure stored in: /mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/temp/log.do_compile.14707
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 40 -C /mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/tools/perf O=/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0 CROSS_COMPILE=x86_64-poky-linux- ARCH=x86 CC=x86_64-poky-linux-gcc  -m64 -march=nehalem -mtune=generic -mfpmath=sse -msse4.2 -mstackrealign -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9=/usr/src/debug/perf/1.0-r9                      -fdebug-prefix-map=/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9=/usr/src/debug/perf/1.0-r9                      -fdebug-prefix-map=/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/recipe-sysroot=                      -fdebug-prefix-map=/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/recipe-sysroot-native=  --sysroot=/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/recipe-sysroot AR=x86_64-poky-linux-gcc-ar LD=x86_64-poky-linux-ld --sysroot=/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/recipe-sysroot   EXTRA_CFLAGS=-ldw EXTRA_LDFLAGS= perfexecdir=/usr/libexec NO_GTK2=1 NO_DEMANGLE=1 NO_LIBAUDIT=1 NO_DWARF=1 NO_JVMTI=1 NO_LIBNUMA=1 NO_SDT=1 TMPDIR=/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0 LIBUNWIND_DIR=/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/recipe-sysroot/usr DESTDIR=/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/image prefix=/usr bindir=/usr/bin sharedir=/usr/share sysconfdir=/etc perfexecdir=/usr/libexec/perf-core ETC_PERFCONFIG=../etc sharedir=share mandir=share/man infodir=share/info PYTHON=python3 PYTHON_CONFIG=python3-config all
| make: Entering directory '/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/tools/perf'
|   BUILD:   Doing 'make -j40' parallel build
|
| Auto-detecting system features:
| ...                         dwarf: [ on  ]
| ...            dwarf_getlocations: [ on  ]
| ...                         glibc: [ on  ]
| ...                          gtk2: [ OFF ]
| ...                      libaudit: [ OFF ]
| ...                        libbfd: [ on  ]
| ...                        libcap: [ OFF ]
| ...                        libelf: [ on  ]
| ...                       libnuma: [ OFF ]
| ...        numa_num_possible_cpus: [ OFF ]
| ...                       libperl: [ OFF ]
| ...                     libpython: [ on  ]
| ...                     libcrypto: [ on  ]
| ...                     libunwind: [ on  ]
| ...            libdw-dwarf-unwind: [ on  ]
| ...                          zlib: [ on  ]
| ...                          lzma: [ on  ]
| ...                     get_cpuid: [ on  ]
| ...                           bpf: [ on  ]
| ...                        libaio: [ on  ]
| ...                       libzstd: [ OFF ]
| ...        disassembler-four-args: [ on  ]
|
| Makefile.config:506: DWARF support is off, BPF prologue is disabled
| Makefile.config:714: Missing perl devel files. Disabling perl scripting support, please install perl-ExtUtils-Embed/libperl-dev
| Makefile.config:843: No libzstd found, disables trace compression, please install libzstd-dev[el] and/or set LIBZSTD_DIR
| Makefile.config:854: No libcap found, disables capability support, please install libcap-devel/libcap-dev
| Makefile.config:922: No libbabeltrace found, disables 'perf data' CTF format support, please install libbabeltrace-dev[el]/libbabeltrace-ctf-dev
|   DESCEND  plugins
|   GEN      /mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/bpf_helper_defs.h
| Failed to import the site module
| Traceback (most recent call last):
|   File "/usr/lib/python3.6/site.py", line 570, in <module>
|     main()
|   File "/usr/lib/python3.6/site.py", line 556, in main
|     known_paths = addusersitepackages(known_paths)
|   File "/usr/lib/python3.6/site.py", line 288, in addusersitepackages
|     user_site = getusersitepackages()
|   File "/usr/lib/python3.6/site.py", line 264, in getusersitepackages
|     user_base = getuserbase() # this will also set USER_BASE
|   File "/usr/lib/python3.6/site.py", line 254, in getuserbase
|     USER_BASE = get_config_var('userbase')
|   File "/usr/lib/python3.6/sysconfig.py", line 607, in get_config_var
|     return get_config_vars().get(name)
|   File "/usr/lib/python3.6/sysconfig.py", line 550, in get_config_vars
|     _init_posix(_CONFIG_VARS)
|   File "/usr/lib/python3.6/sysconfig.py", line 421, in _init_posix
|     _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
| ModuleNotFoundError: No module named '_sysconfigdata'
| Makefile:186: recipe for target '/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/bpf_helper_defs.h' failed
| make[3]: *** [/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/bpf_helper_defs.h] Error 1
| make[3]: *** Deleting file '/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/bpf_helper_defs.h'
| Makefile.perf:778: recipe for target '/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/libbpf.a' failed
| make[2]: *** [/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/libbpf.a] Error 2
| make[2]: *** Waiting for unfinished jobs....
| make[3]: Nothing to be done for '/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/plugins/libtraceevent-dynamic-list'.
| Makefile:653: arch/x86/Makefile: No such file or directory
| make[3]: *** No rule to make target 'arch/x86/Makefile'.  Stop.
| ERROR: oe_runmake failed
| Makefile.perf:224: recipe for target 'sub-make' failed
| make[1]: *** [sub-make] Error 2
| Makefile:69: recipe for target 'all' failed
| make: *** [all] Error 2
| make: Leaving directory '/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/tools/perf'
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/temp/run.do_compile.14707' failed with exit code 1:
| make: Entering directory '/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/tools/perf'
|   BUILD:   Doing 'make -j40' parallel build
|
| Auto-detecting system features:
| ...                         dwarf: [ on  ]
| ...            dwarf_getlocations: [ on  ]
| ...                         glibc: [ on  ]
| ...                          gtk2: [ OFF ]
| ...                      libaudit: [ OFF ]
| ...                        libbfd: [ on  ]
| ...                        libcap: [ OFF ]
| ...                        libelf: [ on  ]
| ...                       libnuma: [ OFF ]
| ...        numa_num_possible_cpus: [ OFF ]
| ...                       libperl: [ OFF ]
| ...                     libpython: [ on  ]
| ...                     libcrypto: [ on  ]
| ...                     libunwind: [ on  ]
| ...            libdw-dwarf-unwind: [ on  ]
| ...                          zlib: [ on  ]
| ...                          lzma: [ on  ]
| ...                     get_cpuid: [ on  ]
| ...                           bpf: [ on  ]
| ...                        libaio: [ on  ]
| ...                       libzstd: [ OFF ]
| ...        disassembler-four-args: [ on  ]
|
| Makefile.config:506: DWARF support is off, BPF prologue is disabled
| Makefile.config:714: Missing perl devel files. Disabling perl scripting support, please install perl-ExtUtils-Embed/libperl-dev
| Makefile.config:843: No libzstd found, disables trace compression, please install libzstd-dev[el] and/or set LIBZSTD_DIR
| Makefile.config:854: No libcap found, disables capability support, please install libcap-devel/libcap-dev
| Makefile.config:922: No libbabeltrace found, disables 'perf data' CTF format support, please install libbabeltrace-dev[el]/libbabeltrace-ctf-dev
|   DESCEND  plugins
|   GEN      /mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/bpf_helper_defs.h
| Failed to import the site module
| Traceback (most recent call last):
|   File "/usr/lib/python3.6/site.py", line 570, in <module>
|     main()
|   File "/usr/lib/python3.6/site.py", line 556, in main
|     known_paths = addusersitepackages(known_paths)
|   File "/usr/lib/python3.6/site.py", line 288, in addusersitepackages
|     user_site = getusersitepackages()
|   File "/usr/lib/python3.6/site.py", line 264, in getusersitepackages
|     user_base = getuserbase() # this will also set USER_BASE
|   File "/usr/lib/python3.6/site.py", line 254, in getuserbase
|     USER_BASE = get_config_var('userbase')
|   File "/usr/lib/python3.6/sysconfig.py", line 607, in get_config_var
|     return get_config_vars().get(name)
|   File "/usr/lib/python3.6/sysconfig.py", line 550, in get_config_vars
|     _init_posix(_CONFIG_VARS)
|   File "/usr/lib/python3.6/sysconfig.py", line 421, in _init_posix
|     _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
| ModuleNotFoundError: No module named '_sysconfigdata'
| Makefile:186: recipe for target '/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/bpf_helper_defs.h' failed
| make[3]: *** [/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/bpf_helper_defs.h] Error 1
| make[3]: *** Deleting file '/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/bpf_helper_defs.h'
| Makefile.perf:778: recipe for target '/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/libbpf.a' failed
| make[2]: *** [/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/libbpf.a] Error 2
| make[2]: *** Waiting for unfinished jobs....
| make[3]: Nothing to be done for '/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/plugins/libtraceevent-dynamic-list'.
| Makefile:653: arch/x86/Makefile: No such file or directory
| make[3]: *** No rule to make target 'arch/x86/Makefile'.  Stop.
| Makefile.perf:224: recipe for target 'sub-make' failed
| make[1]: *** [sub-make] Error 2
| Makefile:69: recipe for target 'all' failed
| make: *** [all] Error 2
| make: Leaving directory '/mnt/yocto/yocto_zeus_original/out/linux64/build/tmp/work/edison-poky-linux/perf/1.0-r9/perf-1.0/tools/perf'
| WARNING: exit code 1 from a shell command.
|
ERROR: Task (/mnt/yocto/yocto_zeus_original/meta-intel-edison/meta-intel-edison-bsp/recipes-kernel/perf/perf.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5620 tasks of which 5571 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 3 seconds

Summary: 1 task failed:
  /mnt/yocto/yocto_zeus_original/meta-intel-edison/meta-intel-edison-bsp/recipes-kernel/perf/perf.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
Makefile:53: recipe for target 'edison-image' failed
make: *** [edison-image] Error 1
Comment 1 Anuj Mittal 2020-07-16 18:09:44 UTC
Can you please locally apply and test:

https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e5c4f3127521607742f7cdf62481b64cf4d3e828

https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=3a1a18ba9d28adb5562eabe9ec354f6d93154f5c

It's probably not related to the version as we use native version already. I assume that you did a clean before building with upgraded python?
Comment 2 shawn 2020-07-16 19:01:58 UTC
(In reply to comment #1)
> Can you please locally apply and test:
> 
> https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/
> ?id=e5c4f3127521607742f7cdf62481b64cf4d3e828
> 
> https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/
> ?id=3a1a18ba9d28adb5562eabe9ec354f6d93154f5c
> 


I tested https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=3a1a18ba9d28adb5562eabe9ec354f6d93154f5c that solved issue before upgrade python.

but I same solved issue after upgrade python.

> It's probably not related to the version as we use native version already. I
> assume that you did a clean before building with upgraded python?

No,I didn't clean before building with upgraded python
Comment 3 Anuj Mittal 2020-08-09 20:02:31 UTC
This has been merged in zeus. Please let me know if you still see issues.