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.

TDA4VH-Q1: SDK 11.00.00.08 build fails

Part Number: TDA4VH-Q1
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hi 

So I am trying to build full sdk of "ti-processor-sdk-rtos-j784s4-evm-11_00_00_06"
I have followed instructions as per the documentation provided under "Vision Apps User Guide " > "Build Environment Setup" and "Build Instructions

The most important steps were 

1. cd ${PSDKR_PATH}

    ./sdk_builder/scripts/setup_psdk_rtos.sh

2.  for Linux+RTOS mode

  • Edit file sdk_builder/build_flags.mak and modify below variables
    BUILD_EMULATION_MODE=no
    BUILD_TARGET_MODE=yes
    BUILD_LINUX_MPU=yes
    PROFILE=release
  • cd sdk_builder
    make sdk -j16


    I am running into the below error after following these steps :
    ```
    /home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/toolchain/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by /home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/toolchain/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc)
    /home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/toolchain/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.36' not found (required by /home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/toolchain/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc)
    /home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/toolchain/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by /home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/toolchain/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc)
    /home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/toolchain/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.36' not found (required by /home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/toolchain/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc)
    make[2]: *** [/home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/sdk_builder/concerto/finale.mak:318: /home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/app_utils/out/J784S4/A72/LINUX/release/module/utils.console_io.src/app_log_writer.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    make[2]: *** [/home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/sdk_builder/concerto/finale.mak:318: /home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/app_utils/out/J784S4/A72/LINUX/release/module/utils.console_io.src/app_log_reader.o] Error 1
    /home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/toolchain/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by /home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/toolchain/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc)
    /home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/toolchain/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.36' not found (required by /home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/toolchain/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc)
    make[2]: *** [/home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/sdk_builder/concerto/finale.mak:318: /home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/app_utils/out/J784S4/A72/LINUX/release/module/utils.console_io.src/app_get.o] Error 1
    /home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/toolchain/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by /home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/toolchain/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc)
    /home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/toolchain/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.36' not found (required by /home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/toolchain/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc)
    make[2]: *** [/home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/sdk_builder/concerto/finale.mak:318: /home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/app_utils/out/J784S4/A72/LINUX/release/module/utils.console_io.src/app_log_linux.o] Error 1
    make[2]: Leaving directory '/home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/app_utils'
    make[1]: *** [makerules/makefile_tiovx_ptk_imaging.mak:8: app_utils] Error 2
    make[1]: Leaving directory '/home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06/sdk_builder'
    make: *** [Makefile:56: sdk] Error 2
    ```

    Clearly there is a glibc mismatch even though I use Ubuntu 22.04 LTS. As per the documentation Ubuntu 22.04 is to be used by the host computer for this build and Ubuntu 22.04 is based on glibc 2.35.The build fails because I don't have  GLIBC >=2.38

    How can I get this to work ?
    Thanks in advance.
    Cheers

    Asif
  • Hi Asif,

    can you create the sdk once again from the beginning and make sure the  ./sdk_builder/scripts/setup_psdk_rtos.sh is successfully executed.

    Yes, host computer should be ubuntu 22.04.

    Regards,
    Gokul

  • Hi Gokul, 

    The output of ./sdk_builder/scripts/setup_psdk_rtos.sh is 

    ```
    [sudo] password for mac:
    Hit:1 https://nvidia.github.io/libnvidia-container/stable/deb/amd64 InRelease
    Hit:2 https://nvidia.github.io/libnvidia-container/experimental/deb/amd64 InRelease
    Hit:3 http://de.archive.ubuntu.com/ubuntu jammy InRelease
    Hit:4 https://download.docker.com/linux/ubuntu jammy InRelease
    Hit:5 http://cz.archive.ubuntu.com/ubuntu jammy InRelease
    Get:6 http://de.archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
    Hit:7 http://archive.ubuntu.com/ubuntu jammy InRelease
    Hit:8 https://ppa.launchpadcontent.net/audio-recorder/ppa/ubuntu jammy InRelease
    Hit:9 http://security.ubuntu.com/ubuntu jammy-security InRelease
    Hit:10 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease
    Hit:11 https://packages.microsoft.com/repos/ms-teams stable InRelease
    Hit:12 https://packages.microsoft.com/repos/azure-cli jammy InRelease
    Hit:13 https://ppa.launchpadcontent.net/flatpak/stable/ubuntu jammy InRelease
    Hit:14 https://packages.microsoft.com/repos/code stable InRelease
    Hit:15 https://ppa.launchpadcontent.net/kubuntu-ppa/ppa/ubuntu jammy InRelease
    Get:16 http://de.archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]
    Hit:17 https://ppa.launchpadcontent.net/umang/indicator-stickynotes/ubuntu jammy InRelease
    Hit:18 https://ppa.launchpadcontent.net/wfg/0ad/ubuntu jammy InRelease
    Get:19 http://de.archive.ubuntu.com/ubuntu jammy-updates/main amd64 DEP-11 Metadata [112 kB]
    Get:20 http://de.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 DEP-11 Metadata [212 B]
    Get:21 http://de.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 DEP-11 Metadata [359 kB]
    Get:22 http://de.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 DEP-11 Metadata [940 B]
    Get:23 http://de.archive.ubuntu.com/ubuntu jammy-backports/main amd64 DEP-11 Metadata [7.060 B]
    Get:24 http://de.archive.ubuntu.com/ubuntu jammy-backports/restricted amd64 DEP-11 Metadata [212 B]
    Get:25 http://de.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 DEP-11 Metadata [14,0 kB]
    Get:26 http://de.archive.ubuntu.com/ubuntu jammy-backports/multiverse amd64 DEP-11 Metadata [212 B]
    Fetched 749 kB in 1s (529 kB/s)
    Reading package lists... Done
    j784s4: [dof] Creating/Updating system link to libDOF.so ...
    j784s4: [glbce] Creating/Updating system link to libApicalSIM.so.1 ...
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Note, selecting 'libgraphviz-dev' instead of 'graphviz-dev'
    autoconf is already the newest version (2.71-2).
    bison is already the newest version (2:3.8.2+dfsg-1build1).
    build-essential is already the newest version (12.9ubuntu3).
    flex is already the newest version (2.6.4-8build2).
    libpng-dev is already the newest version (1.6.37-3build5).
    libtool is already the newest version (2.4.6-15build2).
    libyaml-cpp-dev is already the newest version (0.7.0+dfsg-8build1).
    python3-pyelftools is already the newest version (0.27-1).
    libopenexr-dev is already the newest version (2.5.7-1).
    mono-runtime is already the newest version (6.8.0.105+dfsg-3.2).
    ninja-build is already the newest version (1.10.1-1).
    pkgconf is already the newest version (1.8.0-1).
    swig is already the newest version (4.0.2-1ubuntu1).
    cmake is already the newest version (3.22.1-1ubuntu1.22.04.2).
    curl is already the newest version (7.81.0-1ubuntu1.20).
    file is already the newest version (1:5.41-3ubuntu0.1).
    git is already the newest version (1:2.34.1-1ubuntu1.15).
    libgbm-dev is already the newest version (23.2.1-1ubuntu3.1~22.04.3).
    libgles2-mesa-dev is already the newest version (23.2.1-1ubuntu3.1~22.04.3).
    libprotobuf-dev is already the newest version (3.12.4-1ubuntu7.22.04.4).
    libprotoc-dev is already the newest version (3.12.4-1ubuntu7.22.04.4).
    python3-distutils is already the newest version (3.10.8-1~22.04).
    python3-setuptools is already the newest version (59.6.0-1.2ubuntu0.22.04.3).
    u-boot-tools is already the newest version (2022.01+dfsg-2ubuntu2.6).
    unzip is already the newest version (6.0-26ubuntu3.2).
    libc6:i386 is already the newest version (2.35-0ubuntu3.10).
    graphviz is already the newest version (2.42.2-6ubuntu0.1).
    libavformat-dev is already the newest version (7:4.4.2-0ubuntu0.22.04.1).
    libgraphviz-dev is already the newest version (2.42.2-6ubuntu0.1).
    libncurses5 is already the newest version (6.3-2ubuntu0.1).
    libtinfo5 is already the newest version (6.3-2ubuntu0.1).
    protobuf-compiler is already the newest version (3.12.4-1ubuntu7.22.04.4).
    python3-pip is already the newest version (22.0.2+dfsg-1ubuntu0.6).
    The following packages were automatically installed and are no longer required:
    0ad-data 0ad-data-common libenet7 libfmt8 libgloox18 libwxbase3.0-0v5
    libwxgtk3.0-gtk3-0v5
    Use 'sudo apt autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 30 not upgraded.
    [psdk linux tisdk-adas-image-j784s4-evm.tar.xz] Checking ...
    [psdk linux tisdk-adas-image-j784s4-evm.tar.xz] Done
    [psdk linux boot-adas-j784s4-evm.tar.gz] Checking ...
    [psdk linux boot-adas-j784s4-evm.tar.gz] Done
    [psdk linux toolchain] Installing ...
    [psdk linux toolchain] Done
    /home/mac/TI-SDK11/ti-processor-sdk-rtos-j784s4-evm-11_00_00_06
    export BIOS_VERSION=
    export XDC_VERSION=
    export GCC_ARCH64_VERSION=9.2-2019.12
    export CGT_C6X_VERSION=8.3.7
    export CGT_C7X_VERSION=5.0.0.LTS
    export CGT_ARM_VERSION=
    export CGT_ARMLLVM_VERSION=3.2.2.LTS
    export NDK_VERSION=
    export NS_VERSION=
    export SYSCONFIG_VERSION=
    export SYSCONFIG_BUILD=
    [ti-cgt-armllvm_3.2.2.LTS] Checking ...
    [ti-cgt-armllvm_3.2.2.LTS] Done
    [ti-cgt-c7000_5.0.0.LTS] Checking ...
    [ti-cgt-c7000_5.0.0.LTS] Done
    [gcc-arm-9.2-2019.12-x86_64-aarch64-none-elf] Checking ...
    [gcc-arm-9.2-2019.12-x86_64-aarch64-none-elf] Done
    [gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf] Checking ...
    [gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf] Done
    [protobuf-3.21.12] Checking ...
    [protobuf-3.21.12] Done
    [core secdev] Checking ...
    [core secdev] Checking ... Done
    [ATF] Checking ...
    remote: Counting objects: 6559, done
    remote: Finding sources: 100% (185/185)
    remote: Total 185 (delta 44), reused 120 (delta 44)
    Receiving objects: 100% (185/185), 277.41 KiB | 737.00 KiB/s, done.
    Resolving deltas: 100% (44/44), done.
    From https://git.trustedfirmware.org/TF-A/trusted-firmware-a
    2045c9958..35b2bbf49 integration -> origin/integration
    HEAD is now at 00f1ec6b8 Merge changes from topic "revert-ti-dm-workaround" into integration
    v2.10.0-367-g00f1ec6b8
    [ATF] Checking ... Done
    [OPTEE] Checking ...
    HEAD is now at 12d7c4ee4 Update CHANGELOG for 4.2.0
    4.2.0
    [OPTEE] Checking ... Done
    [opkg-utils] Checking ...
    [opkg-utils] Done
    [glm] Checking ...
    [glm] Done
    [pip] Checking ...
    Defaulting to user installation because normal site-packages is not writeable
    Requirement already satisfied: pip in /home/mac/.local/lib/python3.10/site-packages (25.1.1)
    [pip] Checking ... Done
    [pip] Installing dependant python packages ...
    Requirement already satisfied: pycryptodomex in /home/mac/.local/lib/python3.10/site-packages (3.20.0)
    Requirement already satisfied: meson in /home/mac/.local/lib/python3.10/site-packages (1.4.0)
    Requirement already satisfied: jsonschema in /home/mac/.local/lib/python3.10/site-packages (4.22.0)
    Requirement already satisfied: attrs>=22.2.0 in /home/mac/.local/lib/python3.10/site-packages (from jsonschema) (22.2.0)
    Requirement already satisfied: jsonschema-specifications>=2023.03.6 in /home/mac/.local/lib/python3.10/site-packages (from jsonschema) (2023.12.1)
    Requirement already satisfied: referencing>=0.28.4 in /home/mac/.local/lib/python3.10/site-packages (from jsonschema) (0.35.1)
    Requirement already satisfied: rpds-py>=0.7.1 in /home/mac/.local/lib/python3.10/site-packages (from jsonschema) (0.18.1)
    Requirement already satisfied: yamllint in /home/mac/.local/lib/python3.10/site-packages (1.35.1)
    Requirement already satisfied: pathspec>=0.5.3 in /home/mac/.local/lib/python3.10/site-packages (from yamllint) (0.12.1)
    Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (from yamllint) (5.4.1)
    [pip] Installing dependant python packages ... Done
    Packages installed successfully

    ```

    1. Can you please tell me the ldd --version of your working Ubuntu 22.04 env.  (I have glibc 2.35 for ubuntu 22.04)
    2. Can you please tell me the output of  "${PSDKRA_PATH}/toolchain/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc --version "

    in your working environment.

    So far I still have the glibc mismatch. 

    Thanks
    Asif

  • Hi Asif,

    attaching ldd and gcc version

    Regards,
    Gokul

  • Hello Gokul,

    Thank you very much for your reply, this was very helpful 

    Kind regards

    Asif

  • Hi Asif,

    I am closing this thread as the issue is solved.

    Regards,
    Gokul