IMAGE_INSTALL_append += “ ixgbe ixgbevf"
when building the image, it shows:
....ixgbevf-4.6.3/src/kcompat.h 2766:10, fatal error, linux/pci-aspm.h no such file
I am using meta-intel.
Related
when i try to do an ordinary yocto-quick-build (qemu, core-image-minimal), with
dunfell release and the following settings in the local.conf:
INHERIT += "archiver"
ARCHIVER_MODE[src] = "configured"`
I get the following Error message:
ERROR: core-image-minimal-1.0-r0 do_rootfs:The file /usr/lib/x86_64-poky-linux/9.3.0
/crtprec32.o is installed by both libgcc and ibgcc-initial, aborting
Does anyone have a solution or workaround for this issue ?
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.
I am attempting to add a new layer to my bitbake build. There is a GitHub repo that provides code that can read a CAN frame and parse it using a DBC file. I am having trouble getting bitbake to approve of this. The repo is here and it relies on three submodules.
My bb file so far contains:
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRCREV_FORMAT = "linux"
SRC_URI = "git://github.com/xR3b0rn/dbcppp.git;protocol=https;branch=master \
gitsm://github.com/jarro2783/cxxopts.git;protocol=https;branch=master \
gitsm://github.com/GNOME/libxml2.git;protocol=https;branch=master \
gitsm://github.com/xR3b0rn/libxmlmm.git;protocol=https;branch=master \
"
PV = "1.0+git${SRCPV}"
SRCREV = "${AUTOREV}"
S = "${WORKDIR}/git"
When adding the third gitsm line gitsm://github.com/xR3b0rn/libxmlmm.git;protocol=https;branch=master \ I start getting errors.
ERROR: dbcppp-1.0+gitAUTOINC+linux-r0 do_configure: oe_runmake failed
ERROR: dbcppp-1.0+gitAUTOINC+linux-r0 do_configure: Execution of '/home/michael/Documents/MAIN_Application/build-fb/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dbcppp/1.0+gitAUTOINC+linux-r0/temp/run.do_configure.39779' failed with exit code 1
ERROR: Logfile of failure stored in: /home/michael/Documents/MAIN_Application/build-fb/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dbcppp/1.0+gitAUTOINC+linux-r0/temp/log.do_configure.39779
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/michael/Documents/MAIN_Application/sources/poky/meta/recipes-devtools/gcc/gcc-runtime_10.2.bb:do_populate_sysroot', 'virtual:native:/home/michael/Documents/MAIN_Application/sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', '/home/michael/Documents/MAIN_Application/sources/poky/meta/recipes-devtools/quilt/quilt-native_0.66.bb:do_populate_sysroot', '/home/michael/Documents/MAIN_Application/sources/poky/meta/recipes-devtools/gcc/gcc-cross_10.2.bb:do_populate_sysroot', 'virtual:native:/home/michael/Documents/MAIN_Application/sources/poky/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', '/home/michael/Documents/MAIN_Application/sources/poky/meta/recipes-core/glibc/glibc_2.33.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['gcc-runtime', 'pseudo-native', 'quilt-native', 'gcc-cross-arm', 'patch-native', 'glibc', 'linux-libc-headers', 'libgcc', 'xz-native', 'libmpc-native', 'autoconf-native', 'automake-native', 'mpfr-native', 'binutils-cross-arm', 'zlib-native', 'gmp-native', 'libtool-native', 'flex-native', 'texinfo-dummy-native', 'gnu-config-native', 'attr-native', 'gettext-minimal-native', 'm4-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_configure
| NOTE: make clean
| Makefile:4: *** config.mk not built. Run configure script.. Stop.
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/michael/Documents/MAIN_Application/build-fb/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dbcppp/1.0+gitAUTOINC+linux-r0/temp/run.do_configure.39779' failed with exit code 1
ERROR: Task (/home/michael/Documents/MAIN_Application/MAIN_layers/meta-MAINapplication/recipes-core/dbcppp/dbcppp_0.0.bb:do_configure) failed with exit code '1'
This is an oe_runmake error. This confuses me as I have not attempted to add a do_install or do_install_append step.
Note that my goal is to build this code and include it as a library for my application to use.
Edit 1: I updated the bb file (below). The resulting error leads to me to believe that I have to build this, set some rules for oe_runmake to follow.
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRCREV_FORMAT = "xR3b0rn"
SRC_URI = "git://github.com/xR3b0rn/dbcppp.git;protocol=https;branch=master \
gitsm://github.com/jarro2783/cxxopts.git;protocol=https;branch=master \
gitsm://github.com/GNOME/libxml2.git;protocol=https;branch=master \
gitsm://github.com/xR3b0rn/libxmlmm.git;protocol=https;branch=master \
"
PV = "0.0+gitr${SRCPV}"
SRCREV = "${AUTOREV}"
SRCREV_xR3b0rn = "${AUTOREV}"
S = "${WORKDIR}/git"
Edit 2: Using the solution from ensc I am able to build, but I get an odd error.
ERROR: dbcppp-1.0+gitAUTOINC+917c925638-r0 do_packagedata: QA Issue: Package version for package dbcppp-src went backwards which would break package feeds (from 0:1.0+git0+linux-r0 to 0:1.0+git0+917c925638-r0) [version-going-backwards]
ERROR: dbcppp-1.0+gitAUTOINC+917c925638-r0 do_packagedata: QA Issue: Package version for package dbcppp-dbg went backwards which would break package feeds (from 0:1.0+git0+linux-r0 to 0:1.0+git0+917c925638-r0) [version-going-backwards]
ERROR: dbcppp-1.0+gitAUTOINC+917c925638-r0 do_packagedata: QA Issue: Package version for package dbcppp-staticdev went backwards which would break package feeds (from 0:1.0+git0+linux-r0 to 0:1.0+git0+917c925638-r0) [version-going-backwards]
ERROR: dbcppp-1.0+gitAUTOINC+917c925638-r0 do_packagedata: QA Issue: Package version for package dbcppp-dev went backwards which would break package feeds (from 0:1.0+git0+linux-r0 to 0:1.0+git0+917c925638-r0) [version-going-backwards]
ERROR: dbcppp-1.0+gitAUTOINC+917c925638-r0 do_packagedata: QA Issue: Package version for package dbcppp-doc went backwards which would break package feeds (from 0:1.0+git0+linux-r0 to 0:1.0+git0+917c925638-r0) [version-going-backwards]
ERROR: dbcppp-1.0+gitAUTOINC+917c925638-r0 do_packagedata: QA Issue: Package version for package dbcppp-locale went backwards which would break package feeds (from 0:1.0+git0+linux-r0 to 0:1.0+git0+917c925638-r0) [version-going-backwards]
ERROR: dbcppp-1.0+gitAUTOINC+917c925638-r0 do_packagedata: QA Issue: Package version for package dbcppp went backwards which would break package feeds (from 0:1.0+git0+linux-r0 to 0:1.0+git0+917c925638-r0) [version-going-backwards]
write directly
SRC_URI = "gitsm://github.com/xR3b0rn/dbcppp.git;protocol=https;branch=master"
The gitsm fetcher is for downloading repositories with submodules but not for downloading the submodules itself.
As ensc said, gitsm will download submodules too.
Regarding Edit 2, Package version for package dbcppp-src went backwards means that you downgraded package version (you have already built higher version of package then you are trying to build currently).
You should do cleansstate of your package and rerun the build to solve it.
bitbake dbcppp -c cleansstate
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.
I am perorming following steps for compiling source code locally. i am using poky version pyro of yocto. but after successfully clean the source code, while compiling source code is remove and error is display.
step 1
bitbake -v -c clean u-boot
step 2
bitbake -v u-boot
------------------------------Eroor-------------------------------
make: *** No rule to make target 'am335x_boneblack_config'. Stop.
make: Leaving directory '/u-boot/u-boot_v2017.01/u-boot_src'
ERROR: u-boot-1_2017.01-r0 do_compile: oe_runmake failed
ERROR: u-boot-1_2017.01-r0 do_compile: Function failed: do_compile (log file is located at /PYRO_BUILD/tmp/work/beaglebone-poky-linux-gnueabi/u-boot/1_2017.01-r0/temp/log.do_compile.10915)
ERROR: Logfile of failure stored in: /PYRO_BUILD/tmp/work/beaglebone-poky-linux-gnueabi/u-boot/1_2017.01-r0/temp/log.do_compile.10915
how should i resolve it?
make: *** No rule to make target 'am335x_boneblack_config'. Stop.
make: Leaving directory
'//src_bsp/u-boot/u-boot_v2017.01/u-boot_src'
From above error, It seems that you have uboot code locally at '//u-boot/u-boot_v2017.01/u-boot_src' which gets deleted on compiling(bitbake -v u-boot).
Try using EXTERNALSRC instead of S to specify path to u-boot source code as follows :
inherit externalsrc
EXTERNALSRC = "/<workspace>/u-boot/u-boot_v2017.01/u-boot_src"
EXTERNALSRC_BUILD = "/<workspace>/u-boot/u-boot_v2017.01/u-boot_src"