Compilation failure occurs with BSP46 paired with linux-libc-headers 6.6.

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

Compilation failure occurs with BSP46 paired with linux-libc-headers 6.6.

Jump to solution
1,738 Views
zhijie
Contributor II

Compilation failure occurs with BSP46 paired with linux-libc-headers 6.6.
The compilation logs are attached below. Please advise on how to resolve this issue.

DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['/home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/sources/poky/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/sources/poky/meta/recipes-devtools/bison/bison_3.8.2.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/sources/poky/meta/recipes-devtools/dwarfsrcfiles/dwarfsrcfiles.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/sources/poky/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/sources/poky/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/sources/poky/meta/recipes-devtools/rpm/rpm_4.19.1.1.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/sources/poky/meta/recipes-devtools/rsync/rsync_3.2.7.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/sources/poky/meta/recipes-devtools/unifdef/unifdef_2.12.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/sources/poky/meta/recipes-extended/xz/xz_5.4.7.bb:do_populate_sysroot']
NOTE: Installed into sysroot: ['cmake-native', 'openssl-native', 'expat-native', 'ncurses-native', 'readline-native', 'util-linux-libuuid-native', 'dwarfsrcfiles-native', 'elfutils-native', 'file-native', 'libedit-native', 'lua-native', 'make-native', 'perl-native', 'python3-native', 'rpm-native', 'bzip2-native', 'libarchive-native', 'libidn2-native', 'libnsl2-native', 'libtirpc-native', 'lzlib-native', 'zstd-native', 'curl-native', 'gdbm-native', 'gmp-native', 'gnutls-native', 'libtasn1-native', 'libcap-native', 'libffi-native', 'libgcrypt-native', 'libgpg-error-native', 'libmicrohttpd-native', 'libunistring-native', 'nettle-native']
NOTE: Skipping as already exists in sysroot: ['gettext-minimal-native', 'libtool-native', 'm4-native', 'quilt-native', 'texinfo-dummy-native', 'zlib-native', 'bison-native', 'flex-native', 'gnu-config-native', 'patch-native', 'pkgconfig-native', 'pseudo-native', 'rsync-native', 'unifdef-native', 'xz-native', 'acl-native', 'attr-native', 'popt-native', 'sqlite3-native']
DEBUG: sed -e 's:^[^/]*/:/home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/build_s32g399avmcu2.1asc/tmp/work/cortexa53-crypto-fsl-linux/linux-libc-headers/6.6/recipe-sysroot-native/:g' /home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/build_s32g399avmcu2.1asc/tmp/sysroots-components/x86_64/openssl-native/fixmepath /home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/build_s32g399avmcu2.1asc/tmp/sysroots-components/x86_64/ncurses-native/fixmepath /home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/build_s32g399avmcu2.1asc/tmp/sysroots-components/x86_64/elfutils-native/fixmepath /home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/build_s32g399avmcu2.1asc/tmp/sysroots-components/x86_64/lua-native/fixmepath /home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/build_s32g399avmcu2.1asc/tmp/sysroots-components/x86_64/perl-native/fixmepath /home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/build_s32g399avmcu2.1asc/tmp/sysroots-components/x86_64/python3-native/fixmepath /home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/build_s32g399avmcu2.1asc/tmp/sysroots-components/x86_64/rpm-native/fixmepath /home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/build_s32g399avmcu2.1asc/tmp/sysroots-components/x86_64/curl-native/fixmepath /home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/build_s32g399avmcu2.1asc/tmp/sysroots-components/x86_64/gmp-native/fixmepath /home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/build_s32g399avmcu2.1asc/tmp/sysroots-components/x86_64/libgcrypt-native/fixmepath /home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/build_s32g399avmcu2.1asc/tmp/sysroots-components/x86_64/libgpg-error-native/fixmepath | xargs sed -i -e 's:FIXMESTAGINGDIRTARGET:/home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/build_s32g399avmcu2.1asc/tmp/work/cortexa53-crypto-fsl-linux/linux-libc-headers/6.6/recipe-sysroot:g; s:FIXMESTAGINGDIRHOST:/home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/build_s32g399avmcu2.1asc/tmp/work/cortexa53-crypto-fsl-linux/linux-libc-headers/6.6/recipe-sysroot-native:g' -e 's:FIXME_PSEUDO_SYSROOT:/home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/build_s32g399avmcu2.1asc/tmp/sysroots-components/x86_64/pseudo-native:g' -e 's:FIXME_HOSTTOOLS_DIR:/home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/build_s32g399avmcu2.1asc/tmp/hosttools:g' -e 's:FIXME_PKGDATA_DIR:/home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/build_s32g399avmcu2.1asc/tmp/pkgdata/s32g399avmcu2.1asc:g' -e 's:FIXME_PSEUDO_LOCALSTATEDIR:/home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/build_s32g399avmcu2.1asc/tmp/work/cortexa53-crypto-fsl-linux/linux-libc-headers/6.6/pseudo/:g' -e 's:FIXME_LOGFIFO:/home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/build_s32g399avmcu2.1asc/tmp/work/cortexa53-crypto-fsl-linux/linux-libc-headers/6.6/temp/fifo.4087696:g'
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing python function sstate_task_prefunc
DEBUG: Python function sstate_task_prefunc finished
DEBUG: Executing python function do_package
DEBUG: Executing python function package_setup_pkgv
DEBUG: Python function package_setup_pkgv finished
DEBUG: Executing python function package_convert_pr_autoinc
DEBUG: Python function package_convert_pr_autoinc finished
DEBUG: Executing python function package_prepare_pkgdata
NOTE: Installed into pkgdata-sysroot: []
DEBUG: Python function package_prepare_pkgdata finished
DEBUG: Executing python function perform_packagecopy
ERROR: Error executing a python function in exec_func_python() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:perform_packagecopy(d)
0003:
File: '/home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/sources/poky/meta/classes-global/package.bbclass', lineno: 363, function: perform_packagecopy
0359: rpath_replace (dvar, d)
0360:}
0361:perform_packagecopy[cleandirs] = "${PKGD}"
0362:perform_packagecopy[dirs] = "${PKGD}"
*** 0363:
0364:python populate_packages () {
0365: oe.package.populate_packages(d)
0366:}
0367:populate_packages[dirs] = "${D}"
File: '/usr/lib/python3.10/subprocess.py', lineno: 421, function: check_output
0417: else:
0418: empty = b''
0419: kwargs['input'] = empty
0420:
*** 0421: return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
0422: **kwargs).stdout
0423:
0424:
0425:class CompletedProcess(object):
File: '/usr/lib/python3.10/subprocess.py', lineno: 526, function: run
0522: # We don't call process.wait() as .__exit__ does that for us.
0523: raise
0524: retcode = process.poll()
0525: if check and retcode:
*** 0526: raise CalledProcessError(retcode, process.args,
0527: output=stdout, stderr=stderr)
0528: return CompletedProcess(process.args, retcode, stdout, stderr)
0529:
0530:
Exception: subprocess.CalledProcessError: Command 'tar --exclude=./sysroot-only -cf - -C /home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/build_s32g399avmcu2.1asc/tmp/work/cortexa53-crypto-fsl-linux/linux-libc-headers/6.6/image -p -S . | tar -xf - -C /home/ubuntu/develop_bsp46/sw-prj-SDV_HPC_Linux_s32g399a/build_s32g399avmcu2.1asc/tmp/work/cortexa53-crypto-fsl-linux/linux-libc-headers/6.6/package' returned non-zero exit status 2.

