base-files error when build the yocto linux

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

base-files error when build the yocto linux

55 Views
Tuna38
Fresh Out Contributor

Build the yocto error. When i build and follow to guide of nxp by yocto. How to fix the error?

 

WARNING: Logfile for failed setscene task is /home/vmc/Desktop/imx-yocto-bsp/build-wayland/tmp/work/armv8a-poky-linux/ptest-runner/2.4.5+git/temp/log.do_package_setscene.1680451
WARNING: Setscene task (/home/vmc/Desktop/imx-yocto-bsp/sources/poky/meta/recipes-support/ptest-runner/ptest-runner_2.4.5.bb:do_package_setscene) failed with exit code '1' - real task will be run instead
ERROR: base-files-3.0.14-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/vmc/Desktop/imx-yocto-bsp/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/vmc/Desktop/imx-yocto-bsp/build-wayland/tmp/work/imx8mqevk-poky-linux/base-files/3.0.14/image -p -S . | tar -xf - -C /home/vmc/Desktop/imx-yocto-bsp/build-wayland/tmp/work/imx8mqevk-poky-linux/base-files/3.0.14/package' returned non-zero exit status 2.

Subprocess output:
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path bin
couldn't allocate absolute path for 'bin'.
tar: ./usr/bin: 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'.
tar: ./usr/lib: Cannot mkdir: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path games
couldn't allocate absolute path for 'games'.
tar: ./usr/games: Cannot mkdir: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path share
couldn't allocate absolute path for 'share'.
tar: ./usr/share: Cannot mkdir: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path share
couldn't allocate absolute path for 'share'.
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path share
couldn't allocate absolute path for 'share'.
tar: ./usr/share: Cannot mkdir: Bad address
tar: ./usr/share/dict: Cannot mkdir: No such file or directory
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path share
couldn't allocate absolute path for 'share'.
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path share
couldn't allocate absolute path for 'share'.
tar: ./usr/share: Cannot mkdir: Bad address
tar: ./usr/share/man: Cannot mkdir: No such file or directory
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path share
couldn't allocate absolute path for 'share'.
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path share
couldn't allocate absolute path for 'share'.
tar: ./usr/share: Cannot mkdir: Bad address
tar: ./usr/share/doc: Cannot mkdir: No such file or directory
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path share
couldn't allocate absolute path for 'share'.
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path share
couldn't allocate absolute path for 'share'.
tar: ./usr/share: Cannot mkdir: Bad address
tar: ./usr/share/doc/base-files-3.0.14: Cannot mkdir: No such file or directory
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path share
couldn't allocate absolute path for 'share'.
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path share
couldn't allocate absolute path for 'share'.
tar: ./usr/share: Cannot mkdir: Bad address
tar: ./usr/share/misc: Cannot mkdir: No such file or directory
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path share
couldn't allocate absolute path for 'share'.
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path share
couldn't allocate absolute path for 'share'.
tar: ./usr/share: Cannot mkdir: Bad address
tar: ./usr/share/common-licenses: Cannot mkdir: No such file or directory
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path share
couldn't allocate absolute path for 'share'.
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path share
couldn't allocate absolute path for 'share'.
tar: ./usr/share: Cannot mkdir: Bad address
tar: ./usr/share/info: Cannot mkdir: No such file or directory
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path sbin
couldn't allocate absolute path for 'sbin'.
tar: ./usr/sbin: Cannot mkdir: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path src
couldn't allocate absolute path for 'src'.
tar: ./usr/src: 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'.
tar: ./usr/include: Cannot mkdir: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path tmp
couldn't allocate absolute path for 'tmp'.
tar: ./var/tmp: Cannot create symlink to ‘volatile/tmp’: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path local
couldn't allocate absolute path for 'local'.
tar: ./var/local: 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'.
tar: ./var/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: ./var/lib: Cannot mkdir: Bad address
tar: ./var/lib/misc: Cannot mkdir: No such file or directory
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path volatile
couldn't allocate absolute path for 'volatile'.
tar: ./var/volatile: Cannot mkdir: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path volatile
couldn't allocate absolute path for 'volatile'.
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path volatile
couldn't allocate absolute path for 'volatile'.
tar: ./var/volatile: Cannot mkdir: Bad address
tar: ./var/volatile/tmp: Cannot mkdir: No such file or directory
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path volatile
couldn't allocate absolute path for 'volatile'.
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path volatile
couldn't allocate absolute path for 'volatile'.
tar: ./var/volatile: Cannot mkdir: Bad address
tar: ./var/volatile/log: Cannot mkdir: No such file or directory
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path log
couldn't allocate absolute path for 'log'.
tar: ./var/log: Cannot create symlink to ‘volatile/log’: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path lock
couldn't allocate absolute path for 'lock'.
tar: ./var/lock: Cannot open: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path spool
couldn't allocate absolute path for 'spool'.
tar: ./var/spool: Cannot mkdir: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path backups
couldn't allocate absolute path for 'backups'.
tar: ./var/backups: Cannot mkdir: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path run
couldn't allocate absolute path for 'run'.
tar: ./var/run: Cannot open: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path nsswitch.conf
couldn't allocate absolute path for 'nsswitch.conf'.
tar: ./etc/nsswitch.conf: Cannot open: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path hosts
couldn't allocate absolute path for 'hosts'.
tar: ./etc/hosts: Cannot open: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path issue.net
couldn't allocate absolute path for 'issue.net'.
tar: ./etc/issue.net: Cannot open: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path profile
couldn't allocate absolute path for 'profile'.
tar: ./etc/profile: Cannot open: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path default
couldn't allocate absolute path for 'default'.
tar: ./etc/default: Cannot mkdir: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path issue
couldn't allocate absolute path for 'issue'.
tar: ./etc/issue: Cannot open: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path skel
couldn't allocate absolute path for 'skel'.
tar: ./etc/skel: Cannot mkdir: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path skel
couldn't allocate absolute path for 'skel'.
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path skel
couldn't allocate absolute path for 'skel'.
tar: ./etc/skel: Cannot mkdir: Bad address
tar: ./etc/skel/.profile: Cannot open: No such file or directory
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path skel
couldn't allocate absolute path for 'skel'.
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path skel
couldn't allocate absolute path for 'skel'.
tar: ./etc/skel: Cannot mkdir: Bad address
tar: ./etc/skel/.bashrc: Cannot open: No such file or directory
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path mtab
couldn't allocate absolute path for 'mtab'.
tar: ./etc/mtab: Cannot open: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path hostname
couldn't allocate absolute path for 'hostname'.
tar: ./etc/hostname: Cannot open: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path fstab
couldn't allocate absolute path for 'fstab'.
tar: ./etc/fstab: Cannot open: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path shells
couldn't allocate absolute path for 'shells'.
tar: ./etc/shells: Cannot open: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path host.conf
couldn't allocate absolute path for 'host.conf'.
tar: ./etc/host.conf: Cannot open: Bad address
got *at() syscall for unknown directory, fd 4
unknown base path for fd 4, path motd
couldn't allocate absolute path for 'motd'.
tar: ./etc/motd: Cannot open: Bad address
tar: Exiting with failure status due to previous errors

ERROR: Logfile of failure stored in: /home/vmc/Desktop/imx-yocto-bsp/build-wayland/tmp/work/imx8mqevk-poky-linux/base-files/3.0.14/temp/log.do_package.1734591
ERROR: Task (/home/vmc/Desktop/imx-yocto-bsp/sources/poky/meta/recipes-core/base-files/base-files_3.0.14.bb:do_package) failed with exit code '1'

0 Kudos
Reply
2 Replies

39 Views
yipingwang
NXP TechSupport
NXP TechSupport

On your ubuntu PC, run the command "sudo apt install tar=1.34+dfsg-1build3"

0 Kudos
Reply

35 Views
Tuna38
Fresh Out Contributor
Thanks u. It actived
0 Kudos
Reply