Comments (7)
@SimonSimCity
I had the same issue. I will run into this whenever there is a change to the bblayer.conf. For example: I changed the name of the layer to match the base layers naming schema.
To fix it reliably, you can run this command:
bitbake -c cleanall meta-azure-device-update azure-device-update azure-iot-sdk-c
But I believe it should be enough to just clean the sdk. That sometimes wasn't enough for me.
from iot-hub-device-update.
Hi @SimonSimCity/ @Voxel07,
Thank you for raising this issue as well! We will investigate it.
Thanks @Voxel07 for sharing your feedback.
from iot-hub-device-update.
Hi @SimonSimCity,
I had the same issue, this is due to a polluted cache.
Try to modify your azure-iot-sdk-c_git.bb file in the function sysroot_stage_all_append
sysroot_stage_all_append () {
sysroot_stage_dir ${D}${exec_prefix}/cmake ${SYSROOT_DESTDIR}${exec_prefix}/cmake
sed -i "s@${WORKDIR}/recipe-sysroot@\${_WORKDIR}/recipe-sysroot@g" ${SYSROOT_DESTDIR}${exec_prefix}/cmake/azure_c_shared_utilityTargets-noconfig.cmake
}
from iot-hub-device-update.
@pierrickcurt Thanks for providing the patch, unfortunately I run into another error when adding the sed
line to the function. To be fair, I did this after I encountered the error without cleaning anything. The error I got is:
Loading cache: 100% |##################################################################################################################################################################################################| Time: 0:00:00
Loaded 3345 entries from dependency cache.
Parsing recipes: 100% |################################################################################################################################################################################################| Time: 0:00:01
Parsing of 2281 .bb files complete (2277 cached, 4 parsed). 3355 targets, 125 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.42.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "raspberrypi3"
DISTRO = "poky"
DISTRO_VERSION = "2.7.4"
TUNE_FEATURES = "arm vfp cortexa7 neon vfpv4 thumb callconvention-hard"
TARGET_FPU = "hard"
meta
meta-poky
meta-yocto-bsp = "warrior:c8c383d958807b991e31d22f612ba2a81a3860a4"
meta-oe
meta-python
meta-networking
meta-multimedia = "warrior:a24acf94d48d635eca668ea34598c6e5c857e3f8"
meta-raspberrypi = "warrior:65b95ce742ae973b856a62974d0ec22e2caf03a3"
meta-swupdate = "warrior:7ebe40f1a9b312476580fc74541231ac202feaa4"
meta-azure-device-update = "warrior:de5a72d48b6e8ad5ffe332a6738df1d6945d8e51"
Initialising tasks: 100% |#############################################################################################################################################################################################| Time: 0:00:01
Sstate summary: Wanted 201 Found 186 Missed 15 Current 1164 (92% match, 98% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: azure-device-update-1.0+gitAUTOINC+743bb72f5b-r0 do_compile: Function failed: do_compile (log file is located at /home/yocto/project/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/azure-device-update/1.0+gitAUTOINC+743bb72f5b-r0/temp/log.do_compile.38451)
ERROR: Logfile of failure stored in: /home/yocto/project/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/azure-device-update/1.0+gitAUTOINC+743bb72f5b-r0/temp/log.do_compile.38451
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: VERBOSE=1 cmake --build /home/yocto/project/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/azure-device-update/1.0+gitAUTOINC+743bb72f5b-r0/build --target all -- -j 16
| ninja: error: '/home/yocto/project/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/deliveryoptimization-sdk/1.0+gitAUTOINC+006c15f8a8-r0/recipe-sysroot/usr/lib/libboost_filesystem-mt.so', needed by 'src/agent/AducIotAgent', missing and no known rule to make it
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/yocto/project/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/azure-device-update/1.0+gitAUTOINC+743bb72f5b-r0/temp/log.do_compile.38451)
ERROR: Task (/home/yocto/project/meta-azure-device-update/recipes-azure-device-update/azure-device-update/azure-device-update_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3928 tasks of which 3901 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/yocto/project/meta-azure-device-update/recipes-azure-device-update/azure-device-update/azure-device-update_git.bb:do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
It works after running the code supplied by @Voxel07 after removing the package meta-azure-device-update
. Should I've done something specific before applying this line after encountering the error?
EDIT: Seems like this is something local ... I'll get back as I know more ...
from iot-hub-device-update.
This seems to be a much deeper problem ... I fixed mine by fixing all modules to a certain commit on each of the repos - see: munit-solutions/meta-azure-device-update@fb5cb27
from iot-hub-device-update.
Seems like it doesn't have to do with a particular version, but when the version changes, the sstate-cache of those packages need to be cleaned. With the release of the meta-layer for 0.8.0 there was a new package added which also requires those cleanings. Here is the new command we work with:
bitbake -c cleansstate azure-device-update azure-iot-sdk-c azure-sdk-for-cpp
EDIT: No need to call cleanall
, calling cleansstate
is enough. Just updated the command above.
from iot-hub-device-update.
Closing this issue as there has been no activity on this thread. Please feel free to open an issue if needed.
Our Yocto layers published in this repo and will be maintained for our releases: https://github.com/Azure/iot-hub-device-update-yocto
from iot-hub-device-update.
Related Issues (20)
- Configuration file deviceupdate-agent.service is marked executable HOT 7
- Yocto Rpi3 Device is restarting again and again in a loop HOT 2
- Failed parse of JSON file in Rpi4 device HOT 6
- /usr/bin/adu-swupdate.sh never runs (swupdate:2 never used even when registered?) HOT 7
- The packages deployed through device update are not reflecting in the device hosted on ubuntu 22.04 HOT 2
- Ignore duplicate deployment workflow not working as expected HOT 5
- Device reporting new Contract Name & ContractId after device update and stays inProgress in ADU HOT 9
- A/B Update Erases ADU Configuration on Yocto Kirkstone Raspberry Pi 4 - 64 bit Example HOT 2
- A/B Update Fails on Yocto Kirkstone Raspberry Pi 4 - 64 bit Example do to invalid update image HOT 2
- Device update agent on bullseye 11 raspberry zero HOT 5
- pthread_mutex_unlock doesn't check whether arguments is NULL for windows, this may cause dos HOT 3
- DeviceManagementClient.GetDeviceModuleAsync does not return the ExtendedResultCode HOT 3
- Update status changes to "In Progress" sometime after "Succeeded". HOT 16
- AducIotAgent cannot find custom step handler HOT 7
- ADUC_Result_Install_RequiredReboot stills reboots immediately after HOT 4
- Seeking Documentation on Retry Behavior HOT 1
- Is_Installed Step runs multiple times in swupdatev2 handler HOT 3
- Registering extensions fails on arm32 due to bug in STRING_construct_sprintf() invocation
- Unable to use additional compatibility information HOT 10
- Inconsistent Deployment status for device HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iot-hub-device-update.