Subprocess output:
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path include
couldn't allocate absolute path for 'include'.
tar: ./usr/include: Cannot mkdir: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path include
couldn't allocate absolute path for 'include'.
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path include
couldn't allocate absolute path for 'include'.
tar: ./usr/include: Cannot mkdir: Bad address
tar: ./usr/include/misc: Cannot mkdir: No such file or directory
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path include
couldn't allocate absolute path for 'include'.
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path include
couldn't allocate absolute path for 'include'.
tar: ./usr/include: Cannot mkdir: Bad address
tar: ./usr/include/misc/ocxl.h: Cannot open: No such file or directory
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path include
couldn't allocate absolute path for 'include'.
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path include
couldn't allocate absolute path for 'include'.
tar: ./usr/include: Cannot mkdir: Bad address
tar: ./usr/include/misc/pvpanic.h: Cannot open: No such file or directory
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path include
couldn't allocate absolute path for 'include'.
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path include
couldn't allocate absolute path for 'include'.
tar: ./usr/include: Cannot mkdir: Bad address
tar: ./usr/include/misc/xilinx_sdfec.h: Cannot open: No such file or directory
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path include
couldn't allocate absolute path for 'include'.
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path include
couldn't allocate absolute path for 'include'.
tar: ./usr/include: Cannot mkdir: Bad address
tar: ./usr/include/misc/cxl.h: Cannot open: No such file or directory
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path include
couldn't allocate absolute path for 'include'.
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path include
couldn't allocate absolute path for 'include'.
tar: ./usr/include: Cannot mkdir: Bad address
tar: ./usr/include/misc/fastrpc.h: Cannot open: No such file or directory
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path include
couldn't allocate absolute path for 'include'.
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path include
couldn't allocate absolute path for 'include'.
tar: ./usr/include: Cannot mkdir: Bad address
tar: ./usr/include/misc/uacce: Cannot mkdir: No such file or directory
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path include
couldn't allocate absolute path for 'include'.
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path include
couldn't allocate absolute path for 'include'.
tar: ./usr/include: Cannot mkdir: Bad address
tar: ./usr/include/misc/uacce/uacce.h: Cannot open: No such file or directory
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path include
couldn't allocate absolute path for 'include'.

