SK-AM62A-LP: Yocto build error.

Part Number: SK-AM62A-LP

Tool/software:

I am unable to do 1.2.3.2. Build Steps of Yocto documented in software-dl.ti . After  MACHINE=am62axx-evm bitbake -k tisdk-core-bundle command. Seems 7 tasks failed and need re-run.

NOTE: Tasks Summary: Attempted 19684 tasks of which 19677 didn't need to be rerun and 7 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 4 seconds
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 4 seconds

Summary: 7 tasks failed:
  /home/user/tisdk/sources/meta-qt5/recipes-qt/qt5/qtbase_git.bb:do_compile
  /home/user/tisdk/sources/oe-core/meta/recipes-devtools/gcc/gcc_13.3.bb:do_compile
  virtual:nativesdk:/home/user/tisdk/sources/meta-arago/meta-arago-extras/recipes-core/llvm/ti-llvm3.6_3.6.bb:do_compile
  virtual:native:/home/user/tisdk/sources/meta-arago/meta-arago-extras/recipes-core/llvm/ti-llvm3.6_3.6.bb:do_compile
  /home/user/tisdk/sources/oe-core/meta/recipes-devtools/binutils/binutils-cross-canadian_2.42.bb:do_compile
  /home/user/tisdk/sources/oe-core/meta/recipes-devtools/gdb/gdb-cross-canadian_14.2.bb:do_compile
  /home/user/tisdk/sources/oe-core/meta/recipes-devtools/gcc/gcc-cross-canadian_13.3.bb:do_compile
Summary: There were 14 ERROR messages, returning a non-zero exit code.
 

This is the note and summary in terminal. Please help me to solve this problem.

Thank you.

  • Hi Sajan,

    I'm seeing issues trying to build `tisdk-core-bundle` myself, but different errors from what you see. However regular image targets build just fine. I'm checking with the team to see how we build those targets in production, perhaps there's some piece missing in the documentation.

    Also, why are you trying to build `tisdk-core-bundle`? This target is usually only used here at TI during SDK creation, and is not something a customer would use. If anything, a customer typically would build `meta-toolchain-arago-tisdk` to generate what's called "devkit installer", which is the cross-platform host toolchain + libraries + headers etc. for application development.

    Regards, Andreas

  • Hi Andreas,

    As you mentioned I tried using meta-toolchain-arago-tisdk as target. It also contain errors. Attaching the terminal notes below.


    NOTE: Tasks Summary: Attempted 8398 tasks of which 8391 didn't need to be rerun and 6 failed.
    NOTE: Writing buildhistory
    NOTE: Writing buildhistory took: 3 seconds
    NOTE: Writing buildhistory
    NOTE: Writing buildhistory took: 3 seconds
    
    Summary: 6 tasks failed:
      /home/user/tisdk/sources/meta-qt5/recipes-qt/qt5/qtbase_git.bb:do_compile
      virtual:native:/home/user/tisdk/sources/meta-arago/meta-arago-extras/recipes-core/llvm/ti-llvm3.6_3.6.bb:do_compile
      /home/user/tisdk/sources/oe-core/meta/recipes-devtools/binutils/binutils-cross-canadian_2.42.bb:do_compile
      /home/user/tisdk/sources/oe-core/meta/recipes-devtools/gdb/gdb-cross-canadian_14.2.bb:do_compile
      /home/user/tisdk/sources/oe-core/meta/recipes-devtools/gcc/gcc-cross-canadian_13.3.bb:do_compile
      virtual:nativesdk:/home/user/tisdk/sources/meta-arago/meta-arago-extras/recipes-core/llvm/ti-llvm3.6_3.6.bb:do_compile
    Summary: There were 8 WARNING messages.
    Summary: There were 12 ERROR messages, returning a non-zero exit code.


    Regards,

    Sajan.

  • As you mentioned I tried using meta-toolchain-arago-tisdk as target. It also contain errors. A

    Yes that one also doesn't build for me. But also here, my errors are different. I checked with the development team they didn't readily know what might be going wrong, they claim it builds for them.

    I'll need to spend some more time digging into this myself by setting this up on a different machine/from scratch and report back here,

    Regards, Andreas

  • Sajan,

    also, are you building this on Ubuntu 22.04?

    Then, can you also try the Docker-based build process, as an alternative? See here https://github.com/TexasInstruments/ti-docker-images?tab=readme-ov-file#steps-to-run-yocto-builds-inside-container  (this is linked from the SDK documentation at https://software-dl.ti.com/processor-sdk-linux/esd/AM62AX/10_00_00/exports/docs/linux/Overview_Building_the_SDK.html#steps-to-run-yocto-builds-inside-container).

    Also, how much memory and swap space do you have configured? Ideally you'd want at least 64GB combined total.

    Regards, Andreas

  • I tried it on Ubuntu 22.04 machine has both 32gb ram and swap.


    Regards,
    Sajan

  • Hi Sajan,

    I just used a second machine with a different install of the Yocto build system for AM62A SDK v10.0 and was able to build meta-toolchain-arago-tisdk without any issues:

    a0797059@dasso:~/tisdk/am62axx-evm/build (master)
    $ ll deploy-ti/sdk/
    total 481668
    drwxr-xr-x 3 a0797059 a0797059      4096 Dec 11 22:21 ./
    drwxr-xr-x 4 a0797059 a0797059      4096 Dec 11 22:21 ../
    -rw-r--r-- 2 a0797059 a0797059     24664 Dec 11 22:14 arago-2023.10-aarch64-linux-tisdk.host.manifest
    -rw-r--r-- 2 a0797059 a0797059   2149308 Dec 11 22:14 arago-2023.10-aarch64-linux-tisdk-host.spdx.tar.zst
    -rw-r--r-- 2 a0797059 a0797059 486828058 Dec 11 22:21 arago-2023.10-aarch64-linux-tisdk.sh
    drwxr-xr-x 2 a0797059 a0797059      4096 Dec 11 22:19 arago-2023.10-aarch64-linux-tisdk-sw_manifest/
    -rw-r--r-- 2 a0797059 a0797059     39999 Dec 11 22:13 arago-2023.10-aarch64-linux-tisdk.target.manifest
    -rw-r--r-- 2 a0797059 a0797059   3611815 Dec 11 22:13 arago-2023.10-aarch64-linux-tisdk-target.spdx.tar.zst
    -rw-r--r-- 2 a0797059 a0797059    547426 Dec 11 22:13 arago-2023.10-aarch64-linux-tisdk.testdata.json

    I'm trying tisdk-core-bundle next.

    Can you try a fresh/clean install as well?

    Regards, Andreas