This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Yocto build errors trying to enable gcc for cmd line usage

Part Number: AM5728

I am using the AM5728 dev board.  I am building the arago-base-tisdk-image with Yocto.  What I am trying to do is add the capability to use GCC at the command line on the dev board, like it is enabled with the tisdk-rootfs-image.  When I add tools-sdk to the EXTRA_IMAGE_FEATURES line or try to add packages via the IMAGE_INSTALL_append in the local.conf file I get

NOTE: Starting bitbake server...
WARNING: /home/dev/tisdk/sources/meta-arago/meta-arago-distro/recipes-core/meta/external-linaro-secondary-sdk-toolchain.bb: Variable key PREFERRED_PROVIDER_binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} (external-arm-sdk-toolchain) replaces original key PREFERRED_PROVIDER_binutils-cross-canadian- (external-arm-secondary-sdk-toolchain).
WARNING: /home/dev/tisdk/sources/meta-arago/meta-arago-distro/recipes-core/meta/external-linaro-secondary-sdk-toolchain.bb: Variable key PREFERRED_PROVIDER_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} (external-arm-sdk-toolchain) replaces original key PREFERRED_PROVIDER_gcc-cross-canadian- (external-arm-secondary-sdk-toolchain).
WARNING: /home/dev/tisdk/sources/meta-arago/meta-arago-distro/recipes-core/meta/external-arm-secondary-sdk-toolchain.bb: Variable key PREFERRED_PROVIDER_binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} (external-arm-sdk-toolchain) replaces original key PREFERRED_PROVIDER_binutils-cross-canadian- (external-arm-secondary-sdk-toolchain).
WARNING: /home/dev/tisdk/sources/meta-arago/meta-arago-distro/recipes-core/meta/external-arm-secondary-sdk-toolchain.bb: Variable key PREFERRED_PROVIDER_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} (external-arm-sdk-toolchain) replaces original key PREFERRED_PROVIDER_gcc-cross-canadian- (external-arm-secondary-sdk-toolchain).
Parsing recipes: 100% |##########################################| Time: 0:01:33
Parsing of 3004 .bb files complete (0 cached, 3004 parsed). 4090 targets, 540 skipped, 0 masked, 0 errors.
WARNING: No recipes available for:
  /home/dev/tisdk/sources/meta-arago/meta-arago-distro/recipes-browser/chromium/chromium-wayland_%.bbappend
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.40.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-18.04"
TARGET_SYS           = "arm-linux-gnueabi"
MACHINE              = "am57xx-evm"
DISTRO               = "arago"
DISTRO_VERSION       = "2019.11"
TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU           = "hard"
meta-arago-distro    
meta-arago-extras    = "HEAD:70436496d2617b281c51390faa3d421814055cd6"
meta-browser         = "HEAD:5f365ef0f842ba4651efe88787cf9c63bc8b6cb3"
meta-qt5             = "HEAD:e6e464c9ed9266ce46452f953c1bdcb0e7b2d95f"
meta-virtualization  = "HEAD:7685c7d415e0002c448007960837ae8898cd57a5"
meta-networking      
meta-python          
meta-oe              
meta-gnome           
meta-multimedia      
meta-filesystems     = "HEAD:446bd615fd7cb9bc7a159fe5c2019ed08d1a7a93"
meta-ti              = "HEAD:b27317ab4f9be931a66344ca502c7e3f4ec780e5"
meta-linaro-toolchain 
meta-optee           = "HEAD:615ea7561b844a3867cee4299d83d605c10b02ab"
meta                 = "HEAD:e68991ceb5933f7d03b96697e8a0ba0829feb320"
meta-ossia           
meta-qp              
meta-test            = "master:617a9b499ac21ec73f456e4bbe5aa0ee2356f2b4"

ERROR: Task do_configure in /home/dev/tisdk/sources/meta-linaro/meta-linaro-toolchain/recipes-devtools/gcc/gcc-sanitizers_linaro-7.2.bb depends upon non-existent task do_gcc_stash_builddir in /home/dev/tisdk/sources/meta-linaro/meta-linaro-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain.bb
ERROR: Command execution failed: 1

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

I am using the arm 8.3 tool chains as instructed by documentation and the build completes when not trying to enable tools-sdk or similar.

Is adding tools-sdk to the EXTRA_IMAGE_FEATURES not the correct way to enable it?  How else could I enable it?

Thanks!

  • Hi Jason,

    The method that you described - adding tools-sdk to EXTRA_IMAGE_FEATURES may not be the complete method to achieve what you intended to achieve.

    At the moment, we don't have plans to investigate this further. I request you to work with the Yocto community to identify how you can take the working version from tisdk-rootfs-image to arago-base-tisdk-image, I'm sure there are a few different ways of achieving it and this is going to be involved and a very specific requirement. 

    Regards

    Karthik