Build failure due to wic-tools dependency #yocto


Gujulan Elango , Hari Prasath
 

Hello all

I am trying to build Yocto based distribution for a custom target based on I.MX8. While creating the target image, I am facing the below error. The wic-tools recipe file already has 'e2fsprogs-native' in its DEPENDS list. Also I am able to the see the e2fsprogs-native binaries generate already under "build/tmp/sysroots-components/x86_64/e2fsprogs-native/sbin/". I have attached the necessary logs for reference.

Additionally I tried 'bitbake wic-tools' and that builds fine. Any hints whats wrong ?

| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_image_wic
| INFO: Creating image(s)...
| ERROR: A native program mkfs.ext4 required to build the image was not found (see details above).
| Please make sure wic-tools have e2fsprogs-native in its DEPENDS, build it with 'bitbake wic-tools' and try again.
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/hari/projects/tx-nextgen/linux-yocto-bsp/build/tmp/work/imx8mmddr4evk-poky-linux/nextgen-image/1.0-r0/temp/run.do_image_wic.21626' failed with exit code 1:
| INFO: Creating image(s)...
| ERROR: A native program mkfs.ext4 required to build the image was not found (see details above).
| Please make sure wic-tools have e2fsprogs-native in its DEPENDS, build it with 'bitbake wic-tools' and try again.
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/hari/projects/tx-nextgen/linux-yocto-bsp/sources/meta-tx-nextgen/recipes-core/images/nextgen-image.bb:do_image_wic) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5390 tasks of which 1 didn't need to be rerun and 1 failed.
 


Khem Raj
 

it seems you might be missing below commit
https://git.openembedded.org/openembedded-core/commit/?id=d0ebcf62109d6a131e02cd4c0f04bba203ed6579

On Sat, Sep 5, 2020 at 12:17 AM
<hariprasath.gujulanelango@...> wrote:

Hello all

I am trying to build Yocto based distribution for a custom target based on I.MX8. While creating the target image, I am facing the below error. The wic-tools recipe file already has 'e2fsprogs-native' in its DEPENDS list. Also I am able to the see the e2fsprogs-native binaries generate already under "build/tmp/sysroots-components/x86_64/e2fsprogs-native/sbin/". I have attached the necessary logs for reference.

Additionally I tried 'bitbake wic-tools' and that builds fine. Any hints whats wrong ?

| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_image_wic
| INFO: Creating image(s)...
|
| ERROR: A native program mkfs.ext4 required to build the image was not found (see details above).
|
| Please make sure wic-tools have e2fsprogs-native in its DEPENDS, build it with 'bitbake wic-tools' and try again.
|
|
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/hari/projects/tx-nextgen/linux-yocto-bsp/build/tmp/work/imx8mmddr4evk-poky-linux/nextgen-image/1.0-r0/temp/run.do_image_wic.21626' failed with exit code 1:
| INFO: Creating image(s)...
|
| ERROR: A native program mkfs.ext4 required to build the image was not found (see details above).
|
| Please make sure wic-tools have e2fsprogs-native in its DEPENDS, build it with 'bitbake wic-tools' and try again.
|
|
| WARNING: exit code 1 from a shell command.
|
ERROR: Task (/home/hari/projects/tx-nextgen/linux-yocto-bsp/sources/meta-tx-nextgen/recipes-core/images/nextgen-image.bb:do_image_wic) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5390 tasks of which 1 didn't need to be rerun and 1 failed.


Gujulan Elango , Hari Prasath
 

Hi There

Thanks for your reply.As I already mentioned in my original post, this dependency is already present in the wic-tools BB file. The git log also shows the same as below

commit b139ac4910a8c519076eaa865d9b0b7d9e604833
Author: Ed Bartosh <ed.bartosh@...>
Date:   Thu Jul 27 09:54:04 2017 +0300
 
    wic-tools: add dependency to e2fsprogs-native
    
    Added e2fsprogs-native to the list of dependencies for wic-tools
    as all fs-related utilities have to be in this list.
    
    (From OE-Core rev: d0ebcf62109d6a131e02cd4c0f04bba203ed6579)
    
    Signed-off-by: Ed Bartosh <ed.bartosh@...>
    Signed-off-by: Richard Purdie <richard.purdie@...>



Gujulan Elango , Hari Prasath
 

Update:

 I could able to see the e2fsprogs-native binaries generated under the below path.

build/tmp/sysroots-components/x86_64/e2fsprogs-native/sbin
 
