QA Issue: libvncserver: Files/directories were installed but not shipped in any package: - yocto

While generating sato image by bitbake core-iamge-sato, I am getting following errors
ERROR: libvncserver-0.9.12+gitAUTOINC+c0a23857a5-r0 do_package: QA Issue: libvncserver: Files/directories were installed but not shipped in any package:
/usr/lib/libvncclient.so
/usr/lib/libvncserver.so
/usr/lib/libvncserver.so.1
/usr/lib/libvncclient.so.0.9.12
/usr/lib/libvncclient.so.1
/usr/lib/libvncserver.so.0.9.12
/usr/lib/pkgconfig
/usr/lib/pkgconfig/libvncclient.pc
/usr/lib/pkgconfig/libvncserver.pc
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
libvncserver: 9 installed and not shipped files. [installed-vs-shipped]
ERROR: libvncserver-0.9.12+gitAUTOINC+c0a23857a5-r0 do_package: Fatal QA errors found, failing task.
ERROR: libvncserver-0.9.12+gitAUTOINC+c0a23857a5-r0 do_package:
ERROR: libvncserver-0.9.12+gitAUTOINC+c0a23857a5-r0 do_package: Function failed: do_package
ERROR: Logfile of failure stored in: /home/panther2/warrior/build/tmp/work/corei7-64-poky-linux/libvncserver/0.9.12+gitAUTOINC+c0a23857a5-r0/temp/log.do_package.101719
ERROR: Task (/home/panther2/warrior/sources/meta-openembedded/meta-oe/recipes-graphics/libvncserver/libvncserver_git.bb:do_package) failed with exit code '1'
I am building for warrior branch. As a solution I tried adding following lines in libvncserver_git.bb but nothing worked out. Can anyone help?
FILES_${PN} += " \
${libdir}/libvncclient.so \
${libdir}/libvncserver.so \
${libdir}/libvncserver.so.1 \
${libdir}/libvncclient.so.0.9.12 \
${libdir}/libvncclient.so.1 \
${libdir}/libvncserver.so.0.9.12 \
${libdir}/pkgconfig \
${libdir}/pkgconfig/libvncclient.pc \
${libdir}/pkgconfig/libvncserver.pc \
"
Thank you for your time.

Background: you're using a configuration where $libdir isn't /usr/lib (multilib, probably) but the upstream doesn't care and installs to /usr/lib anyway, which is a bug upstream.

As suggested in comment, I have resolved the error by replacing recipe file from master branch(libvncserver_0.9.12.bb). I was using warrior branch recipe libvncserver_git.bb which causes error.

Related

Yocto Realsense Building

