gstreamer1.0-plugins-imx issue

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

gstreamer1.0-plugins-imx issue

1,676 Views
veeranjaneyulug
Contributor III

Hi every one

we configure conf/local.conf  and conf/bblayer.conf we added the install package gstreamer1.0-plugins-imx.

we run bitbake gstreamer1.0-plugins-imx

error:

ERROR: Multiple .bb files are due to be built which each provide virtual/libg2d (/home/vishwa/workspace/imx/yocto/fsl-community-bsp/sources/meta-fsl-arm/recipes-graphics/gpu-viv-g2d/gpu-viv-g2d_3.10.17-1.0.2.bb /home/vishwa/workspace/imx/yocto/fsl-community-bsp/sources/meta-fsl-bsp-release/imx/meta-fsl-arm/recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p4.4-hfp.bb).

This usually means one provides something the other doesn't and should.

WARNING: /home/vishwa/workspace/imx/yocto/fsl-community-bsp/sources/meta-fsl-bsp-release/imx/meta-fsl-arm/recipes-kernel/linux/linux-imx_3.14.28.bb.do_compile is tainted from a forced run

NOTE: Executing SetScene Tasks

NOTE: Executing RunQueue Tasks

ERROR: The recipe gpu-viv-g2d is trying to install files into a shared area when those files already exist. Those files and their manifest location are:

   /home/vishwa/workspace/imx/yocto/fsl-community-bsp/build_1/tmp/sysroots/imx6qsabresd/sysroot-providers/virtual_libg2d

Matched in manifest-imx6qsabresd-imx-gpu-viv.populate_sysroot

/home/vishwa/workspace/imx/yocto/fsl-community-bsp/build_1/tmp/sysroots/imx6qsabresd/usr/include/g2d.h

Matched in manifest-imx6qsabresd-imx-gpu-viv.populate_sysroot

/home/vishwa/workspace/imx/yocto/fsl-community-bsp/build_1/tmp/sysroots/imx6qsabresd/usr/lib/libg2d.so

Matched in manifest-imx6qsabresd-imx-gpu-viv.populate_sysroot

/home/vishwa/workspace/imx/yocto/fsl-community-bsp/build_1/tmp/sysroots/imx6qsabresd/usr/lib/libg2d-viv.so

Matched in manifest-imx6qsabresd-imx-gpu-viv.populate_sysroot

Please verify which recipe should provide the above files.