Tags (1)
0 Kudos
Reply
1 Solution
1,565 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @zhijie 

Thanks for your reply

By checking the logs of the building failure, it seems related with the program changes of the building machine.
Would you mind trying the following way? On your ubuntu PC, use the command "sudo apt install tar=1.34+dfsg-1build3" to make a change of tar version used, the clean the BSP and rebuild it again

 
BR
Chenyin

 

View solution in original post

0 Kudos
Reply
17 Replies
1,670 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @zhijie 

Thanks for your post.

May I know the details of your building environment?

It is the first time you built the BSP46? or previously it is correct?

 

BR

Chenyin

0 Kudos
Reply
1,665 Views
zhijie
Contributor II

ubuntu@ip-10-52-88-17:~/bsp41-ruyi/sw-prj-SDV_HPC_Linux_s32g399a$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Codename: jammy

 

It is the first time you built the BSP46? or previously it is correct?
A:previously it is correct

 

0 Kudos
Reply
1,662 Views
chenyin_h
NXP Employee
NXP Employee

Thanks, @zhijie 

Could you also help to share the result of uname -a?

 

BR

Chenyin

0 Kudos
Reply
1,657 Views
zhijie
Contributor II

ubuntu@ip-10-52-88-17:~/bsp41-ruyi/sw-prj-SDV_HPC_Linux_s32g399a$ uname -a
Linux ip-10-52-88-17 6.8.0-1053-aws #56~22.04.1-Ubuntu SMP Tue Apr 21 06:13:23 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux

0 Kudos
Reply
1,648 Views
chenyin_h
NXP Employee
NXP Employee

Hi, @zhijie 

Thanks for your reply.

I have reproduced the issue, it does not related with current BSP, but from the building system changes

I am looking into it and will reply you later once any progress made?

 

BR

Chenyin

 

0 Kudos
Reply
1,572 Views
zhijie
Contributor II

Hello chenyin:

 

    Is there any update on this build failure issue?

    Wait for good news, much appreciated.


BR

Zhijie

0 Kudos
Reply
1,566 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @zhijie 

Thanks for your reply

By checking the logs of the building failure, it seems related with the program changes of the building machine.
Would you mind trying the following way? On your ubuntu PC, use the command "sudo apt install tar=1.34+dfsg-1build3" to make a change of tar version used, the clean the BSP and rebuild it again

 
BR
Chenyin

 

0 Kudos
Reply
1,034 Views
pvsnsubhash
Contributor II

I was having the same issue and I've figured out the issue is with the tar version build 4 and the downgrading did resolve the error, but the actual issue is the tar and pseudo using openat2() instead of openat for the system call.

The poky has already given the patch as far as I've seen, does the NXP has any update on it?

I'm currently using LLDP 6.1.22 SDK on the LX2160ARDB_REV2 Board and the same error appears when i try to build rcw using bitbake. 

If NXP has upated the pseudo_git.bb to use openat2() instead of openat() as per tar's latest build 4., it will be useful for us as we can update tar to the latest version.

Attached the logs for your reference.

The bug from yocto-project link is added here 
https://bugzilla.yoctoproject.org/show_bug.cgi?id=16117

 

Regards,

PVSN Subhash

Regards
PVSN Subhash
0 Kudos
Reply
955 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @pvsnsubhash 

Thanks for your reply, after my workaround fix for the issue, I had also noticed the pseudo issue and then reported it to our internal team.

The corresponding team would review the issue and arrange the schedule for the formal fix.