I'm trying to build a Yocto Hardknott image with Realsense layer for IMX8MP board (Hummingboard Mate). I have received this error:
ERROR: librealsense2-2.44.0-r0 do_package: QA Issue: librealsense2:
Files/directories were installed but not shipped in any package:
/home /home/ubuntu /home/ubuntu/Documents
/home/ubuntu/Documents/librealsense2
/home/ubuntu/Documents/librealsense2/presets
/home/ubuntu/Documents/librealsense2/presets/L535 Max Range.preset
/home/ubuntu/Documents/librealsense2/presets/L535 Max Range With
Binning.preset /home/ubuntu/Documents/librealsense2/presets/L535
Medium Range.preset
/home/ubuntu/Documents/librealsense2/presets/L535 Min Range.preset
/usr/bin/rs-embed Please set FILES such that these items are packaged.
Alternatively if they are unneeded, avoid installing them or delete
them within do_install. librealsense2: 10 installed and not shipped
files. [installed-vs-shipped] ERROR: librealsense2-2.44.0-r0
do_package: Fatal QA errors found, failing task. ERROR: Logfile of
failure stored in:
/home/ubuntu/yocto_hardknott_realsense/build-xwayland-imx8mpsolidrun/tmp/work/cortexa53-crypto-poky-linux/librealsense2/2.44.0-r0/temp/log.do_package.110367
ERROR: Task
(/home/ubuntu/yocto_hardknott_realsense/sources/meta-intel-realsense/recipes-support/librealsense/librealsense2_2.44.0.bb:do_package)
failed with exit code '1'
I have used this solution:
FILES_${PN} += "${home}/*"
FILES_${PN}-dev = "${home}/* ${includedir}"
from this thread:
Yocto - Files/directories were installed but not shipped in any package
But the error is bigger:
ERROR: librealsense2-2.44.0-r0 do_package: QA Issue: librealsense2:
Files/directories were installed but not shipped in any package:
/home /home/ubuntu /home/ubuntu/Documents
/home/ubuntu/Documents/librealsense2
/home/ubuntu/Documents/librealsense2/presets
/home/ubuntu/Documents/librealsense2/presets/L535 Max Range.preset
/home/ubuntu/Documents/librealsense2/presets/L535 Max Range With
Binning.preset /home/ubuntu/Documents/librealsense2/presets/L535
Medium Range.preset
/home/ubuntu/Documents/librealsense2/presets/L535 Min Range.preset
/usr/lib/librealsense2.so /usr/lib/librealsense2-gl.so
/usr/lib/pkgconfig /usr/lib/cmake /usr/lib/pkgconfig/realsense2.pc
/usr/lib/pkgconfig/realsense2-gl.pc /usr/lib/cmake/realsense2
/usr/lib/cmake/realsense2-gl
/usr/lib/cmake/realsense2/realsense2ConfigVersion.cmake
/usr/lib/cmake/realsense2/realsense2Targets-noconfig.cmake
/usr/lib/cmake/realsense2/realsense2Targets.cmake
/usr/lib/cmake/realsense2/realsense2Config.cmake
/usr/lib/cmake/realsense2-gl/realsense2-glConfigVersion.cmake
/usr/lib/cmake/realsense2-gl/realsense2-glTargets.cmake
/usr/lib/cmake/realsense2-gl/realsense2-glConfig.cmake
/usr/lib/cmake/realsense2-gl/realsense2-glTargets-noconfig.cmake
/usr/bin/rs-embed Please set FILES such that these items are packaged.
Alternatively if they are unneeded, avoid installing them or delete
them within do_install. librealsense2: 26 installed and not shipped
files. [installed-vs-shipped] ERROR: librealsense2-2.44.0-r0
do_package: Fatal QA errors found, failing task. ERROR: Logfile of
failure stored in:
/home/ubuntu/yocto_hardknott_realsense/build-xwayland-imx8mpsolidrun/tmp/work/cortexa53-crypto-poky-linux/librealsense2/2.44.0-r0/temp/log.do_package.128195
ERROR: Task
(/home/ubuntu/yocto_hardknott_realsense/sources/meta-intel-realsense/recipes-support/librealsense/librealsense2_2.44.0.bb:do_package)
failed with exit code '1'
Where is the problem of this?
Thank you so much.
EDIT:
For this case:
FILES_${PN} += "$/home/* /usr/*"
Adding this line solves the error, my mistake, I didn't understand the command.
For this case:
FILES_${PN} += "$/home/* /usr/*"
Adding this line solves the error, my mistake, I didn't understand the command.

ERROR: Nothing RPROVIDES 'raspi-gpio_git'. I am using 'rpi-hwup-image.bb' image in which i added a bbappend file to install raspi-gpio_git

