Bug 14607

Summary: Error during clean of example kernel module in eSDK test
Product: [Yocto Project Subprojects] eSDK Reporter: Paul Eggleton <bluelightning>
Component: eSDKAssignee: Steve Sakoman <steve>
Status: RESOLVED FIXED QA Contact: Francisco Pedraza <francisco.j.pedraza.gonzalez>
Severity: normal    
Priority: Medium+ CC: kergoth, randy.macleod
Version: unspecified   
Target Milestone: 3.1.12   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Paul Eggleton 2021-10-21 01:46:12 UTC
From https://autobuilder.yoctoproject.org/typhoon/#/builders/97/builds/3521/steps/16/logs/stdio 

(This was a build of abelloni/master-next, but I can't see anything obvious in the commits that would cause this.)

-------------------------- snip --------------------------
Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/qemuarm64-armhost/build/meta/lib/oeqa/sdkext/cases/devtool.py", line 86, in test_devtool_kernelmodule
    self._run('devtool build %s' % recipe)
  File "/home/pokybuild/yocto-worker/qemuarm64-armhost/build/meta/lib/oeqa/sdkext/case.py", line 24, in _run
    shell=True, env=env, universal_newlines=True)
  File "/usr/lib/python3.6/subprocess.py", line 356, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
oeqa.utils.subprocesstweak.OETestCalledProcessError: Command '. /home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/environment-setup-cortexa57-poky-linux > /dev/null; devtool build kernel-module-hello-world;' returned non-zero exit status 1
Standard Output: NOTE: Starting bitbake server...
NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection (#1)...
Loading cache...done.
Loaded 1478 entries from dependency cache.
Parsing recipes...done.
Parsing of 832 .bb files complete (831 cached, 1 parsed). 1479 targets, 56 skipped, 0 masked, 0 errors.
/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/layers/build/bitbake/lib/pyinotify.py:55: DeprecationWarning: The asyncore module is deprecated. The recommended replacement is asyncio
  import asyncore
Loading cache...done.
Loaded 1478 entries from dependency cache.
Parsing recipes...done.
Parsing of 832 .bb files complete (831 cached, 1 parsed). 1479 targets, 56 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks...done.
Sstate summary: Wanted 95 Local 0 Network 94 Missed 1 Current 60 (98% match, 99% complete)
NOTE: Executing Tasks
NOTE: Running setscene task 80 of 155 (/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/layers/build/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot_setscene)
NOTE: Running setscene task 81 of 155 (/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/layers/build/meta/recipes-kernel/linux/linux-yocto_5.14.bb:do_deploy_source_date_epoch_setscene)
NOTE: Running setscene task 82 of 155 (/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/layers/build/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb:do_deploy_source_date_epoch_setscene)
NOTE: Running setscene task 91 of 155 (virtual:native:/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/layers/build/meta/recipes-devtools/bison/bison_3.8.2.bb:do_populate_sysroot_setscene)
NOTE: Running setscene task 110 of 155 (virtual:native:/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/layers/build/meta/recipes-extended/bc/bc_1.07.1.bb:do_populate_sysroot_setscene)
NOTE: Running task 121 of 680 (/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/workspace/recipes/kernel-module-hello-world/kernel-module-hello-world_git.bb:do_deploy_source_date_epoch)
NOTE: recipe kmod-native-29-r0: task do_populate_sysroot_setscene: Started
NOTE: recipe make-mod-scripts-1.0-r0: task do_deploy_source_date_epoch_setscene: Started
NOTE: recipe bison-native-3.8.2-r0: task do_populate_sysroot_setscene: Started
NOTE: recipe bc-native-1.07.1-r0: task do_populate_sysroot_setscene: Started
NOTE: recipe linux-yocto-5.14.9+gitAUTOINC+884dfea956_c4def465fc-r0: task do_deploy_source_date_epoch_setscene: Started
NOTE: recipe kmod-native-29-r0: task do_populate_sysroot_setscene: Succeeded
NOTE: Running setscene task 142 of 155 (virtual:native:/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/layers/build/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot_setscene)
NOTE: recipe make-mod-scripts-1.0-r0: task do_deploy_source_date_epoch_setscene: Succeeded
NOTE: recipe kernel-module-hello-world-1.0+git999-r0: task do_deploy_source_date_epoch: Started
NOTE: Running task 124 of 680 (/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/layers/build/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb:do_fetch)
NOTE: recipe bc-native-1.07.1-r0: task do_populate_sysroot_setscene: Succeeded
NOTE: recipe bison-native-3.8.2-r0: task do_populate_sysroot_setscene: Succeeded
NOTE: recipe linux-yocto-5.14.9+gitAUTOINC+884dfea956_c4def465fc-r0: task do_deploy_source_date_epoch_setscene: Succeeded
NOTE: Running setscene task 145 of 155 (/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/layers/build/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot_setscene)
NOTE: Running setscene task 146 of 155 (virtual:native:/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/layers/build/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot_setscene)
NOTE: Running task 128 of 680 (/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/layers/build/meta/recipes-kernel/linux/linux-yocto_5.14.bb:do_fetch)
NOTE: recipe make-mod-scripts-1.0-r0: task do_fetch: Started
NOTE: recipe make-mod-scripts-1.0-r0: task do_fetch: Succeeded
NOTE: recipe kernel-module-hello-world-1.0+git999-r0: task do_deploy_source_date_epoch: Succeeded
NOTE: Running task 129 of 680 (/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/layers/build/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb:do_unpack)
NOTE: recipe pkgconfig-native-0.29.2+gitAUTOINC+d97db4fae4-r0: task do_populate_sysroot_setscene: Started
NOTE: recipe kern-tools-native-0.2+gitAUTOINC+d220b06385-r12: task do_populate_sysroot_setscene: Started
NOTE: recipe patch-native-2.7.6-r0: task do_populate_sysroot_setscene: Started
NOTE: recipe make-mod-scripts-1.0-r0: task do_unpack: Started
NOTE: recipe kern-tools-native-0.2+gitAUTOINC+d220b06385-r12: task do_populate_sysroot_setscene: Succeeded
NOTE: recipe make-mod-scripts-1.0-r0: task do_unpack: Succeeded
NOTE: recipe linux-yocto-5.14.9+gitAUTOINC+884dfea956_c4def465fc-r0: task do_fetch: Started
NOTE: recipe pkgconfig-native-0.29.2+gitAUTOINC+d97db4fae4-r0: task do_populate_sysroot_setscene: Succeeded
NOTE: recipe patch-native-2.7.6-r0: task do_populate_sysroot_setscene: Succeeded
NOTE: Running setscene task 154 of 155 (/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/layers/build/meta/recipes-devtools/quilt/quilt-native_0.66.bb:do_populate_sysroot_setscene)
NOTE: recipe quilt-native-0.66-r0: task do_populate_sysroot_setscene: Started
NOTE: recipe quilt-native-0.66-r0: task do_populate_sysroot_setscene: Succeeded
NOTE: Running task 645 of 680 (/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/layers/build/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb:do_patch)
NOTE: Running task 651 of 680 (/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/layers/build/meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb:do_prepare_recipe_sysroot)
NOTE: Running task 652 of 680 (/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/workspace/recipes/kernel-module-hello-world/kernel-module-hello-world_git.bb:do_prepare_recipe_sysroot)
NOTE: recipe make-mod-scripts-1.0-r0: task do_patch: Started
NOTE: recipe make-mod-scripts-1.0-r0: task do_prepare_recipe_sysroot: Started
NOTE: recipe make-mod-scripts-1.0-r0: task do_patch: Succeeded
NOTE: recipe kernel-module-hello-world-1.0+git999-r0: task do_prepare_recipe_sysroot: Started
NOTE: recipe make-mod-scripts-1.0-r0: task do_prepare_recipe_sysroot: Succeeded
NOTE: recipe kernel-module-hello-world-1.0+git999-r0: task do_prepare_recipe_sysroot: Succeeded
NOTE: recipe linux-yocto-5.14.9+gitAUTOINC+884dfea956_c4def465fc-r0: task do_fetch: Succeeded
NOTE: Running task 658 of 680 (/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/layers/build/meta/recipes-kernel/linux/linux-yocto_5.14.bb:do_unpack)
NOTE: Running task 659 of 680 (/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/layers/build/meta/recipes-kernel/linux/linux-yocto_5.14.bb:do_prepare_recipe_sysroot)
NOTE: recipe linux-yocto-5.14.9+gitAUTOINC+884dfea956_c4def465fc-r0: task do_unpack: Started
NOTE: recipe linux-yocto-5.14.9+gitAUTOINC+884dfea956_c4def465fc-r0: task do_prepare_recipe_sysroot: Started
ERROR: linux-yocto-5.14.9+gitAUTOINC+884dfea956_c4def465fc-r0 do_unpack: Bitbake Fetcher Error: UnpackError('No up to date source found: clone directory not available or not up to date: /home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/downloads/git2/git.yoctoproject.org.linux-yocto.git; shallow clone not enabled', 'git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=v5.14/standard/qemuarm64;')
NOTE: recipe linux-yocto-5.14.9+gitAUTOINC+884dfea956_c4def465fc-r0: task do_prepare_recipe_sysroot: Succeeded
ERROR: Logfile of failure stored in: /home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/tmp/work/qemuarm64-poky-linux/linux-yocto/5.14.9+gitAUTOINC+884dfea956_c4def465fc-r0/temp/log.do_unpack.27498
NOTE: recipe linux-yocto-5.14.9+gitAUTOINC+884dfea956_c4def465fc-r0: task do_unpack: Failed
ERROR: Task (/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/layers/build/meta/recipes-kernel/linux/linux-yocto_5.14.bb:do_unpack) failed with exit code '1'
NOTE: Tasks Summary: Attempted 659 tasks of which 650 didn't need to be rerun and 1 failed.
NOTE: The errors for this build are stored in /home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/tmp/log/error-report/error_report_20211021005839.txt
You can send the errors to a reports server by running:
  send-error-report /home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/tmp/log/error-report/error_report_20211021005839.txt [-s server]
NOTE: The contents of these logs will be posted in public if you use the above command with the default server. Please ensure you remove any identifying or proprietary information when prompted before sending.
Summary: 1 task failed:
  /home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/layers/build/meta/recipes-kernel/linux/linux-yocto_5.14.bb:do_unpack
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/qemuarm64-armhost/build/meta/lib/oeqa/sdkext/cases/devtool.py", line 88, in test_devtool_kernelmodule
    self._run('devtool reset %s' % recipe)
  File "/home/pokybuild/yocto-worker/qemuarm64-armhost/build/meta/lib/oeqa/sdkext/case.py", line 24, in _run
    shell=True, env=env, universal_newlines=True)
  File "/usr/lib/python3.6/subprocess.py", line 356, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