Thanks again for your valuable inputs.

 

BR

Chenyin

0 Kudos
Reply
588 Views
Sanjiv_Mns
Contributor III

Hi @chenyin_h 

Have you found anything that could help resolve it?

This issue is currently blocking our progress, We would really appreciate any update or guidance you can provide.

Tags (1)
0 Kudos
Reply
578 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Sanjiv_Mns 

Thanks for your reply.

May I know if you met the same issue? would you mind creating a new post with your details logs, we would directly support it ASAP.

 

BR

Chenyin

0 Kudos
Reply
546 Views
Sanjiv_Mns
Contributor III

Hi @chenyin_h  
I am still facing the same issue. I have already raised a query on the forum, but I haven't received any response yet.Link

I am attaching the log below for your reference.

Tags (1)
0 Kudos
Reply
511 Views
pvsnsubhash
Contributor II

The issue is because of the tar package in linux getting upgraded to build4 from build3. Downgrade the tar package using the below steps and hold the apt upgrade for that package for now and proceed with your compilation.

 

wget http://archive.ubuntu.com/ubuntu/pool/main/t/tar/tar_1.34+dfsg-1build3_amd64.deb

sudo dpkg -i tar_1.34+dfsg-1build3_amd64.deb 

sudo apt-mark hold tar

 

After the above steps, you can proceed with your compilation and no such errors will be seen.

 

Regards
PVSN Subhash
0 Kudos
Reply
544 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Sanjiv_Mns 

Thanks for your reply.

1. OK, I understand you are currently using i.MX instead of S32G products

2. You may have a try with the following method: 

"sudo apt install tar=1.34+dfsg-1build3" and then clean/rebuild with your Yocto setup

3. If still issues, I suggest waiting for the feedback from your original link, I believe my colleague would help you to solve it based on you i.MX setup

 

BR

Chenyin

 

0 Kudos
Reply
1,540 Views
zhijie
Contributor II

Hello Chenyin

 

    The problem is resolved, Thanks!

 

 

BR
Zhijie
0 Kudos
Reply
1,645 Views
zhijie
Contributor II

Okay, thank you very much.

 

0 Kudos
Reply
1,707 Views
Sanjiv_Mns
Contributor III

Hi  @zhijie 
I am also facing the same issue, if you ressolved it kindly let us know.

ERROR: zlib-1.3.1-r0 do_package: Error executing a python function in exec_func_python() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:perform_packagecopy(d)
0003:
File: '/home/smurugan8/LWT/sources/poky/meta/classes-global/package.bbclass', lineno: 363, function: perform_packagecopy
0359: rpath_replace (dvar, d)
0360:}
0361:perform_packagecopy[cleandirs] = "${PKGD}"
0362:perform_packagecopy[dirs] = "${PKGD}"
*** 0363:
0364:python populate_packages () {
0365: oe.package.populate_packages(d)
0366:}
0367:populate_packages[dirs] = "${D}"
File: '/usr/lib/python3.12/subprocess.py', lineno: 466, function: check_output
0462: else:
0463: empty = b''
0464: kwargs['input'] = empty
0465:
*** 0466: return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
0467: **kwargs).stdout
0468:
0469:
0470:class CompletedProcess(object):
File: '/usr/lib/python3.12/subprocess.py', lineno: 571, function: run
0567: # We don't call process.wait() as .__exit__ does that for us.
0568: raise
0569: retcode = process.poll()
0570: if check and retcode:
*** 0571: raise CalledProcessError(retcode, process.args,
0572: output=stdout, stderr=stderr)
0573: return CompletedProcess(process.args, retcode, stdout, stderr)
0574:
0575:
Exception: subprocess.CalledProcessError: Command 'tar --exclude=./sysroot-only -cf - -C /home/smurugan8/LWT/build/tmp/work/armv8a-poky-linux/zlib/1.3.1/image -p -S . | tar -xf - -C /home/smurugan8/LWT/build/tmp/work/armv8a-poky-linux/zlib/1.3.1/package' returned non-zero exit status 2.

Subprocess output:
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path lib
couldn't allocate absolute path for 'lib'.
tar: ./usr/lib: Cannot mkdir: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path lib
couldn't allocate absolute path for 'lib'.
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path lib
couldn't allocate absolute path for 'lib'.
tar: ./usr/lib: Cannot mkdir: Bad address
tar: ./usr/lib/libz.so.1: Cannot create symlink to ‘libz.so.1.3.1’: No such file or directory