S32G399ARDB3-Yocto/Bitbake error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32G399ARDB3-Yocto/Bitbake error

Jump to solution
12,441 Views
MohamedAbdelslam
Contributor III

Hardware:S32G399ARDB3

Bsp version:bsp41.0

Reference documentation:S32G3_LinuxBSP_41.0_User_Manual.pdf
Ubuntu version: Ubuntu 24.04.1 LTS 
I followed up the steps mentioned in the user manual but after i executed the command to build the image: bitbake fsl-image-auto 
i got this error: 

WARNING: Your host glibc version (2.39) is newer than that in uninative (2.38). Disabling uninative so that sstate is not corrupted.
Initialising tasks: 100% |#######################################| Time: 0:00:10
Sstate summary: Wanted 1938 Local 0 Mirrors 0 Missed 1938 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/mohamedabdelslam/Abdelslam/IPC_BSP3/fsl-auto-yocto-bsp/sources/poky/bitbake/bin/bitbake-worker", line 268, in child
bb.utils.disable_network(uid, gid)
File "/home/mohamedabdelslam/Abdelslam/IPC_BSP3/fsl-auto-yocto-bsp/sources/poky/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
How could i troubleshoot the problem 

Tags (1)
0 Kudos
Reply
1 Solution
12,420 Views
GuilhermeS32G
Contributor IV

Hello @MohamedAbdelslam ,

 

I have faced similar issues when building on Ubuntu 24.04.

The issue is that in this Ubuntu release the AppArmor is enabled by default, as described here .

What works for me is running the following command:

sudo apparmor_parser -R /etc/apparmor.d/unprivileged_userns

and then running bitbake.

As @alejandro_e pointed, using Ubuntu 22.04 is a more convenient solution.

 

Best regards,

Guilherme

View solution in original post

2 Replies
12,424 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @MohamedAbdelslam,

Thanks for the detailed description of your problem. Given that you are getting errors related to your glibc version, the first thing I recommend is to use an older version of ubuntu, preferably Ubuntu-20.04 LTS, since that is the recommended version in the BSP41 manual [page 9, Linux BSP 41.0 User Manual for S32G3 platforms]:

alejandro_e_0-1729724620981.png

 

I can also recommend using Ubuntu 22.04 LTS, it is what I'm using for yocto without problems.

user@machine:~/RDB2/bsp-41/build_s32g274ardb2$ uname -srm ; lsb_release -a
Linux 5.15.0-84-generic x86_64
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy 

 

Let me know if using one of these versions solves your problem.

0 Kudos
Reply
12,421 Views
GuilhermeS32G
Contributor IV

Hello @MohamedAbdelslam ,

 

I have faced similar issues when building on Ubuntu 24.04.

The issue is that in this Ubuntu release the AppArmor is enabled by default, as described here .

What works for me is running the following command:

sudo apparmor_parser -R /etc/apparmor.d/unprivileged_userns

and then running bitbake.

As @alejandro_e pointed, using Ubuntu 22.04 is a more convenient solution.

 

Best regards,

Guilherme

