Bitbake tdx-reference-minimal-image stuck at 94% when parsing recipes

When running the command

bitbake tdx-reference-minimal-image

in oe-core the Parsing Recipes step is stuck at 94%.

I did all of the things mentioned here.
This is a new problem, this step worked before.

Thank you in advance

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello,

It sounds like you’re encountering a frustrating issue with the Bitbake process getting stuck at 94% during the parsing recipes step for the tdx-reference-minimal-image. Let’s go through some steps to help resolve this:

  1. Clean the Cache: Sometimes, the Bitbake cache can become corrupted. Try cleaning it with the following commands:

    bitbake -c cleanall tdx-reference-minimal-image
    bitbake -c cleansstate tdx-reference-minimal-image
    

    Then, attempt the Bitbake command again.

  2. Check Configuration Files: Double-check your local.conf and bblayers.conf files for any errors or misconfigurations that might cause Bitbake to hang.

  3. Verify Dependencies: Ensure all necessary dependencies and tools are installed on your host system, as missing ones can stall the build process.

  4. Review Logs: Look into the Bitbake logs for any error messages or warnings. These logs are usually located in build/tmp/log/cooker/$MACHINE/.

  5. Environment Setup: Make sure your build environment is correctly set up each time you open a new terminal by sourcing the environment setup script:

    source export
    

If these steps don’t resolve the issue, consider any recent changes to your build environment or configuration that might have introduced the problem. Reverting those changes could help identify the cause.

I hope these suggestions help you get back on track. If the issue persists, further investigation into specific error messages in the logs will be necessary.

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

Tdx-reference-minimal-image failure (Apalis-iMx8).

If i leave the bitbake running eventually it will fail giving the following message.

bitbake tdx-reference-minimal-image
Loading cache: 100% |############################################| Time: 0:00:00
Loaded 5375 entries from dependency cache.
WARNING: /home/hamed/dv-core/build/../layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-upstream_mainline.bb: Exception during build_dependencies for fetcher_hashes_dummyfunc
WARNING: /home/hamed/dv-core/build/../layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-upstream_mainline.bb: Error during finalise of /home/hamed/dv-core/build/../layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-upstream_mainline.bb
ERROR: ExpansionError during parsing /home/hamed/dv-core/build/../layers/meta-toradex-bsp-common/recipes-kernel/linux/linux-toradex-upstream_mainline.bb
bb.data_smart.ExpansionError: Failure expanding variable fetcher_hashes_dummyfunc[vardepvalue], expression was ${@bb.fetch.get_hashvalue(d)} which triggered exception FetchError: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus,guid=f6257f71b19299b7cd0001e267c7faf5"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/hamed/dv-core/layers/openembedded-core/scripts:/home/hamed/dv-core/build/tmp/work/colibri_imx6-tdx-linux-gnueabi/linux-toradex-upstream/mainline/recipe-sysroot-native/usr/bin/arm-tdx-linux-gnueabi:/home/hamed/dv-core/build/tmp/work/colibri_imx6-tdx-linux-gnueabi/linux-toradex-upstream/mainline/recipe-sysroot/usr/bin/crossscripts:/home/hamed/dv-core/build/tmp/work/colibri_imx6-tdx-linux-gnueabi/linux-toradex-upstream/mainline/recipe-sysroot-native/usr/sbin:/home/hamed/dv-core/build/tmp/work/colibri_imx6-tdx-linux-gnueabi/linux-toradex-upstream/mainline/recipe-sysroot-native/usr/bin:/home/hamed/dv-core/build/tmp/work/colibri_imx6-tdx-linux-gnueabi/linux-toradex-upstream/mainline/recipe-sysroot-native/sbin:/home/hamed/dv-core/build/tmp/work/colibri_imx6-tdx-linux-gnueabi/linux-toradex-upstream/mainline/recipe-sysroot-native/bin:/home/hamed/dv-core/layers/openembedded-core/bitbake/bin:/home/hamed/dv-core/build/tmp/hosttools"; export HOME="/home/hamed"; git -c gc.autoDetach=false -c core.pager=cat -c safe.bareRepository=all ls-remote https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git  failed with exit code 126, output:
/home/hamed/.pyenv/libexec/pyenv: line 138: /home/hamed/.pyenv/libexec/pyenv-exec: Argument list too long

