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.

SK-AM62A-LP: Recipe patch build error

Part Number: SK-AM62A-LP

Tool/software:

Hello Expert,

Previous days, I am trying to patch edgeai-gst-apps recipe, By devtool and adding patch file in edgeai-gst-apps.bb 

Till now I can't build the edgeai-gst-apps. Some error prints on building the recipe.

Note: I am trying to change the wallpaper image file name in setup_wallpaper.sh . 

Error in the devtool approach:

NOTE: Executing Tasks
NOTE: edgeai-gst-apps: compiling from external source tree /home/tisdk/tisdk/build/workspace/sources/edgeai-gst-apps/apps_cpp
ERROR: edgeai-gst-apps-1.0.0-r0_edgeai_2 do_install: ExecutionError('/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/temp/run.do_install.2316', 1, None, None)
ERROR: Logfile of failure stored in: /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/temp/log.do_install.2316
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/tisdk/tisdk/sources/meta-edgeai/recipes-tisdk/edgeai-components/edgeai-dl-inferer.bb:do_populate_sysroot', '/home/tisdk/tisdk/sources/meta-edgeai/recipes-tisdk/ti-psdk-rtos/ti-vision-apps.bb:do_populate_sysroot', '/home/tisdk/tisdk/sources/meta-openembedded/meta-oe/recipes-support/opencv/opencv_4.9.0.bb:do_populate_sysroot', '/home/tisdk/tisdk/sources/meta-openembedded/meta-oe/recipes-support/yaml-cpp/yaml-cpp_0.8.0.bb:do_populate_sysroot', '/home/tisdk/tisdk/sources/oe-core/meta/recipes-core/glibc/glibc_2.39.bb:do_populate_sysroot', '/home/tisdk/tisdk/sources/oe-core/meta/recipes-devtools/cmake/cmake-native_3.28.3.bb:do_populate_sysroot', '/home/tisdk/tisdk/sources/oe-core/meta/recipes-devtools/gcc/gcc-cross_13.3.bb:do_populate_sysroot', '/home/tisdk/tisdk/sources/oe-core/meta/recipes-devtools/gcc/gcc-runtime_13.3.bb:do_populate_sysroot', '/home/tisdk/tisdk/sources/oe-core/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot', '/home/tisdk/tisdk/sources/oe-core/meta/recipes-multimedia/gstreamer/gstreamer1.0_1.22.12.bb:do_populate_sysroot', 'virtual:native:/home/tisdk/tisdk/sources/oe-core/meta/recipes-devtools/ninja/ninja_1.11.1.bb:do_populate_sysroot', 'virtual:native:/home/tisdk/tisdk/sources/oe-core/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', 'virtual:native:/home/tisdk/tisdk/sources/oe-core/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', 'virtual:native:/home/tisdk/tisdk/sources/oe-core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/home/tisdk/tisdk/sources/oe-core/meta/recipes-devtools/repo/repo_2.42.bb:do_populate_sysroot', 'virtual:native:/home/tisdk/tisdk/sources/oe-core/meta/recipes-extended/xz/xz_5.4.6.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['devil', 'clang', 'compiler-rt', 'libcxx', 'edgeai-apps-utils', 'edgeai-dl-inferer', 'ti-vision-apps', 'ti-tidl-osrt', 'hwloc', 'glm', 'libgphoto2', 'v4l-utils', 'gflags', 'glog', 'libeigen', 'libusb-compat', 'ade', 'opencv', 'tbb', 'yaml-cpp', 'ti-rpmsg-char', 'openssl', 'base-files', 'base-passwd', 'expat', 'gettext-minimal-native', 'glib-2.0', 'glibc', 'libxcrypt', 'libxml2', 'ncurses', 'systemd', 'util-linux-libuuid', 'util-linux', 'zlib', 'binutils-cross-aarch64', 'binutils', 'cmake-native', 'elfutils', 'file', 'gcc-cross-aarch64', 'gcc-runtime', 'libgcc', 'libedit', 'libtool-native', 'libtool', 'm4-native', 'opkg-utils', 'orc', 'python3-numpy', 'python3', 'quilt-native', 'bzip2', 'libarchive', 'libidn2', 'libnsl2', 'libtirpc', 'lzlib', 'libpam', 'shadow-sysroot', 'shadow', 'texinfo-dummy-native', 'xz', 'zstd', 'gobject-introspection', 'cairo', 'libdrm', 'fontconfig', 'freetype', 'harfbuzz', 'libjpeg-turbo', 'mesa', 'pango', 'vulkan-headers', 'vulkan-loader', 'wayland-protocols', 'wayland', 'libpciaccess', 'libpthread-stubs', 'pixman', 'util-macros', 'cryptodev-linux', 'kmod', 'linux-libc-headers', 'alsa-lib', 'gstreamer1.0-plugins-base', 'gstreamer1.0', 'libogg', 'libpng', 'libtheora', 'tiff', 'libvorbis', 'libwebp', 'acl', 'attr', 'bash-completion', 'curl', 'fribidi', 'gdbm', 'gmp', 'gnutls', 'libtasn1', 'icu', 'iso-codes', 'libatomic-ops', 'libcap-ng', 'libcap', 'libexif', 'libffi', 'libgcrypt', 'libgpg-error', 'libmicrohttpd', 'libpcre2', 'libseccomp', 'libunistring', 'libunwind', 'libusb1', 'nettle', 'sqlite3', 'openssl-native', 'expat-native', 'ncurses-native', 'util-linux-libuuid-native', 'zlib-native', 'flex-native', 'gnu-config-native', 'libedit-native', 'make-native', 'ninja-native', 'patch-native', 'perl-native', 'pkgconfig-native', 'pseudo-native', 'python3-native', 'repo-native', 'bzip2-native', 'libnsl2-native', 'libtirpc-native', 'shadow-native', 'xz-native', 'zstd-native', 'attr-native', 'gdbm-native', 'gmp-native', 'libbsd-native', 'libffi-native', 'libmd-native', 'libmpc-native', 'mpfr-native', 're2c-native', 'sqlite3-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_install
| cp: cannot stat '/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/git/*': No such file or directory
| WARNING: /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/temp/run.do_install.2316:147 exit 1 from 'cp ${CP_ARGS} /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/git/* /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/image/opt/edgeai-gst-apps'
| WARNING: Backtrace (BB generated script):
| 	#1: do_install, /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/temp/run.do_install.2316, line 147
| 	#2: main, /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/temp/run.do_install.2316, line 155
ERROR: Task (/home/tisdk/tisdk/sources/meta-edgeai/recipes-tisdk/edgeai-components/edgeai-gst-apps.bb:do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2912 tasks of which 2902 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 3 seconds
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 3 seconds

Summary: 1 task failed:
  /home/tisdk/tisdk/sources/meta-edgeai/recipes-tisdk/edgeai-components/edgeai-gst-apps.bb:do_install
Summary: There was 1 ERROR message, returning a non-zero exit code.

Steps I did is 
1: devtool modify edgeai-gst-apps
2: modify the setup_wallpaper.sh file in workspace/source/edgeai-gst-apps/scripts
3: devtool build edgeai-gst-apps (return the above errors).

Errors in adding patch file from files directory:

NOTE: Executing Tasks
WARNING: edgeai-gst-apps-1.0.0-r0_edgeai_2 do_populate_lic: Could not copy license file /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/git/LICENSE to /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/license-destdir/aarch64/edgeai-gst-apps/LICENSE: [Errno 2] No such file or directory: '/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/git/LICENSE'
ERROR: edgeai-gst-apps-1.0.0-r0_edgeai_2 do_populate_lic: QA Issue: edgeai-gst-apps: LIC_FILES_CHKSUM points to an invalid file: /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/git/LICENSE [license-checksum]
ERROR: edgeai-gst-apps-1.0.0-r0_edgeai_2 do_populate_lic: Fatal QA errors were found, failing task.
ERROR: Logfile of failure stored in: /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/temp/log.do_populate_lic.204350
ERROR: Task (/home/tisdk/tisdk/sources/meta-edgeai/recipes-tisdk/edgeai-components/edgeai-gst-apps.bb:do_populate_lic) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3522 tasks of which 3513 didn't need to be rerun and 1 failed.

LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSE;md5=dc68ab0305d85e56491b9a9aed2309f2"
 md5 checksum in .bb

Steps followed: 
1: Created a .patch file contains the change and added in source/meta-edgeai/recipe-tisdk/edgeai-components/files
2: Added SRC_URI += "file://0001-setup_wallpaper.patch"  in .bb
3: bitbake -c clean edgeai-gst-apps
4: bitbake edgeai-gst-apps (returns error)

runned bitbake -c cleansstate edgeai-gst-apps but error exists

edgeai-gst-apps.bb file contains, S = "${WORKDIR}/git/apps_cpp"  is this is the issue in building scripts/setup_wallpaper.sh

Sorry to say that I don't have much knowledge about yocto linux.

Related ticket by me for your reference e2e.ti.com/.../processor-sdk-am62a-sdk-10-01-build-related-query

Warm Regards,
Sajan

  • Hi Sajan,

    in case of build issues after modifying a recipe it is often a good idea to completely clean out any download and build artifacts and then re-start the build. Can you try the below:

    $ MACHINE=am62axx-evm bitbake -c cleanall edgeai-gst-apps

    If this doesn't help please provide the source code for the .patch file you created, and the contents of any error log files referenced in the Yocto build, such as (from your post, but please provide whatever latest files for your builds as the file names change!)

    /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/temp/log.do_install.2316
    /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/temp/log.do_populate_lic.204350

    Regards, Andreas

  • Hello Andreas,

    contents of any error log files referenced in the Yocto

    WARNING: Backtrace (BB generated script):
    | #1: do_install, /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/temp/run.do_install.38893, line 147
    | #2: main, /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/temp/run.do_install.38893, line 155

    #!/bin/sh
    
    __BITBAKE_LAST_LINE=0
    
    # Emit a useful diagnostic if something fails:
    bb_sh_exit_handler() {
        ret=$?
        if [ "$ret" != 0 ]; then
            echo "WARNING: exit code $ret from a shell command."
        fi  
        exit $ret
    }
    
    bb_bash_exit_handler() {
        ret=$?
        { set +x; } > /dev/null
        trap "" DEBUG
        if [ "$ret" != 0 ]; then
            echo "WARNING: ${BASH_SOURCE[0]}:${__BITBAKE_LAST_LINE} exit $ret from '$1'"
    
            echo "WARNING: Backtrace (BB generated script): "
            for i in $(seq 1 $((${#FUNCNAME[@]} - 1))); do
                if [ "$i" -eq 1 ]; then
                    echo -e "       #$((i)): ${FUNCNAME[$i]}, ${BASH_SOURCE[$((i-1))]}, line ${__BITBAKE_LAST_LINE}"
                else
                    echo -e "       #$((i)): ${FUNCNAME[$i]}, ${BASH_SOURCE[$((i-1))]}, line ${BASH_LINENO[$((i-1))]}"
                fi  
            done
        fi  
        exit $ret
    }
    
    bb_bash_debug_handler() {
        local line=${BASH_LINENO[0]}
        # For some reason the DEBUG trap trips with lineno=1 when scripts exit; ignore it
        if [ "$line" -eq 1 ]; then
            return
        fi  
    
        # Track the line number of commands as they execute. This is so we can have access to the failing line number
        # in the EXIT trap. See http://gnu-bash.2382.n7.nabble.com/trap-echo-quot-trap-exit-on-LINENO-quot-EXIT-gt-wrong-linenumber-td3666.html
        if [ "${FUNCNAME[1]}" != "bb_bash_exit_handler" ]; then
            __BITBAKE_LAST_LINE=$line
        fi  
    }
    
    case $BASH_VERSION in
    "") trap 'bb_sh_exit_handler' 0
        set -e
        ;;  
    *)  trap 'bb_bash_exit_handler "$BASH_COMMAND"' 0
        trap '{ bb_bash_debug_handler; } 2>/dev/null' DEBUG
        set -e
        shopt -s extdebug
        ;;  
    esac
    export AR="aarch64-oe-linux-gcc-ar"
    export AS="aarch64-oe-linux-as "
    export BUILD_AR="ar"
    export BUILD_AS="as "
    export BUILD_CC="gcc "
    export BUILD_CCLD="gcc "
    export BUILD_CFLAGS="-isystem/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot-native/usr/include -O2 -pipe"
    export BUILD_CPP="gcc  -E"
    export BUILD_CPPFLAGS="-isystem/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot-native/usr/include"
    export BUILD_CXX="g++ "
    export BUILD_CXXFLAGS="-isystem/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot-native/usr/include -O2 -pipe"
    export BUILD_FC="gfortran "
    export BUILD_LD="ld "
    export BUILD_LDFLAGS="-L/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot-native/usr/lib                         -L/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot-native/lib                         -Wl,-rpath,/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot-native/lib                         -Wl,-O1"
    export BUILD_NM="nm"
    export BUILD_RANLIB="ranlib -D"
    export BUILD_STRIP="strip"
    export CC="aarch64-oe-linux-gcc  -mbranch-protection=standard --sysroot=/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot"
    export CCLD="aarch64-oe-linux-gcc  -mbranch-protection=standard --sysroot=/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot"
    export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map  -fmacro-prefix-map=/home/tisdk/tisdk/build/workspace/sources/edgeai-gst-apps/apps_cpp=/usr/src/debug/edgeai-gst-apps/1.0.0  -fdebug-prefix-map=/home/tisdk/tisdk/build/workspace/sources/edgeai-gst-apps/apps_cpp=/usr/src/debug/edgeai-gst-apps/1.0.0  -fmacro-prefix-map=/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/edgeai-gst-apps-1.0.0=/usr/src/debug/edgeai-gst-apps/1.0.0  -fdebug-prefix-map=/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/edgeai-gst-apps-1.0.0=/usr/src/debug/edgeai-gst-apps/1.0.0  -fdebug-prefix-map=/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot=  -fmacro-prefix-map=/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot=  -fdebug-prefix-map=/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot-native= "
    export CMAKE_BUILD_PARALLEL_LEVEL="12"
    export CPP="aarch64-oe-linux-gcc -E --sysroot=/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot  -mbranch-protection=standard"
    export CPPFLAGS=""
    export CXX="aarch64-oe-linux-g++  -mbranch-protection=standard --sysroot=/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot"
    export CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map  -fmacro-prefix-map=/home/tisdk/tisdk/build/workspace/sources/edgeai-gst-apps/apps_cpp=/usr/src/debug/edgeai-gst-apps/1.0.0  -fdebug-prefix-map=/home/tisdk/tisdk/build/workspace/sources/edgeai-gst-apps/apps_cpp=/usr/src/debug/edgeai-gst-apps/1.0.0  -fmacro-prefix-map=/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/edgeai-gst-apps-1.0.0=/usr/src/debug/edgeai-gst-apps/1.0.0  -fdebug-prefix-map=/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/edgeai-gst-apps-1.0.0=/usr/src/debug/edgeai-gst-apps/1.0.0  -fdebug-prefix-map=/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot=  -fmacro-prefix-map=/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot=  -fdebug-prefix-map=/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot-native=  -fvisibility-inlines-hidden"
    export FC="aarch64-oe-linux-gfortran  -mbranch-protection=standard --sysroot=/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot"
    export GIT_CEILING_DIRECTORIES="/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0"
    export HOME="/home/tisdk"
    export LC_ALL="en_US.UTF-8"
    export LD="aarch64-oe-linux-ld --sysroot=/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot "
    export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fcanon-prefix-map  -fmacro-prefix-map=/home/tisdk/tisdk/build/workspace/sources/edgeai-gst-apps/apps_cpp=/usr/src/debug/edgeai-gst-apps/1.0.0  -fdebug-prefix-map=/home/tisdk/tisdk/build/workspace/sources/edgeai-gst-apps/apps_cpp=/usr/src/debug/edgeai-gst-apps/1.0.0  -fmacro-prefix-map=/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/edgeai-gst-apps-1.0.0=/usr/src/debug/edgeai-gst-apps/1.0.0  -fdebug-prefix-map=/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/edgeai-gst-apps-1.0.0=/usr/src/debug/edgeai-gst-apps/1.0.0  -fdebug-prefix-map=/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot=  -fmacro-prefix-map=/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot=  -fdebug-prefix-map=/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot-native= "
    export MAKE="make"
    export NM="aarch64-oe-linux-gcc-nm"
    export OBJCOPY="aarch64-oe-linux-objcopy"
    export OBJDUMP="aarch64-oe-linux-objdump"
    export OMP_NUM_THREADS="12"
    export PATH="/home/tisdk/tisdk/sources/oe-core/scripts:/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot-native/usr/bin/aarch64-oe-linux:/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot/usr/bin/crossscripts:/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot-native/usr/sbin:/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot-native/usr/bin:/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot-native/sbin:/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot-native/bin:/home/tisdk/tisdk/sources/bitbake/bin:/home/tisdk/tisdk/build/arago-tmp-default-glibc/hosttools"
    export PERL_HASH_SEED="0"
    export PKG_CONFIG_DIR="/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot/usr/lib/pkgconfig"
    export PKG_CONFIG_DISABLE_UNINSTALLED="yes"
    export PKG_CONFIG_LIBDIR="/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot/usr/lib/pkgconfig"
    export PKG_CONFIG_PATH="/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot/usr/lib/pkgconfig:/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot/usr/share/pkgconfig"
    export PKG_CONFIG_SYSROOT_DIR="/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot"
    export PKG_CONFIG_SYSTEM_INCLUDE_PATH="/usr/include"
    export PKG_CONFIG_SYSTEM_LIBRARY_PATH="/usr/lib:/usr/lib"
    export PSEUDO_DISABLED="0"
    export PSEUDO_IGNORE_PATHS="/usr/,/etc/,/usr/lib,/dev/,/run/,/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/temp,/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot,/home/tisdk/tisdk/build/sstate-cache,/home/tisdk/tisdk/build/arago-tmp-default-glibc/stamps,/home/tisdk/tisdk/build/arago-tmp-default-glibc/sstate-control,/home/tisdk/tisdk/build/arago-tmp-default-glibc/buildstats,/home/tisdk/tisdk/build/arago-tmp-default-glibc/sysroots-components,/home/tisdk/tisdk/build/arago-tmp-default-glibc@@@                                      
    export PSEUDO_LOCALSTATEDIR="/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/pseudo/"
    export PSEUDO_NOSYMLINKEXP="1"
    export PSEUDO_PASSWD="/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/recipe-sysroot:/home/tisdk/tisdk/build/arago-tmp-default-glibc/sysroots-components/x86_64/pseudo-native"
    export PSEUDO_PREFIX="/home/tisdk/tisdk/build/arago-tmp-default-glibc/sysroots-components/x86_64/pseudo-native/usr"
    export PYTHONHASHSEED="0"
    export RANLIB="aarch64-oe-linux-gcc-ranlib"
    export READELF="aarch64-oe-linux-readelf"
    unset SHELL
    export SOC="am62a"
    export SOURCE_DATE_EPOCH="1745555108"
    export STRINGS="aarch64-oe-linux-strings"
    export STRIP="aarch64-oe-linux-strip"
    export TZ="UTC"
    export base_bindir="/usr/bin"
    export base_libdir="/usr/lib"
    export base_prefix=""
    export base_sbindir="/usr/sbin"
    export bindir="/usr/bin"
    export datadir="/usr/share"
    export docdir="/usr/share/doc"
    export exec_prefix="/usr"
    export includedir="/usr/include"
    export infodir="/usr/share/info"
    export libdir="/usr/lib"
    export libexecdir="/usr/libexec"
    export localstatedir="/var"
    export mandir="/usr/share/man"
    export nonarch_base_libdir="/usr/lib"
    export nonarch_libdir="/usr/lib"
    export prefix="/usr"
    export sbindir="/usr/sbin"
    export servicedir="/srv"
    export sharedstatedir="/com"
    export sysconfdir="/etc"
    export systemd_system_unitdir="/usr/lib/systemd/system"
    export systemd_unitdir="/usr/lib/systemd"
    export systemd_user_unitdir="/usr/lib/systemd/user"
    
    # line: 48, file: /home/tisdk/tisdk/sources/meta-edgeai/recipes-tisdk/edgeai-components/edgeai-gst-apps.bb
    do_install() {
        CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
    
        mkdir -p /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/image/opt/edgeai-gst-apps
        cp ${CP_ARGS} /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/git/* /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/image/opt/edgeai-gst-apps
        cp ${CP_ARGS} /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/out/bin /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/image/opt/edgeai-gst-apps/apps_cpp/
    
        install -d /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/image/opt/edgeai-gst-apps/configs/
        install -m 0644 /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/dms_config.yaml /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/image/opt/edgeai-gst-apps/configs/
    }
    
    cd '/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/edgeai-gst-apps-1.0.0'
    do_install
    
    # cleanup
    ret=$?
    trap '' 0
    exit $ret

    arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/temp/log.do_install.2316

    DEBUG: Executing python function extend_recipe_sysroot
    NOTE: Direct dependencies are ['/home/tisdk/tisdk/sources/meta-edgeai/recipes-tisdk/edgeai-components/edgeai-dl-inferer.bb:do_populate_sysroot', '/home/tisdk/tisdk/sources/meta-edgeai/recipes-tisdk/ti-psdk-rtos/ti-vision-apps.bb:do_populate_sysroot', '/home/tisdk/tisdk/sources/meta-openembedded/meta-oe/recipes-support/opencv/opencv_4.9.0.bb:do_populate_sysroot', '/home/tisdk/tisdk/sources/meta-openembedded/meta-oe/recipes-support/yaml-cpp/yaml-cpp_0.8.0.bb:do_populate_sysroot', '/home/tisdk/tisdk/sources/oe-core/meta/recipes-core/glibc/glibc_2.39.bb:do_populate_sysroot', '/home/tisdk/tisdk/sources/oe-core/meta/recipes-devtools/cmake/cmake-native_3.28.3.bb:do_populate_sysroot', '/home/tisdk/tisdk/sources/oe-core/meta/recipes-devtools/gcc/gcc-cross_13.3.bb:do_populate_sysroot', '/home/tisdk/tisdk/sources/oe-core/meta/recipes-devtools/gcc/gcc-runtime_13.3.bb:do_populate_sysroot', '/home/tisdk/tisdk/sources/oe-core/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot', '/home/tisdk/tisdk/sources/oe-core/meta/recipes-multimedia/gstreamer/gstreamer1.0_1.22.12.bb:do_populate_sysroot', 'virtual:native:/home/tisdk/tisdk/sources/oe-core/meta/recipes-devtools/ninja/ninja_1.11.1.bb:do_populate_sysroot', 'virtual:native:/home/tisdk/tisdk/sources/oe-core/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', 'virtual:native:/home/tisdk/tisdk/sources/oe-core/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', 'virtual:native:/home/tisdk/tisdk/sources/oe-core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/home/tisdk/tisdk/sources/oe-core/meta/recipes-devtools/repo/repo_2.42.bb:do_populate_sysroot', 'virtual:native:/home/tisdk/tisdk/sources/oe-core/meta/recipes-extended/xz/xz_5.4.6.bb:do_populate_sysroot']
    NOTE: Installed into sysroot: []
    NOTE: Skipping as already exists in sysroot: ['devil', 'clang', 'compiler-rt', 'libcxx', 'edgeai-apps-utils', 'edgeai-dl-inferer', 'ti-vision-apps', 'ti-tidl-osrt', 'hwloc', 'glm', 'libgphoto2', 'v4l-utils', 'gflags', 'glog', 'libeigen', 'libusb-compat', 'ade', 'opencv', 'tbb', 'yaml-cpp', 'ti-rpmsg-char', 'openssl', 'base-files', 'base-passwd', 'expat', 'gettext-minimal-native', 'glib-2.0', 'glibc', 'libxcrypt', 'libxml2', 'ncurses', 'systemd', 'util-linux-libuuid', 'util-linux', 'zlib', 'binutils-cross-aarch64', 'binutils', 'cmake-native', 'elfutils', 'file', 'gcc-cross-aarch64', 'gcc-runtime', 'libgcc', 'libedit', 'libtool-native', 'libtool', 'm4-native', 'opkg-utils', 'orc', 'python3-numpy', 'python3', 'quilt-native', 'bzip2', 'libarchive', 'libidn2', 'libnsl2', 'libtirpc', 'lzlib', 'libpam', 'shadow-sysroot', 'shadow', 'texinfo-dummy-native', 'xz', 'zstd', 'gobject-introspection', 'cairo', 'libdrm', 'fontconfig', 'freetype', 'harfbuzz', 'libjpeg-turbo', 'mesa', 'pango', 'vulkan-headers', 'vulkan-loader', 'wayland-protocols', 'wayland', 'libpciaccess', 'libpthread-stubs', 'pixman', 'util-macros', 'cryptodev-linux', 'kmod', 'linux-libc-headers', 'alsa-lib', 'gstreamer1.0-plugins-base', 'gstreamer1.0', 'libogg', 'libpng', 'libtheora', 'tiff', 'libvorbis', 'libwebp', 'acl', 'attr', 'bash-completion', 'curl', 'fribidi', 'gdbm', 'gmp', 'gnutls', 'libtasn1', 'icu', 'iso-codes', 'libatomic-ops', 'libcap-ng', 'libcap', 'libexif', 'libffi', 'libgcrypt', 'libgpg-error', 'libmicrohttpd', 'libpcre2', 'libseccomp', 'libunistring', 'libunwind', 'libusb1', 'nettle', 'sqlite3', 'openssl-native', 'expat-native', 'ncurses-native', 'util-linux-libuuid-native', 'zlib-native', 'flex-native', 'gnu-config-native', 'libedit-native', 'make-native', 'ninja-native', 'patch-native', 'perl-native', 'pkgconfig-native', 'pseudo-native', 'python3-native', 'repo-native', 'bzip2-native', 'libnsl2-native', 'libtirpc-native', 'shadow-native', 'xz-native', 'zstd-native', 'attr-native', 'gdbm-native', 'gmp-native', 'libbsd-native', 'libffi-native', 'libmd-native', 'libmpc-native', 'mpfr-native', 're2c-native', 'sqlite3-native']
    DEBUG: Python function extend_recipe_sysroot finished
    DEBUG: Executing shell function do_install
    cp: cannot stat '/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/git/*': No such file or directory
    WARNING: /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/temp/run.do_install.38893:147 exit 1 from 'cp ${CP_ARGS} /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/git/* /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/image/opt/edgeai-gst-apps'
    WARNING: Backtrace (BB generated script):
            #1: do_install, /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/temp/run.do_install.38893, line 147
            #2: main, /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/temp/run.do_install.38893, line 155
    

    arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/temp/log.do_populate_lic

    Contains nothing

    Best Regards,
    Sajan

  • Sajan,

    Can you check if the below folder exists, and what's in it?

    /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/git/

    in case of build issues after modifying a recipe it is often a good idea to completely clean out any download and build artifacts and then re-start the build. Can you try the below:

    Please provide the result of above experiment.

    Regards, Andreas

  • Hi Andreas,

    below folder exists, and what's in it

    Yes there is edgeai-gst-apps-src, edgeai-gst-apps-source, edgeai-gst-apps related some directories

    provide the result of above experiment

    My last reply contains the error and its log.

    WARNING: Backtrace (BB generated script):
    | #1: do_install, /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/temp/run.do_install.38893, line 147
    | #2: main, /home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/temp/run.do_install.38893, line 155

    this one and the code section contains error followed by log.

    Should I use devtool finish before devtool build and I have some confusion about S is set to git/apps_cpp in .bb file

    Warm Regards,
    Sajan

     

  • My last reply contains the error and its log.

    So you did execute the `$ MACHINE=am62axx-evm bitbake -c cleanall edgeai-gst-apps` command, yes? And nothing changed?

    Yes there is edgeai-gst-apps-src, edgeai-gst-apps-source, edgeai-gst-apps related some directories

    I had asked for you to check the contents of the `/home/tisdk/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/git/` folder. I don't understand why you see the files/folders in there that you mentioned. On my machine it looks like this:

    a0797059@jiji:~/tisdk/am62axx-evm/build (master)
    $ ll arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/git/
    total 80
    drwxr-xr-x 10 a0797059 a0797059 4096 Apr 24 14:57 ./
    drwxr-xr-x 22 a0797059 a0797059 4096 Apr 24 14:59 ../
    drwxr-xr-x  7 a0797059 a0797059 4096 Apr 24 14:57 apps_cpp/
    drwxr-xr-x  2 a0797059 a0797059 4096 Apr 24 14:57 apps_python/
    drwxr-xr-x  2 a0797059 a0797059 4096 Apr 24 14:57 configs/
    -rw-r--r--  1 a0797059 a0797059 1421 Apr 24 14:57 CONTRIBUTING
    drwxr-xr-x  2 a0797059 a0797059 4096 Apr 24 14:57 docker/
    -rwxr-xr-x  1 a0797059 a0797059 9748 Apr 24 14:57 download_models.sh*
    -rwxr-xr-x  1 a0797059 a0797059 2289 Apr 24 14:57 download_test_data.sh*
    drwxr-xr-x  8 a0797059 a0797059 4096 Apr 24 14:57 .git/
    -rw-r--r--  1 a0797059 a0797059  171 Apr 24 14:57 .gitignore
    -rwxr-xr-x  1 a0797059 a0797059 3157 Apr 24 14:57 init_script.sh*
    -rw-r--r--  3 a0797059 a0797059 2926 Apr 24 14:57 LICENSE
    drwxr-xr-x  2 a0797059 a0797059 4096 Apr 24 14:57 optiflow/
    -rw-r--r--  1 a0797059 a0797059   98 Apr 24 14:57 README.md
    drwxr-xr-x  5 a0797059 a0797059 4096 Apr 24 14:57 scripts/
    -rwxr-xr-x  1 a0797059 a0797059 2689 Apr 24 14:57 setup_script.sh*
    drwxr-xr-x  3 a0797059 a0797059 4096 Apr 24 14:57 tests/

    Please double-check your setup.

    Should I use devtool finish before devtool build and I have some confusion about S is set to git/apps_cpp in .bb file

    You don't need to use `devtool finish` before doing `devtool build`, see https://docs.yoctoproject.org/dev/dev-manual/devtool.html  (you'd want to go through the document in detail, it'll make things clearer).

    Regards, Andreas

  • Hello Andreas,

    I am sorry, now I am in office and that git directory contains below files and directories.

    tisdk@838ad761a0f9:~/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/edgeai-gst-apps/1.0.0/git$ ls -l
    total 64
    -rw-r--r-- 1 tisdk tisdk 1421 Apr 25 06:59 CONTRIBUTING
    -rw-r--r-- 3 tisdk tisdk 2926 Apr 25 06:59 LICENSE
    -rw-r--r-- 1 tisdk tisdk   98 Apr 25 06:59 README.md
    drwxr-xr-x 7 tisdk tisdk 4096 Apr 25 06:59 apps_cpp
    drwxr-xr-x 2 tisdk tisdk 4096 Apr 25 06:59 apps_python
    drwxr-xr-x 2 tisdk tisdk 4096 Apr 25 06:59 configs
    drwxr-xr-x 2 tisdk tisdk 4096 Apr 25 06:59 docker
    -rwxr-xr-x 1 tisdk tisdk 9748 Apr 25 06:59 download_models.sh
    -rwxr-xr-x 1 tisdk tisdk 2289 Apr 25 06:59 download_test_data.sh
    -rwxr-xr-x 1 tisdk tisdk 3157 Apr 25 06:59 init_script.sh
    drwxr-xr-x 2 tisdk tisdk 4096 Apr 25 06:59 optiflow
    drwxr-xr-x 5 tisdk tisdk 4096 Apr 25 06:59 scripts
    -rwxr-xr-x 1 tisdk tisdk 2689 Apr 25 06:59 setup_script.sh
    drwxr-xr-x 3 tisdk tisdk 4096 Apr 25 06:59 tests
    

    Regards,
    Sajan

  • that git directory contains below files and directories.

    At first glance it looks good and similar to how my folder looks like so that is good. Will need to look in this a bit closer but I'm currently working on a high-priority issue so it may take me ~2 days before I can get back to this here.

    Note: I am trying to change the wallpaper image file name in setup_wallpaper.sh . 

    The best is probably I'll just create an example of how to do that for you to follow.

    Regards, Andreas

  • Hello Andreas,

    The best is probably I'll just create an example of how to do that for you to follow.

    If you can, do it at your time. Please create a document or something that can help me.

    Consider this too : in .bb file S = "${WORKDIR}/git/apps_cpp" should this change to edit in scripts/setup_wallpaper.sh, apps_python/post_process.py

    Share the folder structure of the files we work with.

    Warm Regards,
    Sajan