oeqa.utils.subprocesstweak.OETestCalledProcessError: Command '. /home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/environment-setup-cortexa57-poky-linux > /dev/null; devtool reset kernel-module-hello-world;' returned non-zero exit status 1
Standard Output: NOTE: Starting bitbake server...
INFO: Cleaning sysroot for recipe kernel-module-hello-world...
ERROR: Command '. /home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/layers/build/oe-init-build-env /home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext > /dev/null && bitbake -c clean kernel-module-hello-world' failed, output:
/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/layers/build/bitbake/lib/pyinotify.py:55: DeprecationWarning: The asyncore module is deprecated. The recommended replacement is asyncio
  import asyncore
Loading cache...done.
Loaded 1478 entries from dependency cache.
Parsing recipes...done.
Parsing of 832 .bb files complete (831 cached, 1 parsed). 1479 targets, 56 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks...done.
Sstate summary: Wanted 0 Local 0 Network 0 Missed 0 Current 0 (0% match, 0% complete)
NOTE: No setscene tasks
NOTE: Executing Tasks
NOTE: Running task 1 of 2 (/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/workspace/recipes/kernel-module-hello-world/kernel-module-hello-world_git.bb:do_buildclean)
NOTE: recipe kernel-module-hello-world-1.0+git999-r0: task do_buildclean: Started
ERROR: kernel-module-hello-world-1.0+git999-r0 do_buildclean: oe_runmake failed
ERROR: kernel-module-hello-world-1.0+git999-r0 do_buildclean: ExecutionError('/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/tmp/work/qemuarm64-poky-linux/kernel-module-hello-world/1.0+git999-r0/temp/run.do_buildclean.28068', 1, None, None)
ERROR: Logfile of failure stored in: /home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/tmp/work/qemuarm64-poky-linux/kernel-module-hello-world/1.0+git999-r0/temp/log.do_buildclean.28068
Log data follows:
| DEBUG: Executing shell function do_buildclean
| NOTE: make KERNEL_SRC=/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/tmp/work-shared/qemuarm64/kernel-source KERNEL_DIR=/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/tmp/work-shared/qemuarm64/kernel-source clean
| make -C /home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/tmp/work-shared/qemuarm64/kernel-source M=/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/workspace/sources/kernel-module-hello-world clean
| make[1]: Entering directory '/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/tmp/work-shared/qemuarm64/kernel-source'
| make[1]: *** No rule to make target 'clean'.  Stop.
| make[1]: Leaving directory '/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/tmp/work-shared/qemuarm64/kernel-source'
| make: *** [Makefile:11: clean] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
NOTE: recipe kernel-module-hello-world-1.0+git999-r0: task do_buildclean: Failed
ERROR: Task (/home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/workspace/recipes/kernel-module-hello-world/kernel-module-hello-world_git.bb:do_buildclean) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun and 1 failed.
NOTE: The errors for this build are stored in /home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/tmp/log/error-report/error_report_20211021010136.txt
You can send the errors to a reports server by running:
  send-error-report /home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/tmp/log/error-report/error_report_20211021010136.txt [-s server]
NOTE: The contents of these logs will be posted in public if you use the above command with the default server. Please ensure you remove any identifying or proprietary information when prompted before sending.
Summary: 1 task failed:
  /home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/testsdkext/workspace/recipes/kernel-module-hello-world/kernel-module-hello-world_git.bb:do_buildclean
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
If you wish, you may specify -n/--no-clean to skip running this command when resetting
-------------------------- snip --------------------------
Comment 1 Randy MacLeod 2021-10-21 14:45:09 UTC
RP says this was due to a fetcher corruption bug.
We don't know how the corruption occurred but it's possible that hardknott was missing a patch.
Once the mirror patch is merged to dunfell, we can close this defect.
Comment 2 Christopher Larson 2021-10-22 17:20:43 UTC
Same issue seen in https://autobuilder.yoctoproject.org/typhoon/#builders/85/builds/1593 for https://swatbot.yoctoproject.org/collection/4777/, adding here as a data point.