Bug 16246 - AB-INT: wic: env file doesn't exist
Summary: AB-INT: wic: env file doesn't exist
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: oe-core other (show other bugs)
Version: 5.99
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 6.0 M4
Assignee: Paul Barker
QA Contact:
URL:
Whiteboard: AB-INT
Depends on:
Blocks:
 
Reported: 2026-04-14 12:06 UTC by Mathieu Dubois-Briand
Modified: 2026-04-23 14:59 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Dubois-Briand 2026-04-14 12:06:07 UTC
I had this failure in one of my builds:

Poky - The Yocto Project testing distribution
Running '. ./init-build-env; oe-run-native wic-native wic create directdisk -e core-image-sato -o ${BUILDDIR}/tmp/deploy/wic_images/qemux86/directdisk/core-image-sato/ --vars ${BUILDDIR}/tmp/deploy/images/qemux86/' with output to /srv/pokybuild/yocto-worker/wic/build/build/command-1-cmds.log in /srv/pokybuild/yocto-worker/wic/build/build
Getting sysroot...
Couldn't get bitbake variable from /srv/pokybuild/yocto-worker/wic/build/build/tmp/deploy/images/qemux86/core-image-sato.env.
File /srv/pokybuild/yocto-worker/wic/build/build/tmp/deploy/images/qemux86/core-image-sato.env doesn't exist.
Couldn't get bitbake variable from /srv/pokybuild/yocto-worker/wic/build/build/tmp/deploy/images/qemux86/core-image-sato.env.
File /srv/pokybuild/yocto-worker/wic/build/build/tmp/deploy/images/qemux86/core-image-sato.env doesn't exist.
Couldn't get bitbake variable from /srv/pokybuild/yocto-worker/wic/build/build/tmp/deploy/images/qemux86/core-image-sato.env.
File /srv/pokybuild/yocto-worker/wic/build/build/tmp/deploy/images/qemux86/core-image-sato.env doesn't exist.
Couldn't get bitbake variable from /srv/pokybuild/yocto-worker/wic/build/build/tmp/deploy/images/qemux86/core-image-sato.env.
File /srv/pokybuild/yocto-worker/wic/build/build/tmp/deploy/images/qemux86/core-image-sato.env doesn't exist.
Couldn't get bitbake variable from /srv/pokybuild/yocto-worker/wic/build/build/tmp/deploy/images/qemux86/core-image-sato.env.
File /srv/pokybuild/yocto-worker/wic/build/build/tmp/deploy/images/qemux86/core-image-sato.env doesn't exist.
Traceback (most recent call last):
  File "/srv/pokybuild/yocto-worker/wic/build/build/tmp/work/x86_64-linux/wic-native/0.3.0/recipe-sysroot-native/usr/bin/wic", line 8, in <module>
    sys.exit(main())
             ~~~~^^
  File "/srv/pokybuild/yocto-worker/wic/build/build/tmp/work/x86_64-linux/wic-native/0.3.0/recipe-sysroot-native/usr/lib/python3.14/site-packages/wic/cli.py", line 628, in main
    return hlp.invoke_subcommand(args, parser, hlp.wic_help_usage, subcommands)
           ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/pokybuild/yocto-worker/wic/build/build/tmp/work/x86_64-linux/wic-native/0.3.0/recipe-sysroot-native/usr/lib/python3.14/site-packages/wic/help.py", line 83, in invoke_subcommand
    subcmd[0](args, usage)
    ~~~~~~~~~^^^^^^^^^^^^^
  File "/srv/pokybuild/yocto-worker/wic/build/build/tmp/work/x86_64-linux/wic-native/0.3.0/recipe-sysroot-native/usr/lib/python3.14/site-packages/wic/cli.py", line 195, in wic_create_subcommand
    raise WicError("Unable to find the location of the native tools sysroot")
wic.WicError: Unable to find the location of the native tools sysroot

====================================================================================================
ERROR: Command . ./init-build-env; oe-run-native wic-native wic create directdisk -e core-image-sato -o ${BUILDDIR}/tmp/deploy/wic_images/qemux86/directdisk/core-image-sato/ --vars ${BUILDDIR}/tmp/deploy/images/qemux86/ failed with exit code 1, see errors above. (1776150775.6: 12.8)
====================================================================================================

Looking on the worker, the environment file is indeed missing. Yet, do_rootfs_wicenv was executed during the build, so the file should have been generated.

Log file for do_rootfs_wicenv looks similar to other lo files:

DEBUG: Executing python function set_image_size
DEBUG: 3268205.200000 = 2514004 * 1.300000
DEBUG: 3370605.200000 = max(3268205.200000, 65536)[3268205.200000] + 102400
DEBUG: 3370606.000000 = int(3370605.200000)
DEBUG: 3370606 = aligned(3370606)
DEBUG: returning 3370606
DEBUG: Python function set_image_size finished
DEBUG: Executing python function do_rootfs_wicenv
DEBUG: Python function do_rootfs_wicenv finished
Comment 1 Mathieu Dubois-Briand 2026-04-14 12:07:03 UTC
Kinda related question for the next triage meeting: should we create a bugzilla section for "wic" in "Yocto Project Subprojects"?
Comment 2 Mathieu Dubois-Briand 2026-04-14 12:07:42 UTC
wic fedora43-vk-1 mathieu/master-next completed at 2026-04-14 07:27:51+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/15/builds/3546/steps/13/logs/stdio
Comment 3 Mathieu Dubois-Briand 2026-04-15 13:29:09 UTC
wic fedora43-vk-1 mathieu/master-next completed at 2026-04-14 18:45:47+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/15/builds/3550/steps/13/logs/stdio
Comment 4 Mathieu Dubois-Briand 2026-04-20 08:02:38 UTC
wic ubuntu2204-vk-4 master completed at 2026-04-20 01:21:31+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/15/builds/3577/steps/13/logs/stdio
Comment 6 Mathieu Dubois-Briand 2026-04-22 08:59:46 UTC
wic ubuntu2404-vk-2 master&master-next completed at 2026-04-21 15:14:01+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/15/builds/3596/steps/13/logs/stdio