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.

PROCESSOR-SDK-AM62X: AM62X- [09.00.00.03] Yocto build is failing with permsission error

Part Number: PROCESSOR-SDK-AM62X

Tool/software:

Hi Ti ,

Working on AM62X , 09_00_00_03 build . using ubuntu 24 version host.

while compiling Yocto build getting permission issues and exiting .

Kindly help me on this  as it is critical to us .

Logs:

OTE: Deferring mc:k3r5:virtual:native:/home/test/project/ototrak/Yocto_WS/tisdk/sources/oe-core/meta/recipes-support/re2c/re2c_3.0.bb:do_deploy_source_date_epoch after virtual:native:/home/test/project/ototrak/Yocto_WS/tisdk/sources/oe-core/meta/recipes-support/re2c/re2c_3.0.bb:do_deploy_source_date_epoch
NOTE: Deferring mc:k3r5:virtual:native:/home/test/project/ototrak/Yocto_WS/tisdk/sources/oe-core/meta/recipes-support/re2c/re2c_3.0.bb:do_populate_lic after virtual:native:/home/test/project/ototrak/Yocto_WS/tisdk/sources/oe-core/meta/recipes-support/re2c/re2c_3.0.bb:do_populate_lic
NOTE: Deferring mc:k3r5:virtual:native:/home/test/project/ototrak/Yocto_WS/tisdk/sources/oe-core/meta/recipes-support/re2c/re2c_3.0.bb:do_populate_sysroot after virtual:native:/home/test/project/ototrak/Yocto_WS/tisdk/sources/oe-core/meta/recipes-support/re2c/re2c_3.0.bb:do_populate_sysroot
NOTE: Deferring mc:k3r5:virtual:native:/home/test/project/ototrak/Yocto_WS/tisdk/sources/oe-core/meta/recipes-support/sqlite/sqlite3_3.38.5.bb:do_deploy_source_date_epoch after virtual:native:/home/test/project/ototrak/Yocto_WS/tisdk/sources/oe-core/meta/recipes-support/sqlite/sqlite3_3.38.5.bb:do_deploy_source_date_epoch
NOTE: Deferring mc:k3r5:virtual:native:/home/test/project/ototrak/Yocto_WS/tisdk/sources/oe-core/meta/recipes-support/sqlite/sqlite3_3.38.5.bb:do_populate_lic after virtual:native:/home/test/project/ototrak/Yocto_WS/tisdk/sources/oe-core/meta/recipes-support/sqlite/sqlite3_3.38.5.bb:do_populate_lic
NOTE: Deferring mc:k3r5:virtual:native:/home/test/project/ototrak/Yocto_WS/tisdk/sources/oe-core/meta/recipes-support/sqlite/sqlite3_3.38.5.bb:do_populate_sysroot after virtual:native:/home/test/project/ototrak/Yocto_WS/tisdk/sources/oe-core/meta/recipes-support/sqlite/sqlite3_3.38.5.bb:do_populate_sysroot
Sstate summary: Wanted 2454 Local 0 Mirrors 0 Missed 2454 Current 0 (0% match, 0% complete)
NOTE: Executing Tasks
ERROR: PermissionError: [Errno 1] Operation not permitted

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/test/project/ototrak/Yocto_WS/tisdk/sources/bitbake/bin/bitbake-worker", line 268, in child
    bb.utils.disable_network(uid, gid)
  File "/home/test/project/ototrak/Yocto_WS/tisdk/sources/bitbake/lib/bb/utils.py", line 1653, in disable_network
    with open("/proc/self/uid_map", "w") as f:
PermissionError: [Errno 1] Operation not permitted

ERROR: PermissionError: [Errno 1] Operation not permitted

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/test/project/ototrak/Yocto_WS/tisdk/sources/bitbake/bin/bitbake-worker", line 268, in child
    bb.utils.disable_network(uid, gid)
  File "/home/test/project/ototrak/Yocto_WS/tisdk/sources/bitbake/lib/bb/utils.py", line 1653, in disable_network
    with open("/proc/self/uid_map", "w") as f:
PermissionError: [Errno 1] Operation not permitted

ERROR: Task (/home/test/project/ototrak/Yocto_WS/tisdk/sources/oe-core/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_unpack) failed with exit code '1'
ERROR: PermissionError: [Errno 1] Operation not permitted

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/test/project/ototrak/Yocto_WS/tisdk/sources/bitbake/bin/bitbake-worker", line 268, in child
    bb.utils.disable_network(uid, gid)
  File "/home/test/project/ototrak/Yocto_WS/tisdk/sources/bitbake/lib/bb/utils.py", line 1653, in disable_network
    with open("/proc/self/uid_map", "w") as f:
PermissionError: [Errno 1] Operation not permitted

ERROR: PermissionError: [Errno 1] Operation not permitted

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/test/project/ototrak/Yocto_WS/tisdk/sources/bitbake/bin/bitbake-worker", line 268, in child
    bb.utils.disable_network(uid, gid)
  File "/home/test/project/ototrak/Yocto_WS/tisdk/sources/bitbake/lib/bb/utils.py", line 1653, in disable_network
    with open("/proc/self/uid_map", "w") as f:
PermissionError: [Errno 1] Operation not permitted

ERROR: Task (/home/test/project/ototrak/Yocto_WS/tisdk/sources/oe-core/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb:do_unpack) failed with exit code '1'
ERROR: Task (/home/test/project/ototrak/Yocto_WS/tisdk/sources/oe-core/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_prepare_recipe_sysroot) failed with exit code '1'
ERROR: Task (/home/test/project/ototrak/Yocto_WS/tisdk/sources/oe-core/meta/recipes-core/gettext/gettext-minimal-native_0.21.bb:do_unpack) failed with exit code '1'
ERROR: PermissionError: [Errno 1] Operation not permitted

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/test/project/ototrak/Yocto_WS/tisdk/sources/bitbake/bin/bitbake-worker", line 268, in child
    bb.utils.disable_network(uid, gid)
  File "/home/test/project/ototrak/Yocto_WS/tisdk/sources/bitbake/lib/bb/utils.py", line 1653, in disable_network
    with open("/proc/self/uid_map", "w") as f:
PermissionError: [Errno 1] Operation not permitted

ERROR: PermissionError: [Errno 1] Operation not permitted

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/test/project/ototrak/Yocto_WS/tisdk/sources/bitbake/bin/bitbake-worker", line 268, in child
    bb.utils.disable_network(uid, gid)
  File "/home/test/project/ototrak/Yocto_WS/tisdk/sources/bitbake/lib/bb/utils.py", line 1653, in disable_network
    with open("/proc/self/uid_map", "w") as f:
PermissionError: [Errno 1] Operation not permitted

