Yocto 2.4.2 failed to do_package_qa task - yocto

I am working with Yocto project version Rocko 2.4.2, Linux LTS4.4, cortexA15 ARM arch
When I bitbake weston package (v2.0), the error generated
ERROR: weston-2.0.0-r0 do_package_qa: QA Issue: /usr/lib/libweston-2/gl-renderer.so contained in package libweston-2 requires libGLESv2.so, but no providers found in RDEPENDS_libweston-2? [file-rdeps]
ERROR: weston-2.0.0-r0 do_package_qa: QA Issue: /usr/bin/weston-simple-egl contained in package weston-examples requires libGLESv2.so, but no providers found in RDEPENDS_weston-examples? [file-rdeps]
ERROR: weston-2.0.0-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: weston-2.0.0-r0 do_package_qa: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /home/server-build/RZG_YoctoProject/build/tmp/work/cortexa15hf-neon-poky-linux-gnueabi/weston/2.0.0-r0/temp/log.do_package_qa.8133
ERROR: Task (/home/server-build/RZG_YoctoProject/build/../poky/meta/recipes-graphics/wayland/weston_2.0.0.bb:do_package_qa) failed with exit code '1'
I tried to set "RDEPENDS_weston-examples = "libGLESv2" but it's still failed.
ERROR: Nothing RPROVIDES 'libGLESv2' (but /home/server-build/RZG_YoctoProject/build/../poky/meta/recipes-graphics/wayland/weston_2.0.0.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'libGLESv2' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['libGLESv2']
ERROR: Required build target 'weston' has no buildable providers.
Missing or unbuildable dependency chain was: ['weston', 'libGLESv2']
This error happened due to new structure and syntax of Yocto 2.4.2.
Anyone who is running into the same issue ?
Thanks for any help.

Related

Nuget is not installed. CMake Error at .../CMakeLists.txt:29 Integrity check for .../windows/nuget.exe failed

I get this error when I want to run my project in windows mode.
Nuget is not installed.
CMake Error at flutter/ephemeral/.plugin_symlinks/webview_windows/windows/CMakeLists.txt:29 (message):
Integrity check for F:/flutter_projects/my_project_name/build/windows/nuget.exe
failed.
Exception: Unable to generate build files
But nuget had been installed before. I can run my other flutter project in windows with no errors. path to nuget.exe exists in environment variables.
How can I solve this?

Many errors when migrating from Poky Thud to Dunfell

I upgraded my Yocto environment (Ubuntu 20.04) from version Thud to Dunfell. Suddenly I get lots of similar errors with many packages.
Below an example for "bitbake netcat" (from meta-openembedded layer, Dunfell branch) as well as for Busybox.
In the past I have upgraded Yocto several times, but never experienced this error. Anyone has an idea where this comes from ? Is there maybe an option in local.conf, which I am missing ?
Any suggestions are welcome.
ERROR: netcat-0.7.1-r3 do_package_qa: QA Issue: /usr/bin/netcat contained in package netcat requires ld-linux-armhf.so.3(GLIBC_2.4), but no providers found in RDEPENDS_netcat? [file-rdeps]
ERROR: netcat-0.7.1-r3 do_package_qa: QA Issue: /usr/bin/netcat contained in package netcat requires libc.so.6(GLIBC_2.28), but no providers found in RDEPENDS_netcat? [file-rdeps]
ERROR: netcat-0.7.1-r3 do_package_qa: QA Issue: /usr/bin/netcat contained in package netcat requires libc.so.6(GLIBC_2.15), but no providers found in RDEPENDS_netcat? [file-rdeps]
ERROR: busybox-1.31.1-r0 do_package_qa: QA Issue: /bin/busybox.nosuid contained in package busybox requires libm.so.6(GLIBC_2.4), but no providers found in RDEPENDS_busybox? [file-rdeps]
ERROR: busybox-1.31.1-r0 do_package_qa: QA Issue: /bin/busybox.nosuid contained in package busybox requires libm.so.6(GLIBC_2.29), but no providers found in RDEPENDS_busybox? [file-rdeps]
Either you can skip the QA issue and move ahead by
INSANE_SKIP_${PN} += "file-rdeps"
or just give a try to upgrade the glibc package version as per dunfell release notes.

Not able to compile swift on Ubuntu 18.04

I installed swift toolchain using instructions from swift.org. While compiling helloworld code I am getting below error.
warning: 'helloworld': failed loading cached manifest for 'helloworld': disk I/O error
error: 'helloworld': Invalid manifest
<unknown>:0: error: unable to open output file '/usr2/xyz/.cache/clang/ModuleCache/IJ5GUC7XMAO5/SwiftShims-1TLN9ZL6HKTHR.pcm': 'No such file or directory'
<unknown>:0: error: could not build C module 'SwiftShims'
I tried removing '/usr2/xyz/.cache/clang/ModuleCache', but did not work. Please help in resolving this issue.

Building Cyanogenmod from source - recipe for target failed (libnativehelper.so)

I'm getting the following error about an hour into my build of Cyanogenmod 12.1 for hlte, using the latest repo checkout. I am using Debian testing, have all dependencies installed as listed in Google's build guide and am using OpenJDK 7. I also have all proprietary files under vendor/samsung. What am I missing or what direction should I look in to solve this problem?
...
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build/core/host_shared_library_internal.mk:44: recipe for target '/home/james/android/cm/out/host/linux-x86/obj32/lib/libnativehelper.so' failed
make: *** [/home/james/android/cm/out/host/linux-x86/obj32/lib/libnativehelper.so] Error 1

Bundle config for production only?

I'm getting an error when deploying my application to CentOS 6.x similar to the following: An error occurred while installing pg (0.17.1), and Bundler cannot continue
I've installed the required libs but am still getting the error.
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/home/exporter/.rbenv/versions/2.1.5/bin/ruby extconf.rb
checking for pg_config... no
No pg_config... trying anyway. If building fails, please try again with
--with-pg-config=/path/to/pg_config
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
From reading around it seems like I need to add --with-pg-config=/path/to/pg_config. I can easily do this by configuring bundler to install with the flag:
bundle config build.pg --with-pg-config=/usr/pgsql-9.4/bin/pg_config
But how can I do this without affecting my local dev environment? The /path/to/pg_config will be different for my production environment and my local dev environment.