%3CLINGO-SUB%20id%3D%22lingo-sub-1980432%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32G399ARDB3-Yocto%2FBitbake%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1980432%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHardware%EF%BC%9AS32G399ARDB3%3C%2FP%3E%3CP%3EBsp%20version%EF%BC%9Absp41.0%3C%2FP%3E%3CP%3EReference%20documentation%EF%BC%9AS32G3_LinuxBSP_41.0_User_Manual.pdf%3CBR%20%2F%3EUbuntu%20version%3A%26nbsp%3BUbuntu%2024.04.1%20LTS%26nbsp%3B%3CBR%20%2F%3EI%20followed%20up%20the%20steps%20mentioned%20in%20the%20user%20manual%20but%20after%20i%20executed%20the%20command%20to%20build%20the%20image%3A%20bitbake%20fsl-image-auto%26nbsp%3B%3CBR%20%2F%3Ei%20got%20this%20error%3A%26nbsp%3B%3C%2FP%3E%3CP%3EWARNING%3A%20Your%20host%20glibc%20version%20(2.39)%20is%20newer%20than%20that%20in%20uninative%20(2.38).%20Disabling%20uninative%20so%20that%20sstate%20is%20not%20corrupted.%3CBR%20%2F%3EInitialising%20tasks%3A%20100%25%20%7C%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%7C%20Time%3A%200%3A00%3A10%3CBR%20%2F%3ESstate%20summary%3A%20Wanted%201938%20Local%200%20Mirrors%200%20Missed%201938%20Current%200%20(0%25%20match%2C%200%25%20complete)%3CBR%20%2F%3ENOTE%3A%20Executing%20Tasks%3CBR%20%2F%3EERROR%3A%20PermissionError%3A%20%5BErrno%201%5D%20Operation%20not%20permitted%3C%2FP%3E%3CP%3EDuring%20handling%20of%20the%20above%20exception%2C%20another%20exception%20occurred%3A%3C%2FP%3E%3CP%3ETraceback%20(most%20recent%20call%20last)%3A%3CBR%20%2F%3EFile%20%22%2Fhome%2Fmohamedabdelslam%2FAbdelslam%2FIPC_BSP3%2Ffsl-auto-yocto-bsp%2Fsources%2Fpoky%2Fbitbake%2Fbin%2Fbitbake-worker%22%2C%20line%20268%2C%20in%20child%3CBR%20%2F%3Ebb.utils.disable_network(uid%2C%20gid)%3CBR%20%2F%3EFile%20%22%2Fhome%2Fmohamedabdelslam%2FAbdelslam%2FIPC_BSP3%2Ffsl-auto-yocto-bsp%2Fsources%2Fpoky%2Fbitbake%2Flib%2Fbb%2Futils.py%22%2C%20line%201653%2C%20in%20disable_network%3CBR%20%2F%3Ewith%20open(%22%2Fproc%2Fself%2Fuid_map%22%2C%20%22w%22)%20as%20f%3A%3CBR%20%2F%3EPermissionError%3A%20%5BErrno%201%5D%20Operation%20not%20permitted%3CBR%20%2F%3EHow%20could%20i%20troubleshoot%20the%20problem%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1980570%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32G399ARDB3-Yocto%2FBitbake%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1980570%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F240662%22%20target%3D%22_blank%22%3E%40MohamedAbdelslam%3C%2FA%3E%20%2C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI%20have%20faced%20similar%20issues%20when%20building%20on%20Ubuntu%2024.04.%3C%2FP%3E%3CP%3EThe%20issue%20is%20that%20in%20this%20Ubuntu%20release%20the%20AppArmor%20is%20enabled%20by%20default%2C%20as%20described%20%3CA%20href%3D%22https%3A%2F%2Flists.openembedded.org%2Fg%2Fbitbake-devel%2Ftopic%2Fpatch_bitbake_worker%2F107099079%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E%20.%3C%2FP%3E%3CP%3EWhat%20works%20for%20me%20is%20running%20the%20following%20command%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Esudo%20apparmor_parser%20-R%20%2Fetc%2Fapparmor.d%2Funprivileged_userns%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3Eand%20then%20running%20bitbake.%3C%2FP%3E%3CP%3EAs%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F238460%22%20target%3D%22_blank%22%3E%40alejandro_e%3C%2FA%3E%20pointed%2C%20using%20Ubuntu%2022.04%20is%20a%20more%20convenient%20solution.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3EGuilherme%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1980546%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32G399ARDB3-Yocto%2FBitbake%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1980546%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F240662%22%20target%3D%22_blank%22%3E%40MohamedAbdelslam%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EThanks%20for%20the%20detailed%20description%20of%20your%20problem.%20Given%20that%20you%20are%20getting%20errors%20related%20to%20your%20glibc%20version%2C%20the%20first%20thing%20I%20recommend%20is%20to%20use%20an%20older%20version%20of%20ubuntu%2C%20preferably%20%3CSTRONG%3EUbuntu-20.04%20LTS%3C%2FSTRONG%3E%2C%20since%20that%20is%20the%20recommended%20version%20in%20the%20BSP41%20manual%20%5Bpage%209%2C%20Linux%20BSP%2041.0%20User%20Manual%20for%20S32G3%20platforms%5D%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22alejandro_e_0-1729724620981.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22alejandro_e_0-1729724620981.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F306526iBBB8467948272264%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22alejandro_e_0-1729724620981.png%22%20alt%3D%22alejandro_e_0-1729724620981.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EI%20can%20also%20recommend%20using%26nbsp%3B%3CSTRONG%3EUbuntu%2022.04%20LTS%3C%2FSTRONG%3E%2C%20it%20is%20what%20I'm%20using%20for%20yocto%20without%20problems.%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Euser%40machine%3A~%2FRDB2%2Fbsp-41%2Fbuild_s32g274ardb2%24%20uname%20-srm%20%3B%20lsb_release%20-a%0ALinux%205.15.0-84-generic%20x86_64%0ANo%20LSB%20modules%20are%20available.%0ADistributor%20ID%3A%20Ubuntu%0ADescription%3A%20Ubuntu%2022.04.4%20LTS%0ARelease%3A%2022.04%0ACodename%3A%20jammy%20%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CBR%20%2F%3E%0A%3CP%3ELet%20me%20know%20if%20using%20one%20of%20these%20versions%20solves%20your%20problem.%3C%2FP%3E%3C%2FLINGO-BODY%3E