From meta-raspberrypi I am using the rpi-hwup-image.bb recipe to build the image in which I have appended raspi-gpio_git recipe, but i am reciving the following error:
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'raspi-gpio_git' (but /home/lala/yocto/meta-raspberrypi/recipes-core/images/rpi-hwup-image.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'raspi-gpio_git' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['raspi-gpio_git']
ERROR: Required build target 'rpi-hwup-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['rpi-hwup-image', 'raspi-gpio_git']
I have the following in my bblayers.conf :
BBLAYERS ?= " \
/home/lala/yocto/poky/meta \
/home/lala/yocto/poky/meta-poky \
/home/lala/yocto/poky/meta-yocto-bsp \
/home/lala/yocto/meta-raspberrypi \
/home/lala/yocto/poky/meta-openembedded/meta-oe \
/home/lala/yocto/poky/meta-openembedded/meta-multimedia \
/home/lala/yocto/poky/meta-openembedded/meta-networking \
/home/lala/yocto/poky/meta-openembedded/meta-python \
/home/lala/yocto/poky/meta-qt5 \
"
How do i resolve this error?
I am still at early learning stages and any feedback and help is appreciated. Thank you
_git is the version, just use raspi-gpio.

didn't pass LDFLAGS? [ldflags]

I created a recipe, summary as follows:
do_install() {
install -d ${D}/GreenTea
cp ${S}/foo.sh ${D}/GreenTea
cp ${S}/foo.so ${D}/GreenTea
when bitbake this recipe, it shows: didn't pass LDFLAGS? [ldflags]
ERROR: greentea-1.0-r0 do_package_qa: QA Issue: No GNU_HASH in the ELF binary /home/tea/greentea4/build/tmp/work/corei7-64-poky-linux/greentea/1.0-r0/packages-split/greentea/GreenTea/foo.so, didn't pass LDFLAGS? [ldflags]
What can I do?
If you're compiling the source for yourself, you should not skip the LDFLAGS warning as mentioned by #jussi-kukkonen and you should add the following line in your Yocto recipe
TARGET_CC_ARCH += "${LDFLAGS}"
Ref: How to fix : ERROR: do_package_qa: QA Issue: No GNU_HASH in the elf binary
You can skip the warning:
INSANE_SKIP_${PN} += "ldflags"
This does not mean the library will actually work on target (the QA warnings are there for a reason) but it will allow packaging to continue.

Failed do_rootfs for agl-demo-platform

I am building Yocto for AGL image (for more details: automotivelinux.org).
The below error occurred during the build progress (do_rootfs).
In packagegroup-agl-demo-platform.bb, declared packagegroup-agl-image-ivi as a runtime dependent package.
RDEPENDS_${PN} += "\
packagegroup-agl-image-ivi \
"
I can build successfully the packagegroup-agl-image-ivi separately. But when building the whole agl-demo-platform image, happened as follows:
ERROR: agl-demo-platform-1.0-r0 do_rootfs: Unable to install packages. Command '/LTSI4.9/LTSI4.4/build/tmp/work/m3ulcb-agl-linux/agl-demo-platform/1.0-r0/opkg.conf -t /LTSI4.9/build/tmp/work/m3ulcb-agl-linux/agl-demo-platform/1.0-r0/temp/ipktemp/ -o /LTSI4.9/build/tmp/work/m3ulcb-agl-linux/agl-demo-platform/1.0-r0/rootfs --force_postinstall --prefer-arch-to-version install
run-postinsts
screen
kernel-modules
packagegroup-agl-devel
packagegroup-core-eclipse-debug
mc packagegroup-core-tools-profile
kernel-module-vsp2 kernel-module-pvrsrvkm
kernel-module-vspm-if
opkg packagegroup-core-tools-debug
psplash kernel-module-vspm
packagegroup-core-ssh-openssh
packagegroup-agl-demo-platform
omx-user-module kernel-devicetree'
returned 1:
Solver encountered 1 problem(s):
Problem 1/1:
- package packagegroup-agl-demo-platform-1.0-r0.all requires packagegroup-agl-image-ivi, but none of the providers can be installed
Solution 1:
- do not ask to install a package providing packagegroup-agl-demo-platform
ERROR: agl-demo-platform-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /LTSI4.9/build/tmp/work/m3ulcb-agl-linux/agl-demo-platform/1.0-r0/temp/log.do_rootfs.14498
ERROR: Task (/LTSI4.9/meta-agl-demo/recipes-platform/images/agl-demo-platform.bb:do_rootfs) failed with exit code '1'
Can anyone help me out in this case ?
I tried 02 ways as follows. They did work.
First method, I cleaned all relative packages and rebuild the whole image.
$ bitbake -c cleanall -c cleansstate <recipes>
recipes consisted of all dependent & runtime dependent packages. But it was a little bit confused to inexperienced users to determine which ones.
Second method, I wiped out the build/tmp/, cache/, sstate-cache/ folders, and re-build all Yocto packages.
There were nothing happening any more. It was really a bad idea if be in critical period of time, but if have free time, be helpful.

Unable to start bitbake server

I am trying to learn yocto by following the video tutorials on their main website. I installed the poky-rocko-18.0.0 and after setting up the build environment I tried to build the linux image using the following command:
bitbake core-image-minimal
However, I am getting the following error:
I am unsure how to start the bitbake server and so far have not found any good references for the same.
We also faced same issue with our bitbake server. It will worked after remove bitbacke.lock
file. Use below command for solution.
rm -rf bitbake.lock
###/build$ bitbake core-image-sato
Loading cache: 100% |#########################################################################################################################################################################################################| Time: 0:00:01
Loaded 3867 entries from dependency cache.
Parsing recipes: 100%
My problem was some missing packages on my build system.
Fixed it by installing the following packages (Debian):
sudo apt-get install chrpath
sudo apt-get install texinfo
On my Arch system:
sudo pacman -S rpcsvc-proto chrpath texinfo cpio diffstat
Just try this in your build folder:
rm -rf bitbake.lock
this shoud work
The reason for this is the state of the bitbake is locked during last bitbake execution. Once you stop intermittently, we need to remove the bitbake.lock
In my case it was solved with this answer from https://stackoverflow.com/a/45880855/5350353 (Unable to connect to bitbake server):
This is because new function findTopdir (Submitted on July 18, 2017) does not handle errors. For example, the lack of BBPATH environment variable and the inability to find conf/bblayers.conf in BBPATH. findTopdir just returns None in case of that errors.
Maybe caused by the absence of host application(s), like gawk, chrpath and texinfo.
Below is one example.
ERROR: Unable to start bitbake server (None)
ERROR: Server log for this session (/home/zephyr/workspace/w031/openembedded-core/build/bitbake-cookerdaemon.log):
--- Starting bitbake server pid 22675 at 2019-03-16 00:28:44.447008 ---
Traceback (most recent call last):
File "/home/zephyr/workspace/w031/bitbake/lib/bb/cookerdata.py", line 290, in parseBaseConfiguration
bb.event.fire(bb.event.ConfigParsed(), self.data)
File "/home/zephyr/workspace/w031/bitbake/lib/bb/event.py", line 225, in fire
fire_class_handlers(event, d)
File "/home/zephyr/workspace/w031/bitbake/lib/bb/event.py", line 134, in fire_class_handlers
execute_handler(name, handler, event, d)
File "/home/zephyr/workspace/w031/bitbake/lib/bb/event.py", line 106, in execute_handler
ret = handler(event)
File "/home/zephyr/workspace/w031/openembedded-core/meta/classes/base.bbclass", line 238, in base_eventhandler
setup_hosttools_dir(d.getVar('HOSTTOOLS_DIR'), 'HOSTTOOLS', d)
File "/home/zephyr/workspace/w031/openembedded-core/meta/classes/base.bbclass", line 142, in setup_hosttools_dir
bb.fatal("The following required tools (as specified by HOSTTOOLS) appear to be unavailable in PATH, please install them in order to proceed:\n %s" % " ".join(notfound))
File "/home/zephyr/workspace/w031/bitbake/lib/bb/__init__.py", line 120, in fatal
raise BBHandledException()
bb.BBHandledException
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/zephyr/workspace/w031/bitbake/lib/bb/daemonize.py", line 83, in createDaemon
function()
File "/home/zephyr/workspace/w031/bitbake/lib/bb/server/process.py", line 469, in _startServer
self.cooker = bb.cooker.BBCooker(self.configuration, self.featureset)
File "/home/zephyr/workspace/w031/bitbake/lib/bb/cooker.py", line 210, in __init__
self.initConfigurationData()
File "/home/zephyr/workspace/w031/bitbake/lib/bb/cooker.py", line 375, in initConfigurationData
self.databuilder.parseBaseConfiguration()
File "/home/zephyr/workspace/w031/bitbake/lib/bb/cookerdata.py", line 317, in parseBaseConfiguration
raise bb.BBHandledException
bb.BBHandledException
ERROR: The following required tools (as specified by HOSTTOOLS) appear to be unavailable in PATH, please install them in order to proceed:
gawk
First, change local.conf, bblayers.conf to previous configuration.
Then, bitbake -c cleanall recipe_name.
It will be all right now!
Like the OP stated a package was missing on the build host. ( makeinfo in his case)
To properly prepare the build host, look into the documentation for your yocto version and your Distro.
latest
In my case some playing with devtool caused a duplicated definition in bblayers.conf:
BBLAYERS ?= " \
${TOPDIR}/../meta \
${TOPDIR}/../meta-poky \
${TOPDIR}/../meta-yocto-bsp \
${TOPDIR}/../meta-atmel \
${TOPDIR}/../meta-libgpiod \
${TOPDIR}/../meta-libuio \
${TOPDIR}/../meta-lsuio \
${TOPDIR}/workspace \
/home/me/yocto/poky/build/workspace \
"
I had to manually remove one of the two last lines as follows:
BBLAYERS ?= " \
${TOPDIR}/../meta \
${TOPDIR}/../meta-poky \
${TOPDIR}/../meta-yocto-bsp \
${TOPDIR}/../meta-atmel \
${TOPDIR}/../meta-libgpiod \
${TOPDIR}/../meta-libuio \
${TOPDIR}/../meta-lsuio \
${TOPDIR}/workspace
"
Then I retried and the issue was resolved.
In my case (PLNX 2018.2) I was not getting this problem because of the .Xil folder that was hidden in the root directory of the project, deleting it solves the problem.
I had a similar issue; with an additional Unicode Decode Error: 'ascii' codec can't decode byte 0xe2 in position 5305: ordinal not in range(128) at the bottom of the list.
I resolved this by checking my 'locale' setting in Ubuntu 18.04. and running the following:
export LC_ALL="en_US.UTF-8"
export LANG="en_US.UTF-8"
export LANGUAGE="en_US.UTF-8"
bitbake-layers command worked perfectly after this.
Please shutdown and rerun that bitbake command then it will solve.