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.

Linux/AM4379: Bitbake build error

Part Number: AM4379

Tool/software: Linux

As per the SDK developer guide to rebuild the SDK without "SGX" .

after "MACHINE=am437x-evm bitbake arago-core-tisdk-image", there are the following error messages:

Summary: 4 tasks failed:
  /home/user/tisdk/sources/meta-ros/recipes-extended/assimp/assimp_3.3.1.bb:do_compile
  /home/user/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_4.14.bb:do_create_srcipk
  /home/user/tisdk/sources/meta-qt5/recipes-qt/qt5/qtbase_git.bb:do_compile
  /home/user/tisdk/sources/meta-ros/recipes-extended/pcl/pcl_1.8.0.bb:do_compile
Summary: There were 2 WARNING messages shown.
Summary: There were 5 ERROR messages shown, returning a non-zero exit code.

Need help.

Thanks and regards,

Kevin C

  • Hello Kevin,

    You can stop the rc.pvr.service with this command.
    root@am437x-evm:~# systemctl disable rc.pvr.service

    In your OE build system.
    /home/user/tisdk/sources/meta-ros/recipes-extended/assimp/assimp_3.3.1.bb:do_compile - this shouldn't fail
    /home/user/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_4.14.bb:do_create_srcipk - fails because your host computer exceeds its virtual memory, you need to create or increase your SWAP space to fix this
    /home/user/tisdk/sources/meta-qt5/recipes-qt/qt5/qtbase_git.bb:do_compile - this shouldn't fail
    /home/user/tisdk/sources/meta-ros/recipes-extended/pcl/pcl_1.8.0.bb:do_compile - this shouldn't fail

    Also, you can build tisdk-rootfs-image (Target Filesystem) instead of arago-core-tisdk-image (Full SDK).

    Best regards,
    Kemal

  • Hi Kemal,

    I use the command "MACHINE=am437x-evm bitbake -k tisdk-rootfs-image" to try again and there are still have a few errors:

    ERROR: linux-ti-staging-4.14.79+gitAUTOINC+bde58ab01e-r3c.arago5.tisdk3.5 do_create_srcipk: Function failed: do_create_srcipk (log file is located at /home/user/tisdk/build/arago-tmp-external-linaro-toolchain/work/am437x_evm-linux-gnueabi/linux-ti-staging/4.14.79+gitAUTOINC+bde58ab01e-r3c.arago5.tisdk3.5/temp/log.do_create_srcipk.13037)

    ERROR: Logfile of failure stored in: /home/user/tisdk/build/arago-tmp-external-linaro-toolchain/work/am437x_evm-linux-gnueabi/linux-ti-staging/4.14.79+gitAUTOINC+bde58ab01e-r3c.arago5.tisdk3.5/temp/log.do_create_srcipk.13037

    Log data follows:

    | DEBUG: Executing python function sstate_task_prefunc

    | DEBUG: Python function sstate_task_prefunc finished

    | DEBUG: Executing shell function do_create_srcipk

    | Cloning into '/home/user/tisdk/build/arago-tmp-external-linaro-toolchain/work/am437x_evm-linux-gnueabi/linux-ti-staging/4.14.79+gitAUTOINC+bde58ab01e-r3c.arago5.tisdk3.5/temp-git-shallow-clone'...

    | remote: error: inflate: data stream error (incorrect data check)

    | remote: error: failed to unpack compressed delta at offset 435900272 from /home/user/tisdk/downloads/git2/git.ti.com.processor-sdk.processor-sdk-linux.git/objects/pack/pack-823a4a591ace78c157b5297f3edb7b20b7b54680.pack

    | remote: error: failed to read object a72065ed64d14aeb3d8504221af3ed6925576c6a at offset 435900268 from /home/user/tisdk/downloads/git2/git.ti.com.processor-sdk.processor-sdk-linux.git/objects/pack/pack-823a4a591ace78c157b5297f3edb7b20b7b54680.pack

    | remote: fatal: packed object a72065ed64d14aeb3d8504221af3ed6925576c6a (stored in /home/user/tisdk/downloads/git2/git.ti.com.processor-sdk.processor-sdk-linux.git/objects/pack/pack-823a4a591ace78c157b5297f3edb7b20b7b54680.pack) is corrupt

    | error: git upload-pack: git-pack-objects died with error.

    | fatal: git upload-pack: aborting due to possible repository corruption on the remote side.

    | remote: aborting due to possible repository corruption on the remote side.

    | fatal: early EOF

    | fatal: index-pack failed

    | WARNING: /home/user/tisdk/build/arago-tmp-external-linaro-toolchain/work/am437x_evm-linux-gnueabi/linux-ti-staging/4.14.79+gitAUTOINC+bde58ab01e-r3c.arago5.tisdk3.5/temp/run.do_create_srcipk.13037:1 exit 128 from 'git clone --depth 400 --branch processor-sdk-linux-4.14.y file://$PWD/.git $gitshallowclone'

    | ERROR: Function failed: do_create_srcipk (log file is located at /home/user/tisdk/build/arago-tmp-external-linaro-toolchain/work/am437x_evm-linux-gnueabi/linux-ti-staging/4.14.79+gitAUTOINC+bde58ab01e-r3c.arago5.tisdk3.5/temp/log.do_create_srcipk.13037)

    ERROR: Task (/home/user/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_4.14.bb:do_create_srcipk) failed with exit code '1'

    ERROR: Task (/home/user/tisdk/sources/meta-ros/recipes-extended/pcl/pcl_1.8.0.bb:do_compile) failed with exit code '1'

    ERROR: Task (/home/user/tisdk/sources/meta-qt5/recipes-qt/qt5/qtwebengine_git.bb:do_compile) failed with exit code '1'

    NOTE: Tasks Summary: Attempted 13255 tasks of which 2078 didn't need to be rerun and 3 failed.

    Summary: 3 tasks failed:
      /home/user/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_4.14.bb:do_create_srcipk
      /home/user/tisdk/sources/meta-ros/recipes-extended/pcl/pcl_1.8.0.bb:do_compile
      /home/user/tisdk/sources/meta-qt5/recipes-qt/qt5/qtwebengine_git.bb:do_compile
    Summary: There were 66 WARNING messages shown.
    Summary: There were 4 ERROR messages shown, returning a non-zero exit code.

    I have increase the SWAP space as below:

    user@SRD:~$ swapon -s
    Filename                Type        Size    Used    Priority
    /dev/sda5                               partition    8351740    1219372    -1
    /swapfile                               file        8388604    0    -2


    user@SRD:~$ free -h
                 total       used       free     shared    buffers     cached
    Mem:          7.7G       7.6G       128M       1.1M        18M       121M
    -/+ buffers/cache:       7.4G       268M
    Swap:          15G       4.2G        11G

    is it enough for linux-ti-staging_4.14.bb:do_create_srcipk?

    Best regards,
    Kevin

  • Yes, it is. Please, download the archive from this post and extract it to <tisdk>/downloads/git2/ directory.

  • Hi Kemal,

    I have download that file and extract it to the <tisdk>/downloads/git2/ directory. Then i try to build tisdk-rootfs-image again, the results still have two fails:

    NOTE: Tasks Summary: Attempted 14166 tasks of which 6 didn't need to be rerun and 2 failed.

    Summary: 2 tasks failed:
    /home/user/tisdk/sources/meta-qt5/recipes-qt/qt5/qtwebengine_git.bb:do_compile
    /home/user/tisdk/sources/meta-ros/recipes-extended/pcl/pcl_1.8.0.bb:do_compile
    Summary: There were 67 WARNING messages shown.
    Summary: There were 3 ERROR messages shown, returning a non-zero exit code.

    Whether the fail reason is related to the host configuration? Because the cpu utilization is almost to 100% when i'm building image.

    Best regards,
    Kevin
  • The CPU usage is expected to be almost 100%. These two packages eats a lot of CPU and RAM. Can you attach the detailed logs to see what exactly caused the failure?

  • Hi Kemal,

    I try to build pcl and qtwebengine respectively with command

    ”MACHINE=am437x-evm bitbake -k pcl“ (successly)

    “MACHINE=am437x-evm bitbake -k qtwebengine” (fail again), the log as below:

    qtwebengine_log.do_compile.txt

  • /home/user/tisdk/sources/meta-qt5/recipes-qt/qt5/qtwebengine_git.bb:do_compile - fails because you are missing g++-multilib package in your host computer. Run this command to fix it.
    $ sudo apt-get install g++-multilib

    /home/user/tisdk/sources/meta-ros/recipes-extended/pcl/pcl_1.8.0.bb:do_compile - fails because cc1plus was killed by low memory killer. To fix this increase your SWAP memory or build these two packages separately one after another.
    $ MACHINE=am437x-evm bitbake qtwebengine
    $ MACHINE=am437x-evm bitbake pcl

  • Hi Kermal,

    I have successfully rebuilt the rootfs, thanks a lot for your help.

    If i want to remove some other modules such as "qt and related functions" when i'm building rootfs, how shouls i do?

    Is there a technical document for making or cutting rootfs?
  • kevin c said:
    If i want to remove some other modules such as "qt and related functions" when i'm building rootfs, how shouls i do?


    Please, refer to this and this thread.


    kevin c said:
    Is there a technical document for making or cutting rootfs?

    Please, refer to the linked documents in this, this and this post.