Thanks,Naresh

  • Hi Naresh,

    Working on AM62X , 09_00_00_03 build . using ubuntu 24 version host.

    The official Ubuntu version we support with our Processor SDK Linux v9.x is Ubuntu 22.04, can you please try this instead. It is well possible that the issue you are seeing is related to this. One way to do that in your system is using our Docker-based build process, which provides/includes a Docker container running a copy of Ubuntu 22.04, please see here: https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/09_02_01_10/exports/docs/linux/Overview_Building_the_SDK.html

    Note that Yocto Kirkstone which is what our SDK v9.x is based on also only lists Ubuntu up to 22.04 as operating system, see https://docs.yoctoproject.org/kirkstone/ref-manual/system-requirements.html#supported-linux-distributions

    Regards, Andreas

  • Hi Andreas , 

    below patch i applied for permission issue.

    https://patchwork.yoctoproject.org/project/bitbake/patch/20240708081034.1474312-1-changqing.li@windriver.com/#20460

    Then below 2 issues found after applying above patches changes 

    | checking whether the preprocessor (aarch64-oe-linux-gcc -E --sysroot=/home/test/project/ototrak/Yocto_Workspace/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/libxcrypt/4.4.30-r0/recipe-sysroot ) supports -dD... yes
    | checking whether we are compiling with ASan... no
    | checking whether sys/cdefs.h defines __BEGIN_DECLS and __END_DECLS... yes
    | checking whether sys/cdefs.h defines __THROW... yes
    | checking how to control data alignment... _Alignas
    | checking how to query data alignment... _Alignof
    | checking for max_align_t in stddef.h... yes
    | checking for byte order macros... BYTE_ORDER and xxx_ENDIAN
    | checking for static_assert in assert.h... yes
    | checking for ld --wrap... yes
    | checking linker version script flag... --version-script
    | checking if version scripts can use complex wildcards... yes
    | checking for __attribute__((symver))... yes
    | checking how to make linking fail when undefined symbols remain... -Wl,-z,defs
    | checking how to make linking fail when there are text relocations... -Wl,-z,text
    | checking how to link with read-only relocations... -Wl,-z,relro
    | checking how to link with immediate binding... -Wl,-z,now
    | checking whether C compiler accepts -fno-plt... yes
    | checking for arc4random_buf... no
    | checking for explicit_bzero... yes
    | checking for explicit_memset... no
    | checking for getentropy... yes
    | checking for getrandom... yes
    | checking for memset_s... no
    | checking for open64... yes
    | checking for syscall... yes
    | checking for valgrind... no
    | checking for Python 3.>=6 with Passlib... not found
    | configure: Disabling the "regen-ka-table" target, missing Python requirements.
    | checking whether all ucontext.h functions are available... yes
    | when is deprecated at /home/test/project/ototrak/Yocto_Workspace/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/libxcrypt/4.4.30-r0/git/build-aux/scripts/BuildCommon.pm line 522.
    | Compilation failed in require at ../git/build-aux/scripts/expand-selected-hashes line 28.
    | BEGIN failed--compilation aborted at ../git/build-aux/scripts/expand-selected-hashes line 28.
    | configure: error: bad value 'all' for --enable-hashes
    | NOTE: The following config.log files may provide further information.
    | NOTE: /home/test/project/ototrak/Yocto_Workspace/tisdk/build/arago-tmp-default-glibc/work/aarch64-oe-linux/libxcrypt/4.4.30-r0/build/config.log
    | ERROR: configure failed
    | WARNING: exit code 1 from a shell command.
    ERROR: Task (/home/test/project/ototrak/Yocto_Workspace/tisdk/sources/oe-core/meta/recipes-core/libxcrypt/libxcrypt_4.4.30.bb:do_configure) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 5910 tasks of which 5908 didn't need to be rerun and 2 failed.
    NOTE: Writing buildhistory
    NOTE: Writing buildhistory took: 3 seconds
    NOTE: Writing buildhistory
    NOTE: Writing buildhistory took: 2 seconds
    
    Summary: 2 tasks failed:
      virtual:native:/home/test/project/ototrak/Yocto_Workspace/tisdk/sources/oe-core/meta/recipes-devtools/rust/rust-llvm_1.59.0.bb:do_compile
      /home/test/project/ototrak/Yocto_Workspace/tisdk/sources/oe-core/meta/recipes-core/libxcrypt/libxcrypt_4.4.30.bb:do_configure
    Summary: There was 1 WARNING message.
    Summary: There were 3 ERROR messages, returning a non-zero exit code.
    test@test-ThinkCentre-neo-50t-Gen-3:~/project/ototrak/Yocto_Workspace/tisdk/build$ 
    

    TThanks, Naresh

  • Hi Anddreas , 

    I installed docker , started compilation , but stil permsiion issues getting .

    i checked Docker is 22.04 ubuntu version only even though permission issues getting ,

    KIndly help me here 

    Thanks,

    Naresh

  • I would not recommend applying any external patches; we should be able to re-create a known-good build using the SDK setup instructions as-is.

    I installed docker , started compilation , but stil permsiion issues getting

    It is interesting that this doesn't fix the issue, thanks for reporting. I'll let the development team know, because our Docker-based solution is supposed to solve many/most build environment related issues.

    Can you try one of two things:

    1. Setup Ubuntu 22.04 in a virtual machine, and use that to build. This should completely eliminate any such permission related host dependencies, or

    2. Setup Ubuntu 22.04 on a dedicated machine,

    Regards, Andreas

  • Working on AM62X , 09_00_00_03 build . using ubuntu 24 version host.

    Also can you please move to the latest SDK for AM62x, at the moment it is this here:

    https://www.ti.com/tool/download/PROCESSOR-SDK-LINUX-AM62X/09.02.01.10

    Regards, Andreas

  • Hi Andreas,

    We compiled the Yocto  (AM62X SDK VERSION : 09.00.00.03 )  on ubuntu -20 version . working fine .

    Thanks ,

    Naresh

  • Hi Naresh,

    thanks for the update. I assume you used a dedicated machine with Ubuntu 20.04? Or did you use that inside a VM, running on a Ubuntu 24.04 host?

    Please note that the recommended host OS for SDK v9.x is still Ubuntu 22.04, not Ubuntu 20.04. Glad you got it to build but there's a chance you run into some other issue down the road if you use something other than Ubuntu 22.04 for SDK v9.x builds.

    Regards, Andreas

  • Hi andreas,

    VM

    Correct, i used dedicated 20.04 ubuntu machine.

    I didnt used VM machine. I uninstalled ubuntu 24.04 and installed the ubuntu20.04 and started the compilation. It works for me without any issue.

    the

    Sure, definitey i will update to ubuntu 22.04.

    Thanks andreas for your help.

    Best regards, Naresh