The PATH variable in the file "build/tmp/work/imx8mmddr4evk-poky-linux/nextgen-image/1.0-r0/temp/run.do_image_wic.21626" is set to the following which doesn't include the above path.?Could it be that the yocto build system is unable to locate this binary ?
 
export PATH="/home/hari/projects/tx-nextgen/linux-yocto-bsp/build/tmp/work/imx8mmddr4evk-poky-linux/nextgen-image/1.0-r0/recipe-sysroot/usr/bin/crossscripts:/home/hari/projects/tx-nextgen/linux-yocto-bsp/build/tmp/work/imx8mmddr4evk-poky-linux/nextgen-image/1.0-r0/recipe-sysroot/opt/fsl-imx-wayland/5.4-zeus/sysroots/x86_64-pokysdk-linux/usr/bin/crossscripts:/home/hari/projects/tx-nextgen/linux-yocto-bsp/build/tmp/work/imx8mmddr4evk-poky-linux/nextgen-image/1.0-r0/recipe-sysroot/usr/bin/crossscripts:/home/hari/projects/tx-nextgen/linux-yocto-bsp/build/tmp/work/imx8mmddr4evk-poky-linux/nextgen-image/1.0-r0/recipe-sysroot-native/usr/bin/python3-native:/home/hari/projects/tx-nextgen/linux-yocto-bsp/sources/poky/scripts:/home/hari/projects/tx-nextgen/linux-yocto-bsp/build/tmp/work/imx8mmddr4evk-poky-linux/nextgen-image/1.0-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/hari/projects/tx-nextgen/linux-yocto-bsp/build/tmp/work/imx8mmddr4evk-poky-linux/nextgen-image/1.0-r0/recipe-sysroot/usr/bin/crossscripts:/home/hari/projects/tx-nextgen/linux-yocto-bsp/build/tmp/work/imx8mmddr4evk-poky-linux/nextgen-image/1.0-r0/recipe-sysroot-native/usr/sbin:/home/hari/projects/tx-nextgen/linux-yocto-bsp/build/tmp/work/imx8mmddr4evk-poky-linux/nextgen-image/1.0-r0/recipe-sysroot-native/usr/bin:/home/hari/projects/tx-nextgen/linux-yocto-bsp/build/tmp/work/imx8mmddr4evk-poky-linux/nextgen-image/1.0-r0/recipe-sysroot-native/sbin:/home/hari/projects/tx-nextgen/linux-yocto-bsp/build/tmp/work/imx8mmddr4evk-poky-linux/nextgen-image/1.0-r0/recipe-sysroot-native/bin:/home/hari/projects/tx-nextgen/linux-yocto-bsp/sources/poky/bitbake/bin:/home/hari/projects/tx-nextgen/linux-yocto-bsp/build/tmp/hosttools"



On Sat, Sep 5, 2020 at 8:17 PM hariprasath.gujulanelango via lists.yoctoproject.org <hariprasath.gujulanelango=wabco-auto.com@...> wrote:

Hi There

Thanks for your reply.As I already mentioned in my original post, this dependency is already present in the wic-tools BB file. The git log also shows the same as below

commit b139ac4910a8c519076eaa865d9b0b7d9e604833
Author: Ed Bartosh <ed.bartosh@...>
Date:   Thu Jul 27 09:54:04 2017 +0300
 
    wic-tools: add dependency to e2fsprogs-native
    
    Added e2fsprogs-native to the list of dependencies for wic-tools
    as all fs-related utilities have to be in this list.
    
    (From OE-Core rev: d0ebcf62109d6a131e02cd4c0f04bba203ed6579)
    
    Signed-off-by: Ed Bartosh <ed.bartosh@...>
    Signed-off-by: Richard Purdie <richard.purdie@...>





--
Best Regards,
Hari Prasath


Proprietary and confidential. It is for use by the addressee only. If you are not the addressee or If you received this email in error, please notify the sender and delete it and any attachments. All communications are subject to our Data Protection Policy that can be found at https://www.wabco-auto.com/en/footer/legal/legal/privacy-statement/ . By communicating with us via e-mail, you agree to the policy. WABCO does not guarantee that this email has not been intercepted, amended, or is virus-free. No liability is accepted for viruses and it is your responsibility to scan any attachments. Technical data and/or information provided in this email or any attachment may be subject to U.S. export control laws. Export, re-export, diversion or disclosure contrary to U.S. law is prohibited