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.

AM4378: SDK Build Fails

Part Number: AM4378


Hello, i am trying to build SDK version 6.3.0.106. I am following the directions here, and the build gets about 30% done and errors out, and I cannot figure out what the issue is. I have attached the full output from the build, any help is appreciated.

$ MACHINE=am437x-evm bitbake arago-core-tisdk-bundle
WARNING: Layer meta-processor-sdk should set LAYERSERIES_COMPAT_meta-processor-sdk in its conf/layer.conf file to list the core layer names it is compatible with.
NOTE: Your conf/bblayers.conf has been automatically updated.
WARNING: Layer meta-processor-sdk should set LAYERSERIES_COMPAT_meta-processor-sdk in its conf/layer.conf file to list the core layer names it is compatible with.
NOTE: Your conf/bblayers.conf has been automatically updated.
WARNING: Layer meta-processor-sdk should set LAYERSERIES_COMPAT_meta-processor-sdk in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer meta-processor-sdk should set LAYERSERIES_COMPAT_meta-processor-sdk in its conf/layer.conf file to list the core layer names it is compatible with.
Loading cache: 100% |##############################################| Time: 0:00:01
Loaded 4658 entries from dependency cache.
Parsing recipes: 100% |############################################| Time: 0:00:19
Parsing of 3522 .bb files complete (2803 cached, 719 parsed). 4658 targets, 590 skipped, 0 masked, 0 errors.
WARNING: No recipes available for:
  /home/UTI/tanner.hunsucker/ti-processor-sdk-linux-am437x-evm-06.03.00.106/tisdk/sources/meta-arago/meta-arago-distro/recipes-browser/chromium/chromium-wayland_%.bbappend
  /home/UTI/tanner.hunsucker/ti-processor-sdk-linux-am437x-evm-06.03.00.106/tisdk/sources/meta-processor-sdk/recipes-ros/navigation/move-base_1.12.14.bbappend
  /home/UTI/tanner.hunsucker/ti-processor-sdk-linux-am437x-evm-06.03.00.106/tisdk/sources/meta-processor-sdk/recipes-ros/navigation/rotate-recovery_1.12.14.bbappend
NOTE: Resolving any missing task queue dependencies
NOTE: Multiple providers are available for runtime python-bson (python-bson, python-pymongo)
Consider defining a PREFERRED_RPROVIDER entry to match python-bson

Build Configuration:
BB_VERSION           = "1.40.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-18.04"
TARGET_SYS           = "arm-linux-gnueabi"
MACHINE              = "am437x-evm"
DISTRO               = "arago"
DISTRO_VERSION       = "2019.11"
TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU           = "hard"
meta-processor-sdk   = "HEAD:56d9d47f18eeec31a1086ca29e54b5956c46de84"
meta-aws             = "HEAD:6432f1b38b9dcbbb55020167f5b1cfe55e858c6d"
meta-ros             = "HEAD:72068b17e4192b51e09c8dc633805a35edac8701"
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"