The variable dependency chain for the failure is: fetcher_hashes_dummyfunc[vardepvalue]

ERROR: Parsing halted due to errors, see error messages above
WARNING: /home/hamed/dv-core/build/../layers/meta-toradex-bsp-common/recipes-bsp/u-boot/u-boot-toradex_mainline.bb: Exception during build_dependencies for fetcher_hashes_dummyfunc
WARNING: /home/hamed/dv-core/build/../layers/meta-toradex-bsp-common/recipes-bsp/u-boot/u-boot-toradex_mainline.bb: Error during finalise of /home/hamed/dv-core/build/../layers/meta-toradex-bsp-common/recipes-bsp/u-boot/u-boot-toradex_mainline.bb

Summary: There were 4 WARNING messages.
Summary: There were 2 ERROR messages, returning a non-zero exit code.

Hello @tarik-dvpower,

Which BSP version are you trying to build and for which machine?
Did you add any custom layers?
Also which branch from the repo manifest did sou use? It would be great if you can show me your repo init command.

In local.conf I uncommented

MACHINE ?= "colibri-imx6"

and added

ACCEPT_FSL_EULA = "1"

I didn’t add any additional layers for this.

And the repo init command I used is this

repo init -u git://git.toradex.com/toradex-manifest.git -b scarthgap-7.x.y -m tdxref/default.xml

Hello @tarik-dvpower,

I could build a reference minimal image for Scarthgap following our documentation.
Could you please compare your build configuration with that of mine and see if anything is different:

Build Configuration:
BB_VERSION           = "2.8.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-tdx-linux-gnueabi"
MACHINE              = "colibri-imx6"
DISTRO               = "tdx-xwayland-upstream"
DISTRO_VERSION       = "7.2.0-devel-20250310123533+build.0"
TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU           = "hard"
meta-toradex-nxp     = "HEAD:31b3db3238a833babf58768143570f8490e90ea5"
meta-freescale       = "HEAD:a8a6b9d1b274f1a24e4d75243af1bbde011b2ebb"
meta-freescale-3rdparty = "HEAD:1dfc65dd2006b51d156be5bcda0e3c72c936ad0a"
meta-toradex-ti      = "HEAD:8bf12dffab112d39b66fc4f7bde151dba9ba048c"
meta-arm-toolchain   
meta-arm             = "HEAD:3cadb81ffaa9f03b92e302843cb22a9cd41df34b"
meta-ti-bsp          
meta-ti-extras       = "HEAD:d1f9c4761e9f65f8a6f049f3ffdc85a8b0f0f63f"
meta-toradex-bsp-common = "HEAD:0351a84895d733077d5576d8937417581a1a43f9"
meta-oe              
meta-filesystems     
meta-networking      
meta-multimedia      
meta-python          = "HEAD:4f11a12b2352bbdfafb6b7d956bf424af4992977"
meta-freescale-distro = "HEAD:b9d6a5d9931922558046d230c1f5f4ef6ee72345"
meta-toradex-demos   = "HEAD:b5f15cefa15f1c9ef6aad6f594cb168dd531f3ec"
meta-qt5             = "HEAD:eb828418264a49b8d00035cb3d7b12fcea3be801"
meta-tpm             = "HEAD:bc865c5276c2ab4031229916e8d7c20148dfbac3"
meta-toradex-distro  = "HEAD:3ce5c481bafafd22130d58b01091d355fe95944f"
meta-poky            = "HEAD:03c7935bcdb15fd903d26828085d49c00267b8d9"
meta                 = "HEAD:c74a6d6afc52606825e583cae1162e13a5369498"

If it doesn’t look the same, I recommend to do a clean build following the suggestions from @ToradexAI.