The build has stopped as continuing in this scenario WILL break things, if not now, possibly in the future (we've seen builds fail several months later). If the system knew how to recover from this automatically it would however there are several different scenarios which can result in this and we don't know which one this is. It may be you have switched providers of something like virtual/kernel (e.g. from linux-yocto to linux-yocto-dev), in that case you need to execute the clean task for both recipes and it will resolve this error. It may be you changed DISTRO_FEATURES from systemd to udev or vice versa. Cleaning those recipes should again resolve this error however switching DISTRO_FEATURES on an existing build directory is not supported, you should really clean out tmp and rebuild (reusing sstate should be safe). It could be the overlapping files detected are harmless in which case adding them to SSTATE_DUPWHITELIST may be the correct solution. It could also be your build is including two different conflicting versions of things (e.g. bluez 4 and bluez 5 and the correct solution for that would be to resolve the conflict. If in doubt, please ask on the mailing list, sharing the error and filelist above.

ERROR: If the above message is too much, the simpler version is you're advised to wipe out tmp and rebuild (reusing sstate is fine). That will likely fix things in most (but not all) cases.

ERROR: Function failed: sstate_task_postfunc

ERROR: Logfile of failure stored in: /home/vishwa/workspace/imx/yocto/fsl-community-bsp/build_1/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gpu-viv-g2d/1_3.10.17-1.0.2-r0/temp/log.do_populate_sysroot.6163

ERROR: Task 102 (/home/vishwa/workspace/imx/yocto/fsl-community-bsp/sources/meta-fsl-arm/recipes-graphics/gpu-viv-g2d/gpu-viv-g2d_3.10.17-1.0.2.bb, do_populate_sysroot) failed with exit code '1'

ERROR: The recipe gpu-viv-g2d is trying to install files into a shared area when those files already exist. Those files and their manifest location are:

   /home/vishwa/workspace/imx/yocto/fsl-community-bsp/build_1/tmp/sysroots/imx6qsabresd/pkgdata/runtime-reverse/libg2d0.8

Matched in manifest-imx6qsabresd-imx-gpu-viv.packagedata

Please verify which recipe should provide the above files.

The build has stopped as continuing in this scenario WILL break things, if not now, possibly in the future (we've seen builds fail several months later). If the system knew how to recover from this automatically it would however there are several different scenarios which can result in this and we don't know which one this is. It may be you have switched providers of something like virtual/kernel (e.g. from linux-yocto to linux-yocto-dev), in that case you need to execute the clean task for both recipes and it will resolve this error. It may be you changed DISTRO_FEATURES from systemd to udev or vice versa. Cleaning those recipes should again resolve this error however switching DISTRO_FEATURES on an existing build directory is not supported, you should really clean out tmp and rebuild (reusing sstate should be safe). It could be the overlapping files detected are harmless in which case adding them to SSTATE_DUPWHITELIST may be the correct solution. It could also be your build is including two different conflicting versions of things (e.g. bluez 4 and bluez 5 and the correct solution for that would be to resolve the conflict. If in doubt, please ask on the mailing list, sharing the error and filelist above.

ERROR: If the above message is too much, the simpler version is you're advised to wipe out tmp and rebuild (reusing sstate is fine). That will likely fix things in most (but not all) cases.

ERROR: Function failed: sstate_task_postfunc

ERROR: Logfile of failure stored in: /home/vishwa/workspace/imx/yocto/fsl-community-bsp/build_1/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gpu-viv-g2d/1_3.10.17-1.0.2-r0/temp/log.do_packagedata.26744

ERROR: Task 106 (/home/vishwa/workspace/imx/yocto/fsl-community-bsp/sources/meta-fsl-arm/recipes-graphics/gpu-viv-g2d/gpu-viv-g2d_3.10.17-1.0.2.bb, do_packagedata) failed with exit code '1'

ERROR: Error executing a python function in /home/vishwa/workspace/imx/yocto/fsl-community-bsp/sources/meta-fsl-bsp-release/imx/meta-fsl-arm/recipes-kernel/linux/linux-imx_3.14.28.bb:

The stack trace of python calls that resulted in this exception/failure was:

File: 'sstate_task_postfunc', lineno: 14, function: <module>

     0010:    sstate_package(shared_state, d)

     0011:    os.umask(omask)

     0012:

     0013:

*** 0014:sstate_task_postfunc(d)

     0015:

File: 'sstate_task_postfunc', lineno: 4, function: sstate_task_postfunc

     0001:

     0002:def sstate_task_postfunc(d):

     0003:    shared_state = sstate_state_fromvars(d)

*** 0004:    sstate_install(shared_state, d)

     0005:    for intercept in shared_state['interceptfuncs']:

     0006:        bb.build.exec_func(intercept, d)

     0007:    omask = os.umask(002)

     0008:    if omask != 002:

File: 'sstate.bbclass', lineno: 99, function: sstate_install

     0095:

     0096:    # Run the actual file install

     0097:    for state in ss['dirs']:

     0098:        if os.path.exists(state[1]):

*** 0099:            oe.path.copyhardlinktree(state[1], state[2])

     0100:

     0101:    for postinst in (d.getVar('SSTATEPOSTINSTFUNCS', True) or '').split():

     0102:        bb.build.exec_func(postinst, d)

     0103:

File: '/home/vishwa/workspace/imx/yocto/fsl-community-bsp/sources/poky/meta/lib/oe/path.py', lineno: 81, function: copyhardlinktree

     0077:    if (os.stat(src).st_dev ==  os.stat(dst).st_dev):

     0078:        # Need to copy directories only with tar first since cp will error if two

     0079:        # writers try and create a directory at the same time

     0080:        cmd = 'cd %s; find . -type d -print | tar -cf - -C %s -p --files-from - --no-recursion | tar -xf - -C %s' % (src, src, dst)

*** 0081:        check_output(cmd, shell=True, stderr=subprocess.STDOUT)

     0082:        cmd = 'cd %s; find . -print0 | cpio --null -pdlu %s' % (src, dst)

     0083:        check_output(cmd, shell=True, stderr=subprocess.STDOUT)

     0084:    else:

     0085:        copytree(src, dst)

File: '/home/vishwa/workspace/imx/yocto/fsl-community-bsp/sources/poky/meta/lib/oe/path.py', lineno: 146, function: check_output

     0142:    if retcode:

     0143:        cmd = kwargs.get("args")

     0144:        if cmd is None:

     0145:            cmd = popenargs[0]

*** 0146:        raise CalledProcessError(retcode, cmd, output=output)

     0147:    return output

     0148:

     0149:def find(dir, **walkoptions):

     0150:    """ Given a directory, recurses into that directory,

Exception: CalledProcessError: Command 'cd /home/vishwa/workspace/imx/yocto/fsl-community-bsp/build_1/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.14.28-r0/deploy-linux-imx; find . -type d -print | tar -cf - -C /home/vishwa/workspace/imx/yocto/fsl-community-bsp/build_1/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.14.28-r0/deploy-linux-imx -p --files-from - --no-recursion | tar -xf - -C /home/vishwa/workspace/imx/yocto/fsl-community-bsp/build_1/tmp/deploy/images/imx6qsabresd' returned non-zero exit status 2 with output tar: .: Cannot utime: Operation not permitted

tar: Exiting with failure status due to previous errors

ERROR: Function failed: sstate_task_postfunc

ERROR: Logfile of failure stored in: /home/vishwa/workspace/imx/yocto/fsl-community-bsp/build_1/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.14.28-r0/temp/log.do_deploy.31616

ERROR: Task 138 (/home/vishwa/workspace/imx/yocto/fsl-community-bsp/sources/meta-fsl-bsp-release/imx/meta-fsl-arm/recipes-kernel/linux/linux-imx_3.14.28.bb, do_deploy) failed with exit code '1'

NOTE: Tasks Summary: Attempted 1676 tasks of which 1663 didn't need to be rerun and 3 failed.

Waiting for 0 running tasks to finish:

Summary: 3 tasks failed:

  /home/vishwa/workspace/imx/yocto/fsl-community-bsp/sources/meta-fsl-arm/recipes-graphics/gpu-viv-g2d/gpu-viv-g2d_3.10.17-1.0.2.bb, do_populate_sysroot

  /home/vishwa/workspace/imx/yocto/fsl-community-bsp/sources/meta-fsl-arm/recipes-graphics/gpu-viv-g2d/gpu-viv-g2d_3.10.17-1.0.2.bb, do_packagedata

  /home/vishwa/workspace/imx/yocto/fsl-community-bsp/sources/meta-fsl-bsp-release/imx/meta-fsl-arm/recipes-kernel/linux/linux-imx_3.14.28.bb, do_deploy

Summary: There was 1 WARNING message shown.

Summary: There were 9 ERROR messages shown, returning a non-zero exit code.

0 Kudos
2 Replies

746 Views
joanxie
NXP TechSupport
NXP TechSupport

one should add virtual/libg2d to i.MX6's MACHINE_SOCARCH_FILTER , for more detailed information, pls refer to the link as below:

yocto / meta-fsl-arm | GitLab

0 Kudos

746 Views
veeranjaneyulug
Contributor III

we added below mentioned one in our imx-base.inc file <sources/meta-fsl-arm/conf/machine/include/imx-base.inc>

+MACHINE_SOCARCH_FILTER_append_mx6 = " virtual/libopenvg virtual/libgles1 virtual/libgles2 virtual/egl virtual/mesa virtual/libgl virtual/libg2d"

same error came.

NOTE: Preparing runqueue

ERROR: Multiple .bb files are due to be built which each provide virtual/libg2d (/home/vishwa/workspace/imx/yocto/fsl-community-bsp/sources/meta-fsl-arm/recipes-graphics/gpu-viv-g2d/gpu-viv-g2d_3.10.17-1.0.2.bb /home/vishwa/workspace/imx/yocto/fsl-community-bsp/sources/meta-fsl-bsp-release/imx/meta-fsl-arm/recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p4.4-hfp.bb).

This usually means one provides something the other doesn't and should.

Thanks & Regards

veera

0 Kudos