Initialising tasks: 100% |#########################################| Time: 0:00:36
Sstate summary: Wanted 5663 Found 0 Missed 5663 Current 1138 (0% match, 16% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: pruss-lld-rtos-1_2020.4.16-r0.0 do_prepare_recipe_sysroot: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:extend_recipe_sysroot(d)
     0003:
File: '/home/UTI/tanner.hunsucker/ti-processor-sdk-linux-am437x-evm-06.03.00.106/tisdk/sources/oe-core/meta/classes/staging.bbclass', lineno: 553, function: extend_recipe_sysroot
     0549:                    dest = newmanifest[l]
     0550:                    if l.endswith("/"):
     0551:                        staging_copydir(l, targetdir, dest, seendirs)
     0552:                        continue
 *** 0553:                    staging_copyfile(l, targetdir, dest, postinsts, seendirs)
     0554:
     0555:    bb.note("Installed into sysroot: %s" % str(msg_adding))
     0556:    bb.note("Skipping as already exists in sysroot: %s" % str(msg_exists))
     0557:
File: '/home/UTI/tanner.hunsucker/ti-processor-sdk-linux-am437x-evm-06.03.00.106/tisdk/sources/oe-core/meta/classes/staging.bbclass', lineno: 151, function: staging_copyfile
     0147:        os.symlink(linkto, dest)
     0148:        #bb.warn(c)
     0149:    else:
     0150:        try:
 *** 0151:            os.link(c, dest)
     0152:        except OSError as err:
     0153:            if err.errno == errno.EXDEV:
     0154:                bb.utils.copyfile(c, dest)
     0155:            else:
Exception: PermissionError: [Errno 1] Operation not permitted: '/home/UTI/tanner.hunsucker/ti-processor-sdk-linux-am437x-evm-06.03.00.106/tisdk/build/arago-tmp-external-arm-toolchain/sysroots-components/am437x_evm/starterware-rtos/usr/share/ti/ti-pdk-tree/packages/ti/starterware/tools/ti_image/tiimage.exe' -> '/home/UTI/tanner.hunsucker/ti-processor-sdk-linux-am437x-evm-06.03.00.106/tisdk/build/arago-tmp-external-arm-toolchain/work/am437x_evm-linux-gnueabi/pruss-lld-rtos/1_2020.4.16-r0.0/recipe-sysroot/usr/share/ti/ti-pdk-tree/packages/ti/starterware/tools/ti_image/tiimage.exe'

ERROR: pruss-lld-rtos-1_2020.4.16-r0.0 do_prepare_recipe_sysroot: Function failed: extend_recipe_sysroot
ERROR: Logfile of failure stored in: /home/UTI/tanner.hunsucker/ti-processor-sdk-linux-am437x-evm-06.03.00.106/tisdk/build/arago-tmp-external-arm-toolchain/work/am437x_evm-linux-gnueabi/pruss-lld-rtos/1_2020.4.16-r0.0/temp/log.do_prepare_recipe_sysroot.3659
ERROR: Task (/home/UTI/tanner.hunsucker/ti-processor-sdk-linux-am437x-evm-06.03.00.106/tisdk/sources/meta-ti/recipes-bsp/pruss-lld/pruss-lld-rtos_git.bb:do_prepare_recipe_sysroot) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6201 tasks of which 6187 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/UTI/tanner.hunsucker/ti-processor-sdk-linux-am437x-evm-06.03.00.106/tisdk/sources/meta-ti/recipes-bsp/pruss-lld/pruss-lld-rtos_git.bb:do_prepare_recipe_sysroot
Summary: There were 5 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

  • Hi,

    Are you sure you have plenty of hard drive space available on that disk? Builds take a lot of space and it is easy to fill up a drive and start getting unusual errors.

    Thanks.

  • I know I'm definitely on the light side in terms of hard drive space, but I am using a swap file, and I have also done SDK builds on this machine before. My colleague is also using an identical machine and was able to complete the build successfully.

  • I would recommend checking your free disk space with something like "df -h" to make sure you've got some space available.

    To my understanding, a swap file helps with RAM but not with hard disk space, trading off disk space to help RAM but further limited the actual long term storage available.

  • This is the output of the df -h command:

    Filesystem Size Used Avail Use% Mounted on
    udev 3.9G 0 3.9G 0% /dev
    tmpfs 787M 3.9M 783M 1% /run
    /dev/sda1 451G 228G 201G 54% /
    tmpfs 3.9G 180M 3.7G 5% /dev/shm
    tmpfs 5.0M 4.0K 5.0M 1% /run/lock
    tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
    /dev/loop0 141M 141M 0 100% /snap/gnome-3-26-1604/100
    /dev/loop1 2.5M 2.5M 0 100% /snap/gnome-calculator/884
    /dev/loop2 100M 100M 0 100% /snap/core/10958
    /dev/loop3 56M 56M 0 100% /snap/core18/1997
    /dev/loop5 2.3M 2.3M 0 100% /snap/gnome-system-monitor/157
    /dev/loop10 384K 384K 0 100% /snap/gnome-characters/570
    /dev/loop4 65M 65M 0 100% /snap/gtk-common-themes/1514
    /dev/loop12 384K 384K 0 100% /snap/gnome-characters/708
    /dev/loop8 640K 640K 0 100% /snap/gnome-logs/103
    /dev/loop11 56M 56M 0 100% /snap/core18/1988
    /dev/loop13 219M 219M 0 100% /snap/gnome-3-34-1804/66
    /dev/loop9 141M 141M 0 100% /snap/gnome-3-26-1604/102
    /dev/loop6 66M 66M 0 100% /snap/gtk-common-themes/1515
    tmpfs 787M 16K 787M 1% /run/user/125
    tmpfs 787M 56K 787M 1% /run/user/1813983
    /dev/loop14 99M 99M 0 100% /snap/core/11081

    I don't really know how to interpret this, does it look like enough hard drive space to you, or would you recommend having more?

  • It shows you have 201GB available on /dev/sda1, which I assume is your primary hard drive. That should be enough.

    Let me kick off a build and see if I can reproduce the problem. It will take a little while.

  • Hi,

    I'm sorry, I was not able to replicate he problem you are seeing. Build completed just fine on my set up.