Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yocto Dunfell Recipe for Edge 1.4 #90

Merged
merged 5 commits into from
Nov 28, 2022
Merged

Yocto Dunfell Recipe for Edge 1.4 #90

merged 5 commits into from
Nov 28, 2022

Conversation

ggjjj
Copy link
Contributor

@ggjjj ggjjj commented Sep 15, 2022

1.4 IoT Edge Yocto recipes with the update from the new architecture migration from 1.1

@sindelar-fr
Copy link
Contributor

I know it's still WIP, but if the meta-rust revision changes, please update it also in Readme.

@ruben-sch
Copy link

Hi,

thanks for your work, would be awesome if we get this to work!

I tried to build the feature branch (bitbake iotedge)and run into 2 issues:
First one is solved with following change:

index 55712bd..987c7e5 100644
--- a/recipes-core/aziotctl/aziotctl_1.4.1.bb
+++ b/recipes-core/aziotctl/aziotctl_1.4.1.bb
@@ -239,8 +239,7 @@ SRC_URI += " \
 "
 
 LIC_FILES_CHKSUM=" \
-file://LICENSE;md5=0f7e3b1308cb5c00b372a6e78835732d \
-file://THIRDPARTYNOTICES;md5=11604c6170b98c376be25d0ca6989d9b \
+file://LICENSE;md5=4f9c2c296f77b3096b6c11a16fa7c66e \
 "

The second one seems to be more complicated:

rk/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0=/usr/src/debug/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0`
| error: failed to run custom build command for `openssl-sys v0.9.75`
| 
| Caused by:
|   process didn't exit successfully: `/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/release/build/openssl-sys-f248bd7207f7c263/build-script-main` (exit status: 101)
|   --- stdout
|   cargo:rustc-cfg=const_fn
|   cargo:rerun-if-env-changed=ARM_POKY_LINUX_GNUEABI_OPENSSL_LIB_DIR
|   ARM_POKY_LINUX_GNUEABI_OPENSSL_LIB_DIR unset
|   cargo:rerun-if-env-changed=OPENSSL_LIB_DIR
|   OPENSSL_LIB_DIR unset
|   cargo:rerun-if-env-changed=ARM_POKY_LINUX_GNUEABI_OPENSSL_INCLUDE_DIR
|   ARM_POKY_LINUX_GNUEABI_OPENSSL_INCLUDE_DIR unset
|   cargo:rerun-if-env-changed=OPENSSL_INCLUDE_DIR
|   OPENSSL_INCLUDE_DIR unset
|   cargo:rerun-if-env-changed=ARM_POKY_LINUX_GNUEABI_OPENSSL_DIR
|   ARM_POKY_LINUX_GNUEABI_OPENSSL_DIR unset
|   cargo:rerun-if-env-changed=OPENSSL_DIR
|   OPENSSL_DIR unset
|   cargo:rerun-if-env-changed=OPENSSL_NO_PKG_CONFIG
|   cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS_arm-poky-linux-gnueabi
|   cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS_arm_poky_linux_gnueabi
|   cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_ALLOW_CROSS
|   cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS
|   cargo:rerun-if-env-changed=PKG_CONFIG_arm-poky-linux-gnueabi
|   cargo:rerun-if-env-changed=PKG_CONFIG_arm_poky_linux_gnueabi
|   cargo:rerun-if-env-changed=TARGET_PKG_CONFIG
|   cargo:rerun-if-env-changed=PKG_CONFIG
|   cargo:rerun-if-env-changed=OPENSSL_STATIC
|   cargo:rerun-if-env-changed=OPENSSL_DYNAMIC
|   cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
|   cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
|   cargo:rerun-if-env-changed=PKG_CONFIG_PATH_arm-poky-linux-gnueabi
|   cargo:rerun-if-env-changed=PKG_CONFIG_PATH_arm_poky_linux_gnueabi
|   cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_PATH
|   cargo:rerun-if-env-changed=PKG_CONFIG_PATH
|   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_arm-poky-linux-gnueabi
|   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_arm_poky_linux_gnueabi
|   cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_LIBDIR
|   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
|   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_arm-poky-linux-gnueabi
|   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_arm_poky_linux_gnueabi
|   cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_SYSROOT_DIR
|   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
|   run pkg_config fail: "`\"pkg-config\" \"--libs\" \"--cflags\" \"openssl\"` did not exit successfully: exit status: 1\nerror: could not find system library 'openssl' required by the 'openssl-sys' crate\n\n--- stderr\nPackage openssl was not found in the pkg-config search path.\nPerhaps you should add the directory containing `openssl.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'openssl' found\n"
| 
|   --- stderr
|   warning: target json file contains unused fields: has-elf-tls
| 
|   warning: target json file contains unused fields: has-elf-tls
| 
|   thread 'main' panicked at '
| 
|   Could not find directory of OpenSSL installation, and this `-sys` crate cannot
|   proceed without this knowledge. If OpenSSL is installed and this crate had
|   trouble finding it,  you can set the `OPENSSL_DIR` environment variable for the
|   compilation process.
| 
|   Make sure you also have the development packages of openssl installed.
|   For example, `libssl-dev` on Ubuntu or `openssl-devel` on Fedora.
| 
|   If you're in a situation where you think the directory *should* be found
|   automatically, please open a bug at https://github.com/sfackler/rust-openssl
|   and include information about your system as well as this message.
| 
|   $HOST = x86_64-linux
|   $TARGET = arm-poky-linux-gnueabi
|   openssl-sys = 0.9.75
| 
|   ', /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/cargo_home/bitbake/openssl-sys-0.9.75/build/find_normal.rs:191:5
|   stack backtrace:
|      0: rust_begin_unwind
|      1: core::panicking::panic_fmt
|      2: core::panicking::panic_display
|      3: build_script_main::find_normal::find_openssl_dir
|      4: build_script_main::find_normal::get_openssl::{{closure}}
|      5: core::option::Option<T>::unwrap_or_else
|      6: build_script_main::find_normal::get_openssl
|      7: build_script_main::find_openssl
|      8: build_script_main::main
|      9: core::ops::function::FnOnce::call_once
|   note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
| warning: build failed, waiting for other jobs to finish...
|     Building [==============>          ] 150/247: atty, futures-channel, mi...
| warning: `atty` (lib) generated 2 warnings (2 duplicates)
|     Building [==============>          ] 151/247: futures-channel, mio, tim...
| warning: `lock_api` (lib) generated 2 warnings (2 duplicates)
|     Building [==============>          ] 152/247: futures-channel, mio, tim...
| warning: `futures-channel` (lib) generated 2 warnings (2 duplicates)
|     Building [==============>          ] 153/247: mio, time, generic-array,...
| warning: `quote` (lib) generated 2 warnings (2 duplicates)
|     Building [==============>          ] 154/247: mio, time, generic-array,...
| warning: `parking_lot_core` (lib) generated 2 warnings (2 duplicates)
|     Building [==============>          ] 155/247: mio, time, generic-array,...
| warning: `num_cpus` (lib) generated 2 warnings (2 duplicates)
|     Building [==============>          ] 156/247: mio, time, generic-array,...
| warning: `time` (lib) generated 2 warnings (2 duplicates)
|     Building [==============>          ] 157/247: mio, generic-array, unico...
| warning: `mio` (lib) generated 2 warnings (2 duplicates)
|     Building [==============>          ] 158/247: generic-array, unicode-no...
| warning: `socket2` (lib) generated 2 warnings (2 duplicates)
|     Building [===============>         ] 159/247: generic-array, unicode-no...
| warning: `unicode-normalization` (lib) generated 2 warnings (2 duplicates)
|     Building [===============>         ] 160/247: generic-array
| warning: `generic-array` (lib) generated 2 warnings (2 duplicates)
| WARNING: exit code 101 from a shell command.
| ERROR: Execution of '/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/temp/run.do_compile.59076' failed with exit code 101
ERROR: Task (/home/yocto/build/../sources/meta-iotedge/recipes-core/aziotctl/aziotctl_1.4.1.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2820 tasks of which 2818 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/yocto/build/../sources/meta-iotedge/recipes-core/aziotctl/aziotctl_1.4.1.bb:do_compile

I am no rust expert. I am using an debian-based build container, libssl-dev is installed. I was able to build previous versions of meta-iotedge with the same container.

Anybody an idea?

@micahl
Copy link
Contributor

micahl commented Sep 28, 2022

Thanks for trying it out! @ggjjj is out for the next few days, but will resume upon returning.

@ggjjj
Copy link
Contributor Author

ggjjj commented Oct 3, 2022

I know it's still WIP, but if the meta-rust revision changes, please update it also in Readme.

Yes will do. Once I finalize the version is finalized

@ggjjj
Copy link
Contributor Author

ggjjj commented Oct 3, 2022

Hi,

thanks for your work, would be awesome if we get this to work!

I tried to build the feature branch (bitbake iotedge)and run into 2 issues: First one is solved with following change:

index 55712bd..987c7e5 100644
--- a/recipes-core/aziotctl/aziotctl_1.4.1.bb
+++ b/recipes-core/aziotctl/aziotctl_1.4.1.bb
@@ -239,8 +239,7 @@ SRC_URI += " \
 "
 
 LIC_FILES_CHKSUM=" \
-file://LICENSE;md5=0f7e3b1308cb5c00b372a6e78835732d \
-file://THIRDPARTYNOTICES;md5=11604c6170b98c376be25d0ca6989d9b \
+file://LICENSE;md5=4f9c2c296f77b3096b6c11a16fa7c66e \
 "

The second one seems to be more complicated:

rk/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0=/usr/src/debug/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0`
| error: failed to run custom build command for `openssl-sys v0.9.75`
| 
| Caused by:
|   process didn't exit successfully: `/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/release/build/openssl-sys-f248bd7207f7c263/build-script-main` (exit status: 101)
|   --- stdout
|   cargo:rustc-cfg=const_fn
|   cargo:rerun-if-env-changed=ARM_POKY_LINUX_GNUEABI_OPENSSL_LIB_DIR
|   ARM_POKY_LINUX_GNUEABI_OPENSSL_LIB_DIR unset
|   cargo:rerun-if-env-changed=OPENSSL_LIB_DIR
|   OPENSSL_LIB_DIR unset
|   cargo:rerun-if-env-changed=ARM_POKY_LINUX_GNUEABI_OPENSSL_INCLUDE_DIR
|   ARM_POKY_LINUX_GNUEABI_OPENSSL_INCLUDE_DIR unset
|   cargo:rerun-if-env-changed=OPENSSL_INCLUDE_DIR
|   OPENSSL_INCLUDE_DIR unset
|   cargo:rerun-if-env-changed=ARM_POKY_LINUX_GNUEABI_OPENSSL_DIR
|   ARM_POKY_LINUX_GNUEABI_OPENSSL_DIR unset
|   cargo:rerun-if-env-changed=OPENSSL_DIR
|   OPENSSL_DIR unset
|   cargo:rerun-if-env-changed=OPENSSL_NO_PKG_CONFIG
|   cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS_arm-poky-linux-gnueabi
|   cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS_arm_poky_linux_gnueabi
|   cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_ALLOW_CROSS
|   cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS
|   cargo:rerun-if-env-changed=PKG_CONFIG_arm-poky-linux-gnueabi
|   cargo:rerun-if-env-changed=PKG_CONFIG_arm_poky_linux_gnueabi
|   cargo:rerun-if-env-changed=TARGET_PKG_CONFIG
|   cargo:rerun-if-env-changed=PKG_CONFIG
|   cargo:rerun-if-env-changed=OPENSSL_STATIC
|   cargo:rerun-if-env-changed=OPENSSL_DYNAMIC
|   cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
|   cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
|   cargo:rerun-if-env-changed=PKG_CONFIG_PATH_arm-poky-linux-gnueabi
|   cargo:rerun-if-env-changed=PKG_CONFIG_PATH_arm_poky_linux_gnueabi
|   cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_PATH
|   cargo:rerun-if-env-changed=PKG_CONFIG_PATH
|   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_arm-poky-linux-gnueabi
|   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_arm_poky_linux_gnueabi
|   cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_LIBDIR
|   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
|   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_arm-poky-linux-gnueabi
|   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_arm_poky_linux_gnueabi
|   cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_SYSROOT_DIR
|   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
|   run pkg_config fail: "`\"pkg-config\" \"--libs\" \"--cflags\" \"openssl\"` did not exit successfully: exit status: 1\nerror: could not find system library 'openssl' required by the 'openssl-sys' crate\n\n--- stderr\nPackage openssl was not found in the pkg-config search path.\nPerhaps you should add the directory containing `openssl.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'openssl' found\n"
| 
|   --- stderr
|   warning: target json file contains unused fields: has-elf-tls
| 
|   warning: target json file contains unused fields: has-elf-tls
| 
|   thread 'main' panicked at '
| 
|   Could not find directory of OpenSSL installation, and this `-sys` crate cannot
|   proceed without this knowledge. If OpenSSL is installed and this crate had
|   trouble finding it,  you can set the `OPENSSL_DIR` environment variable for the
|   compilation process.
| 
|   Make sure you also have the development packages of openssl installed.
|   For example, `libssl-dev` on Ubuntu or `openssl-devel` on Fedora.
| 
|   If you're in a situation where you think the directory *should* be found
|   automatically, please open a bug at https://github.com/sfackler/rust-openssl
|   and include information about your system as well as this message.
| 
|   $HOST = x86_64-linux
|   $TARGET = arm-poky-linux-gnueabi
|   openssl-sys = 0.9.75
| 
|   ', /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/cargo_home/bitbake/openssl-sys-0.9.75/build/find_normal.rs:191:5
|   stack backtrace:
|      0: rust_begin_unwind
|      1: core::panicking::panic_fmt
|      2: core::panicking::panic_display
|      3: build_script_main::find_normal::find_openssl_dir
|      4: build_script_main::find_normal::get_openssl::{{closure}}
|      5: core::option::Option<T>::unwrap_or_else
|      6: build_script_main::find_normal::get_openssl
|      7: build_script_main::find_openssl
|      8: build_script_main::main
|      9: core::ops::function::FnOnce::call_once
|   note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
| warning: build failed, waiting for other jobs to finish...
|     Building [==============>          ] 150/247: atty, futures-channel, mi...
| warning: `atty` (lib) generated 2 warnings (2 duplicates)
|     Building [==============>          ] 151/247: futures-channel, mio, tim...
| warning: `lock_api` (lib) generated 2 warnings (2 duplicates)
|     Building [==============>          ] 152/247: futures-channel, mio, tim...
| warning: `futures-channel` (lib) generated 2 warnings (2 duplicates)
|     Building [==============>          ] 153/247: mio, time, generic-array,...
| warning: `quote` (lib) generated 2 warnings (2 duplicates)
|     Building [==============>          ] 154/247: mio, time, generic-array,...
| warning: `parking_lot_core` (lib) generated 2 warnings (2 duplicates)
|     Building [==============>          ] 155/247: mio, time, generic-array,...
| warning: `num_cpus` (lib) generated 2 warnings (2 duplicates)
|     Building [==============>          ] 156/247: mio, time, generic-array,...
| warning: `time` (lib) generated 2 warnings (2 duplicates)
|     Building [==============>          ] 157/247: mio, generic-array, unico...
| warning: `mio` (lib) generated 2 warnings (2 duplicates)
|     Building [==============>          ] 158/247: generic-array, unicode-no...
| warning: `socket2` (lib) generated 2 warnings (2 duplicates)
|     Building [===============>         ] 159/247: generic-array, unicode-no...
| warning: `unicode-normalization` (lib) generated 2 warnings (2 duplicates)
|     Building [===============>         ] 160/247: generic-array
| warning: `generic-array` (lib) generated 2 warnings (2 duplicates)
| WARNING: exit code 101 from a shell command.
| ERROR: Execution of '/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/temp/run.do_compile.59076' failed with exit code 101
ERROR: Task (/home/yocto/build/../sources/meta-iotedge/recipes-core/aziotctl/aziotctl_1.4.1.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2820 tasks of which 2818 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/yocto/build/../sources/meta-iotedge/recipes-core/aziotctl/aziotctl_1.4.1.bb:do_compile

I am no rust expert. I am using an debian-based build container, libssl-dev is installed. I was able to build previous versions of meta-iotedge with the same container.

Anybody an idea?

Thanks for trying it out. I had the same problem before my off. I suspect it to be openssl variable being unset and also the issue of missing the libtary "tssl2-sys". l am working on it and will update it here after resolution

@sindelar-fr
Copy link
Contributor

I remember being able to build something on the Rtone:dunfell branch (1.2.6 PR) patched to 1.4.0. (I wish I had more storage to go back and try to piece that back together...)
I have tried to satisfy the tssl2 needs using meta-security but got stuck on aziotd wanting libclang.so (I got clang from https://git.ostc-eu.org/distro/meta-clang.git just to try it).
TBH it feels like I'm pushing in the wrong direction.

@dvescovi1
Copy link

same pesky error here:
...
| cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-poky-linux
| cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_poky_linux
| cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_SYSROOT_DIR
| cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
| run pkg_config fail: "\"pkg-config\" \"--libs\" \"--cflags\" \"openssl\" did not exit successfully: exit status: 1\nerror: could not find system library 'openssl' required by the 'openssl-sys' crate\n\n--- stderr\nPackage openssl was not found in the pkg-config search path.\nPerhaps you should add the directory containing openssl.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'openssl' found\n" | | --- stderr | warning: target json file contains unused fields: has-elf-tls | | warning: target json file contains unused fields: has-elf-tls | | thread 'main' panicked at ' | | Could not find directory of OpenSSL installation, and this -syscrate cannot | proceed without this knowledge. If OpenSSL is installed and this crate had | trouble finding it, you can set theOPENSSL_DIRenvironment variable for the | compilation process. | | Make sure you also have the development packages of openssl installed. | For example,libssl-devon Ubuntu oropenssl-devel` on Fedora.
|
| If you're in a situation where you think the directory should be found
| automatically, please open a bug at https://github.com/sfackler/rust-openssl
| and include information about your system as well as this message.
|
| $HOST = x86_64-linux
| $TARGET = x86_64-poky-linux
| openssl-sys = 0.9.75
|
|

@dvescovi1
Copy link

seems to be making it a bit farther ... now getting:

| Running rustc --crate-name sysinfo /home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/cargo_home/bitbake/sysinfo-0.15.9/src/sysinfo.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type rlib --crate-type cdylib --emit=dep-info,link -C opt-level=3 -C panic=abort -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="multithread"' --cfg 'feature="rayon"' -C metadata=67e917cd86138302 -C extra-filename=-67e917cd86138302 --out-dir /home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps --target x86_64-poky-linux -C linker=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/wrapper/target-rust-ccld -L dependency=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps -L dependency=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/release/deps --extern cfg_if=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libcfg_if-cdb3de1afa39ebcd.rlib --extern doc_comment=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libdoc_comment-401cc0377e82ad28.rlib --extern libc=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/liblibc-1edd029836993098.rlib --extern once_cell=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libonce_cell-52505d2632caa419.rlib --extern rayon=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/librayon-bf2d61fe3a159bf9.rlib --cap-lints allow -L /home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/recipe-sysroot/usr/lib/rust --remap-path-prefix=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0=/usr/src/debug/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0
| error: the crate panic_abort does not have the panic strategy abort
|
| warning: proc-macro-error (lib) generated 2 warnings (2 duplicates)
| Building [==================> ] 189/248: nix, syn, clap, darling_c...
| warning: sysinfo (lib) generated 2 warnings (2 duplicates)
| error: could not compile sysinfo due to previous error; 2 warnings emitted
|

@sindelar-fr
Copy link
Contributor

sindelar-fr commented Oct 10, 2022

Please fix those license file checksums and remove pointers to missing THIRDPARTYNOTICES. It's pretty cumbersome to keep introducing local changes just to be able to build this...

@dvescovi1
Copy link

this project could use more love ;}

@cskowronnek
Copy link

@dvescovi1 Indeed, I'd assume there are some more Azure customers waiting for this not only the few of us here on Github

@ruben-sch
Copy link

I started a build and got this error:

|    Compiling futures v0.3.21
|      Running `rustc --crate-name futures --edition=2018 /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/cargo_home/bitbake/futures-0.3.21/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C panic=abort -C embed-bitcode=no --cfg 'feature="alloc"' --cfg 'feature="async-await"' --cfg 'feature="default"' --cfg 'feature="executor"' --cfg 'feature="futures-executor"' --cfg 'feature="std"' -C metadata=0d4e40d16a10161c -C extra-filename=-0d4e40d16a10161c --out-dir /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps --target arm-poky-linux-gnueabi -C linker=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/wrapper/target-rust-ccld -L dependency=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps -L dependency=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/release/deps --extern futures_channel=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps/libfutures_channel-c14ce93dc613ff44.rmeta --extern futures_core=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps/libfutures_core-4c017f3178c0abaa.rmeta --extern futures_executor=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps/libfutures_executor-3c231c262ebfe2ee.rmeta --extern futures_io=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps/libfutures_io-65e63c7731edd772.rmeta --extern futures_sink=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps/libfutures_sink-b4d01d586885fedb.rmeta --extern futures_task=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps/libfutures_task-16a63fc14ebf6741.rmeta --extern futures_util=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps/libfutures_util-e20fe7f4d8267f39.rmeta --cap-lints allow -L /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/recipe-sysroot/usr/lib/rust --remap-path-prefix=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0=/usr/src/debug/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0`
| warning: `futures` (lib) generated 2 warnings (2 duplicates)
|     Building [===================>     ] 205/247: rayon, futures-executor, ...
| warning: `futures-util` (lib) generated 2 warnings (2 duplicates)
|     Building [===================>     ] 206/247: rayon, futures-executor, ...
| warning: `futures-executor` (lib) generated 2 warnings (2 duplicates)
|     Building [===================>     ] 207/247: rayon, serde, openssl, tokio
| warning: `rayon` (lib) generated 2 warnings (2 duplicates)
|    Compiling sysinfo v0.15.9
|     Building [====================>    ] 208/247: sysinfo, serde, openssl, ...
|      Running `rustc --crate-name sysinfo /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/cargo_home/bitbake/sysinfo-0.15.9/src/sysinfo.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type rlib --crate-type cdylib --emit=dep-info,link -C opt-level=3 -C panic=abort -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="multithread"' --cfg 'feature="rayon"' -C metadata=3d0e3c485f152d18 -C extra-filename=-3d0e3c485f152d18 --out-dir /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps --target arm-poky-linux-gnueabi -C linker=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/wrapper/target-rust-ccld -L dependency=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps -L dependency=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/release/deps --extern cfg_if=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps/libcfg_if-a743adc69663b4c7.rlib --extern doc_comment=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps/libdoc_comment-6cb8dadf5ca4580b.rlib --extern libc=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps/liblibc-09da41c3940e1ce5.rlib --extern once_cell=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps/libonce_cell-f134ce77cbc8f2fb.rlib --extern rayon=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps/librayon-2baf4465c62111aa.rlib --cap-lints allow -L /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/recipe-sysroot/usr/lib/rust --remap-path-prefix=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0=/usr/src/debug/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0`
| error: the crate `panic_abort` does not have the panic strategy `abort`

@rust-experts: Is this a local problem on my build machine or something wrong in the recipe?

@dvescovi1
Copy link

dvescovi1 commented Oct 11, 2022

same error here too.
I saw this in the rust repo https://github.com/meta-rust/meta-rust/issues/343

@ggjjj
Copy link
Contributor Author

ggjjj commented Oct 11, 2022

I remember being able to build something on the Rtone:dunfell branch (1.2.6 PR) patched to 1.4.0. (I wish I had more storage to go back and try to piece that back together...) I have tried to satisfy the tssl2 needs using meta-security but got stuck on aziotd wanting libclang.so (I got clang from https://git.ostc-eu.org/distro/meta-clang.git just to try it). TBH it feels like I'm pushing in the wrong direction.

were you able to overcome the libclang error? I have the same issue and got the meta-clang from https://github.com/kraj/meta-clang/blob/master/README.md @sindelar-fr

@ggjjj
Copy link
Contributor Author

ggjjj commented Oct 11, 2022

Please fix those license file checksums and remove pointers to missing THIRDPARTYNOTICES. It's pretty cumbersome to keep introducing local changes just to be able to build this...

fixed both.

@ggjjj
Copy link
Contributor Author

ggjjj commented Oct 11, 2022

seems to be making it a bit farther ... now getting:

| Running rustc --crate-name sysinfo /home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/cargo_home/bitbake/sysinfo-0.15.9/src/sysinfo.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type rlib --crate-type cdylib --emit=dep-info,link -C opt-level=3 -C panic=abort -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="multithread"' --cfg 'feature="rayon"' -C metadata=67e917cd86138302 -C extra-filename=-67e917cd86138302 --out-dir /home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps --target x86_64-poky-linux -C linker=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/wrapper/target-rust-ccld -L dependency=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps -L dependency=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/release/deps --extern cfg_if=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libcfg_if-cdb3de1afa39ebcd.rlib --extern doc_comment=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libdoc_comment-401cc0377e82ad28.rlib --extern libc=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/liblibc-1edd029836993098.rlib --extern once_cell=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libonce_cell-52505d2632caa419.rlib --extern rayon=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/librayon-bf2d61fe3a159bf9.rlib --cap-lints allow -L /home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/recipe-sysroot/usr/lib/rust --remap-path-prefix=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0=/usr/src/debug/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0 | error: the crate panic_abort does not have the panic strategy abort | | warning: proc-macro-error (lib) generated 2 warnings (2 duplicates) | Building [==================> ] 189/248: nix, syn, clap, darling_c... | warning: sysinfo (lib) generated 2 warnings (2 duplicates) | error: could not compile sysinfo due to previous error; 2 warnings emitted |

openssl issue should be fixed now

@ggjjj
Copy link
Contributor Author

ggjjj commented Oct 11, 2022

@dvescovi1 Indeed, I'd assume there are some more Azure customers waiting for this not only the few of us here on Github

we are doing our best to get this recipe asap. Appreciate your patience so far

@ggjjj
Copy link
Contributor Author

ggjjj commented Oct 12, 2022

I started a build and got this error:

|    Compiling futures v0.3.21
|      Running `rustc --crate-name futures --edition=2018 /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/cargo_home/bitbake/futures-0.3.21/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C panic=abort -C embed-bitcode=no --cfg 'feature="alloc"' --cfg 'feature="async-await"' --cfg 'feature="default"' --cfg 'feature="executor"' --cfg 'feature="futures-executor"' --cfg 'feature="std"' -C metadata=0d4e40d16a10161c -C extra-filename=-0d4e40d16a10161c --out-dir /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps --target arm-poky-linux-gnueabi -C linker=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/wrapper/target-rust-ccld -L dependency=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps -L dependency=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/release/deps --extern futures_channel=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps/libfutures_channel-c14ce93dc613ff44.rmeta --extern futures_core=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps/libfutures_core-4c017f3178c0abaa.rmeta --extern futures_executor=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps/libfutures_executor-3c231c262ebfe2ee.rmeta --extern futures_io=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps/libfutures_io-65e63c7731edd772.rmeta --extern futures_sink=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps/libfutures_sink-b4d01d586885fedb.rmeta --extern futures_task=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps/libfutures_task-16a63fc14ebf6741.rmeta --extern futures_util=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps/libfutures_util-e20fe7f4d8267f39.rmeta --cap-lints allow -L /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/recipe-sysroot/usr/lib/rust --remap-path-prefix=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0=/usr/src/debug/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0`
| warning: `futures` (lib) generated 2 warnings (2 duplicates)
|     Building [===================>     ] 205/247: rayon, futures-executor, ...
| warning: `futures-util` (lib) generated 2 warnings (2 duplicates)
|     Building [===================>     ] 206/247: rayon, futures-executor, ...
| warning: `futures-executor` (lib) generated 2 warnings (2 duplicates)
|     Building [===================>     ] 207/247: rayon, serde, openssl, tokio
| warning: `rayon` (lib) generated 2 warnings (2 duplicates)
|    Compiling sysinfo v0.15.9
|     Building [====================>    ] 208/247: sysinfo, serde, openssl, ...
|      Running `rustc --crate-name sysinfo /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/cargo_home/bitbake/sysinfo-0.15.9/src/sysinfo.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type rlib --crate-type cdylib --emit=dep-info,link -C opt-level=3 -C panic=abort -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="multithread"' --cfg 'feature="rayon"' -C metadata=3d0e3c485f152d18 -C extra-filename=-3d0e3c485f152d18 --out-dir /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps --target arm-poky-linux-gnueabi -C linker=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/wrapper/target-rust-ccld -L dependency=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps -L dependency=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/release/deps --extern cfg_if=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps/libcfg_if-a743adc69663b4c7.rlib --extern doc_comment=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps/libdoc_comment-6cb8dadf5ca4580b.rlib --extern libc=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps/liblibc-09da41c3940e1ce5.rlib --extern once_cell=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps/libonce_cell-f134ce77cbc8f2fb.rlib --extern rayon=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/arm-poky-linux-gnueabi/release/deps/librayon-2baf4465c62111aa.rlib --cap-lints allow -L /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/recipe-sysroot/usr/lib/rust --remap-path-prefix=/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0=/usr/src/debug/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0`
| error: the crate `panic_abort` does not have the panic strategy `abort`

@rust-experts: Is this a local problem on my build machine or something wrong in the recipe?

this is a known issue. meta-rust/meta-rust#343 I used the solution proposed to fix the issue by using the RUST_PANIC_STRATEGY set to "abort"

@ggjjj
Copy link
Contributor Author

ggjjj commented Oct 12, 2022

seems to be making it a bit farther ... now getting:

| Running rustc --crate-name sysinfo /home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/cargo_home/bitbake/sysinfo-0.15.9/src/sysinfo.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type rlib --crate-type cdylib --emit=dep-info,link -C opt-level=3 -C panic=abort -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="multithread"' --cfg 'feature="rayon"' -C metadata=67e917cd86138302 -C extra-filename=-67e917cd86138302 --out-dir /home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps --target x86_64-poky-linux -C linker=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/wrapper/target-rust-ccld -L dependency=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps -L dependency=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/release/deps --extern cfg_if=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libcfg_if-cdb3de1afa39ebcd.rlib --extern doc_comment=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libdoc_comment-401cc0377e82ad28.rlib --extern libc=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/liblibc-1edd029836993098.rlib --extern once_cell=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libonce_cell-52505d2632caa419.rlib --extern rayon=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/librayon-bf2d61fe3a159bf9.rlib --cap-lints allow -L /home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/recipe-sysroot/usr/lib/rust --remap-path-prefix=/home/david/yocto/dunfell/var-fslc-yocto/build_x86/tmp/work/core2-64-poky-linux/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0=/usr/src/debug/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0 | error: the crate panic_abort does not have the panic strategy abort | | warning: proc-macro-error (lib) generated 2 warnings (2 duplicates) | Building [==================> ] 189/248: nix, syn, clap, darling_c... | warning: sysinfo (lib) generated 2 warnings (2 duplicates) | error: could not compile sysinfo due to previous error; 2 warnings emitted |

updated the RUST version to 1.64 to overcome this issue along with the panic strategy mentioned previously

@ruben-sch
Copy link

Hi,

still license issues:

NOTE: recipe aziotd-1.4.1.AUTOINC+f349b64d3b-r0: task do_unpack: Succeeded
WARNING: aziotctl-1.4.1.AUTOINC+f349b64d3b-r0 do_populate_lic: Could not copy license file /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/git/../LICENSE to /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/license-destdir/aziotctl/LICENSE: [Errno 2] No such file or directory: '/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/git/../LICENSE'
NOTE: Running task 3295 of 8858 (/home/yocto/build/../sources/meta-iotedge/recipes-core/aziotd/aziotd_1.4.1.bb:do_patch)
ERROR: aziotctl-1.4.1.AUTOINC+f349b64d3b-r0 do_populate_lic: QA Issue: aziotctl: LIC_FILES_CHKSUM points to an invalid file: /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/git/../LICENSE [license-checksum]
ERROR: aziotctl-1.4.1.AUTOINC+f349b64d3b-r0 do_populate_lic: Fatal QA errors found, failing task.
ERROR: Logfile of failure stored in: /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/aziotctl/1.4.1.AUTOINC+f349b64d3b-r0/temp/log.do_populate_lic.9126
ERROR: Task (/home/yocto/build/../sources/meta-iotedge/recipes-core/aziotctl/aziotctl_1.4.1.bb:do_populate_lic) failed with exit code '1'

@dvescovi1
Copy link

I was using the build.sh script to build in container.
making it quite a ways but getting this error now:

| cargo:rustc-link-search=native=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/recipe-sysroot/usr/lib | cargo:rustc-link-lib=tss2-rc | cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-poky-linux | cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_poky_linux | cargo:rerun-if-env-changed=TARGET_PKG_CONFIG | cargo:rerun-if-env-changed=PKG_CONFIG | cargo:rerun-if-env-changed=TSS2_RC_STATIC | cargo:rerun-if-env-changed=TSS2_RC_DYNAMIC | cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC | cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC | cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-poky-linux | cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_poky_linux | cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_PATH | cargo:rerun-if-env-changed=PKG_CONFIG_PATH | cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-poky-linux | cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_poky_linux | cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_LIBDIR | cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR | cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-poky-linux | cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_poky_linux | cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_SYSROOT_DIR | cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR | cargo:rustc-link-lib=tss2-rc | cargo:rustc-link-search=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/recipe-sysroot/usr/lib | | --- stderr | thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['libclang.so', 'libclang-*.so', 'libclang.so.*', 'libclang-*.so.*'], set the LIBCLANG_PATHenvironment variable to a path where one of these files can be found (invalid: [])"', /var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/cargo_home/bitbake/bindgen-0.60.1/src/lib.rs:2172:31 | stack backtrace: | note: Some details are omitted, run withRUST_BACKTRACE=fullfor a verbose backtrace. | Building [====================> ] 243/277: hyper, types-sys(build), ... | error: failed to run custom build command fortypes-sys v0.1.0 (/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/git/tpm/tss-minimal/types-sys)| | Caused by: | process didn't exit successfully:/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/release/build/types-sys-1abe882243ecf085/build-script-build (signal: 6, SIGABRT: process abort signal) | --- stdout | cargo:rerun-if-changed=wrapper.h.in | cargo:rerun-if-changed=const_define.sh | cargo:rerun-if-env-changed=VENDOR_PREFIX | cargo:rerun-if-env-changed=VENDOR_PKGCONFIG |

I guess this has to do with the clang compiler. I can bitbake the clang package OK but not sure what else needs to be done.
I see the clang added to the aziotd.inc file DEPENDS but suspect something else is missing.

@dvescovi1
Copy link

I added:
TOOLCHAIN = "clang"
to the aziotd.inc and it seems to get farther ... now:

.AUTOINC+f349b64d3b-r0
| Building [======================> ] 265/277: mu-sys, esys-sys(build), ...
| Running rustc --crate-name aziot_certd_config --edition=2021 cert/aziot-certd-config/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C panic=abort -C embed-bitcode=no -C metadata=762205168f8dfa9c -C extra-filename=-762205168f8dfa9c --out-dir /var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps --target x86_64-poky-linux -C linker=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/wrapper/target-rust-ccld -L dependency=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps -L dependency=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/release/deps --extern cert_renewal=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libcert_renewal-72af6973a79a5b57.rmeta --extern hex=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libhex-7063f5a3e599f428.rmeta --extern http_common=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libhttp_common-9a7af1fcf01489f1.rmeta --extern libc=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/liblibc-f36d590191d59b37.rmeta --extern openssl=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libopenssl-e9508c8d48f8ffab.rmeta --extern serde=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libserde-3b6ea1f9536bd8dd.rmeta --extern serde_with=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libserde_with-0e5409a06883cdca.rmeta --extern url=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/liburl-982e16d2dce6ca53.rmeta -L /var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/recipe-sysroot/usr/lib/rust --remap-path-prefix=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0=/usr/src/debug/aziotd/1.4.1.AUTOINC+f349b64d3b-r0
| warning: mu-sys (lib) generated 2 warnings (2 duplicates)
| Building [=======================> ] 266/277: esys-sys(build), aziot-ce...
| error: couldn't read key/aziot-keyd/src/keys.generated.rs: No such file or directory (os error 2)
| --> key/aziot-keyd/src/keys.rs:1186:5
| |
| 1186 | include!("keys.generated.rs");
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| = note: this error originates in the macro include (in Nightly builds, run with -Z macro-backtrace for more info)
|
| warning: aziot-keyd (lib) generated 2 warnings (2 duplicates)
| error: could not compile aziot-keyd due to previous error; 2 warnings emitted
|
| Caused by:
| process didn't exit successfully: rustc --crate-name aziot_keyd --edition=2021 key/aziot-keyd/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C panic=abort -C embed-bitcode=no -C metadata=bd2a1feb382d536f -C extra-filename=-bd2a1feb382d536f --out-dir /var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps --target x86_64-poky-linux -C linker=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/wrapper/target-rust-ccld -L dependency=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps -L dependency=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/release/deps --extern async_trait=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/release/deps/libasync_trait-7aeb8c2742382478.so --extern aziot_key_common=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libaziot_key_common-a6672454f66b60cc.rmeta --extern aziot_key_common_http=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libaziot_key_common_http-ed53787def7f07cd.rmeta --extern aziot_keyd_config=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libaziot_keyd_config-1ecc734428a66422.rmeta --extern base64=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libbase64-80a5327b79042c8a.rmeta --extern config_common=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libconfig_common-111d2adb4b5ccdec.rmeta --extern futures_util=/var/build/b

@sindelar-fr
Copy link
Contributor

Just out of curiosity ... what platforms are you compiling it for? My TARGET_SYS is arm-poky-linux-gnueabi.

@dvescovi1
Copy link

Just out of curiosity ... what platforms are you compiling it for? My TARGET_SYS is arm-poky-linux-gnueabi.

initially qemux86-64 but eventually ARM64 but from what I understand that might also be an issue.

@maskimthedog
Copy link

I added: TOOLCHAIN = "clang" to the aziotd.inc and it seems to get farther ... now:

.AUTOINC+f349b64d3b-r0 | Building [======================> ] 265/277: mu-sys, esys-sys(build), ... | Running rustc --crate-name aziot_certd_config --edition=2021 cert/aziot-certd-config/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C panic=abort -C embed-bitcode=no -C metadata=762205168f8dfa9c -C extra-filename=-762205168f8dfa9c --out-dir /var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps --target x86_64-poky-linux -C linker=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/wrapper/target-rust-ccld -L dependency=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps -L dependency=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/release/deps --extern cert_renewal=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libcert_renewal-72af6973a79a5b57.rmeta --extern hex=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libhex-7063f5a3e599f428.rmeta --extern http_common=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libhttp_common-9a7af1fcf01489f1.rmeta --extern libc=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/liblibc-f36d590191d59b37.rmeta --extern openssl=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libopenssl-e9508c8d48f8ffab.rmeta --extern serde=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libserde-3b6ea1f9536bd8dd.rmeta --extern serde_with=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libserde_with-0e5409a06883cdca.rmeta --extern url=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/liburl-982e16d2dce6ca53.rmeta -L /var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/recipe-sysroot/usr/lib/rust --remap-path-prefix=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0=/usr/src/debug/aziotd/1.4.1.AUTOINC+f349b64d3b-r0 | warning: mu-sys (lib) generated 2 warnings (2 duplicates) | Building [=======================> ] 266/277: esys-sys(build), aziot-ce... | error: couldn't read key/aziot-keyd/src/keys.generated.rs: No such file or directory (os error 2) | --> key/aziot-keyd/src/keys.rs:1186:5 | | | 1186 | include!("keys.generated.rs"); | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | = note: this error originates in the macro include (in Nightly builds, run with -Z macro-backtrace for more info) | | warning: aziot-keyd (lib) generated 2 warnings (2 duplicates) | error: could not compile aziot-keyd due to previous error; 2 warnings emitted | | Caused by: | process didn't exit successfully: rustc --crate-name aziot_keyd --edition=2021 key/aziot-keyd/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C panic=abort -C embed-bitcode=no -C metadata=bd2a1feb382d536f -C extra-filename=-bd2a1feb382d536f --out-dir /var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps --target x86_64-poky-linux -C linker=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/wrapper/target-rust-ccld -L dependency=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps -L dependency=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/release/deps --extern async_trait=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/release/deps/libasync_trait-7aeb8c2742382478.so --extern aziot_key_common=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libaziot_key_common-a6672454f66b60cc.rmeta --extern aziot_key_common_http=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libaziot_key_common_http-ed53787def7f07cd.rmeta --extern aziot_keyd_config=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libaziot_keyd_config-1ecc734428a66422.rmeta --extern base64=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libbase64-80a5327b79042c8a.rmeta --extern config_common=/var/build/build/tmp/work/core2-64-poky-linux/aziotd/1.4.1.AUTOINC+f349b64d3b-r0/build/target/x86_64-poky-linux/release/deps/libconfig_common-111d2adb4b5ccdec.rmeta --extern futures_util=/var/build/b

Does not work for me...still complains about missing libclang on hardknott.

@dvescovi1
Copy link

What does this yield?

systemctl status aziot-edged:

azio-edged.txt

@dvescovi1
Copy link

I think you mean systemctl status aziot-tpmd ... not aziot-tmpd
aziot-tpmd.txt

@dvescovi1
Copy link

dvescovi1 commented Nov 23, 2022

seems to be working now.
Did indeed need to trigger a redeploy of agent/hub from Azure portal.
Then hub module was pulled and started ok.

I noticed I also had to do the same thing when IOT Edge set up the same way using official Debian 11 bullseye ARM64 RPI4 release w/TPM usings MS release packages.

@Granjow
Copy link

Granjow commented Nov 23, 2022

I added links I found helpful for migration in #95. Anything to add?

@maskimthedog
Copy link

Seems like an IoT Edge Runtime bug to me.

@Azure Azure deleted a comment from maskimthedog Nov 23, 2022
@Azure Azure deleted a comment from maskimthedog Nov 23, 2022
@maskimthedog
Copy link

seems to be working now. Did indeed need to trigger a redeploy of agent/hub from Azure portal. Then hub module was pulled and started ok.

I noticed I also had to do the same thing when IOT Edge set up the same way using official Debian 11 bullseye ARM64 RPI4 release w/TPM usings MS release packages.

@ggjjj @micahl @dvescovi1 Does this validate TPM path then?

@ggjjj ggjjj force-pushed the ggjjj/support-for-1.4 branch from b52d238 to e949fbd Compare November 28, 2022 18:21
@ggjjj ggjjj requested a review from micahl November 28, 2022 18:24
@ggjjj ggjjj marked this pull request as ready for review November 28, 2022 18:25
@ggjjj ggjjj requested a review from damonbarry November 28, 2022 18:26
@micahl
Copy link
Contributor

micahl commented Nov 28, 2022

I can see the edge agent module downloaded and running but no hub module. docker images only shows agent ... no hub also. The DPS enrollment status still shows: Status: assigned

The hub on Azure portal shows a new device allocated with the ID of the registerion key but Runtime Response shows NA

@dvescovi1 thank you for reporting your results! That sounds like an issue we recently fixed in edgeAgent.
Azure/iotedge@e43cdc9

We're planning to merge these changes for the 1.4.2 as we know folks are waiting on it. We'll separately look to update the recipes for the most recent 1.4.3 that went out last week. We plan to use that as an opportunity to see what steps we'd need to take to automate the process further so that on future patch releases the recipe updates are easier.

@micahl
Copy link
Contributor

micahl commented Nov 28, 2022

Does this validate TPM path then?

@maskimthedog yes, I believe so.

@micahl
Copy link
Contributor

micahl commented Nov 28, 2022

seems to be working now. Did indeed need to trigger a redeploy of agent/hub from Azure portal. Then hub module was pulled and started ok.

I noticed I also had to do the same thing when IOT Edge set up the same way using official Debian 11 bullseye ARM64 RPI4 release w/TPM usings MS release packages.

I don't know off hand why the redeploy would be needed. Consider opening a github issue on the main iotedge repo for this as it doesn't sound specific to one OS or the other.

@ggjjj ggjjj merged commit 1cbadf8 into dunfell Nov 28, 2022
@ggjjj ggjjj deleted the ggjjj/support-for-1.4 branch December 5, 2022 18:39
ggjjj added a commit that referenced this pull request Dec 6, 2022
* Add thud support (#19)

* Initial thud support

* Tweak the recipes and remove invalid items

* Make layer thud only

* Update README for Thud

* Update source mirrors for thud

* Update build branch to thud

* Add master back

* Remove source rev

* Update to 1.0.8 (#25)

* Update to 1.0.8

* Set libiothsm no build in iotedge-cli

* Update to 1.0.9.4 for Thud (#40)

* Update to 1.0.9.4 for Thud

* Update third party notices md5sum

* Pin meta-rust commit version

* iotedge-cli RDEPENDS on libiothsm

* Add build dependency on libiothsm

* Update for dunfell (#43)

* Update for dunfell

* Use newer version of the rust compiler

* RDEPENDS on docker not virtual/docker

Remove unused recipes

* Disable libgit2 for cargo

Without this fix the build leads to an error : "invalid version 3 on git_proxy_options; class=Invalid (3)"

* Update Dunfell branch to LTS (1.1.3) (#65)

* Add 1.1.3 bitbake files.

* Update sums for iotedge project file.

* Fix daemon description.

* Rmove extraneous comments.

* TGZ package structure is a little different.
Fix includes in the bitbake file.

* Fix license path

* Fix install paths.

* More clearly mark generated section.

* Update README.md (#66)

Readme.md: Match the meta-rust layer revision from builds/checkin.yaml

* We probably don't need to set CARGO_SRC_DIR (#68)

* Update dunfell branch to 1.1.6 (#70)

* Update dunfell branch to 1.1.6

* Update Dunfell branch to IoT Edge version 1.1.8 (#73)

* Update Dunfell branch to IoT Edge version 1.1.8

* Use a newer container for Yocto builds.
Make some script changes due to difference in the containers.

* Update the MD5 hash for THIRDPARTYNOTICES.

* changed git fetch from nobranch/AUTOREV to main branch (#79)

* changed from nobranch/AUTOREV to main branch

This fixes a recent bug introduced over the weekend which results in a bitbake expansion error. 
Specifically the error is the following,
Fetcher failure: Unable to resolve 'master' in upstream git repository in git ls-remote output for github.com/Azure/hyperlocal-windows

* nobranch/AUTOREV to main branch in iotedge-daemon

This fixes a recent bug introduced over the weekend which results in a bitbake expansion error. 
Specifically the error is the following,
Fetcher failure: Unable to resolve 'master' in upstream git repository in git ls-remote output for github.com/Azure/hyperlocal-windows

* Update dunfell to 1.1.11 (#82)

* Update dunfell to 1.1.11

* Update recipes to 1.1.15 (#85)

Update the following recipe components to 1.1.15: 
- iotedge-cli
- iotedge-daemon
- libiothsm

* Use 1ES agent for Checkin gate (#89)

Previously the pipeline was run on the self-hosting pool, the ECSS team has mandate the self-hosting pools need to be retired in favor of the 1ES pools. This PR updates the checkin gate test agent to be running on 1ES VM instead of self-hosting VM.

* Yocto Dunfell Recipe for Edge 1.4 (#90)

* Draft Recipe for 1.4 IoT Edge

* Add Panic strategy to unwind

* Update receipes to 1.4.2

* TPM provsioning support and update dependencies

* Update recipes to fix bug and Update documentation

* Update README.md (#96)

* Update Iotedge recipes to 1.4.4

* refactor

* Update README.md

* 1.4.4 changes

* refactor

* Update iotedge_1.4.4.bb

Co-authored-by: Mike Yagley <[email protected]>
Co-authored-by: David Robson <[email protected]>
Co-authored-by: František Šindelář <[email protected]>
Co-authored-by: donofan0 <[email protected]>
Co-authored-by: yophilav <[email protected]>
Co-authored-by: Micah Lewis <[email protected]>
@micahl
Copy link
Contributor

micahl commented Dec 14, 2022

@pierrickcurt, @maskimthedog, @Granjow, @sindelar-fr, @dvescovi1, @rschwarz-sotec, and @ElD4n1 let me know if there are errors in the credits: General availability: Yocto recipes for IoT Edge 1.4 LTS

@Granjow
Copy link

Granjow commented Dec 14, 2022

Thanks! I worked on it for Bühler, if you want to add a link.

@maskimthedog
Copy link

maskimthedog commented Dec 14, 2022 via email

@maskimthedog
Copy link

maskimthedog commented Dec 14, 2022 via email

@micahl
Copy link
Contributor

micahl commented Dec 14, 2022

Thanks! I worked on it for Bühler, if you want to add a link.

Ok, will try to get it updated before the editors for the Azure updates blog put a freeze on things before the holiday.

@sindelar-fr
Copy link
Contributor

Thanks! I worked on it for Y Soft if you want to link it too.

@pierrickcurt
Copy link

@pierrickcurt, @maskimthedog, @Granjow, @sindelar-fr, @dvescovi1, @rschwarz-sotec, and @ElD4n1 let me know if there are errors in the credits: General availability: Yocto recipes for IoT Edge 1.4 LTS

Perfect, thanks for this credit !

@micahl
Copy link
Contributor

micahl commented Dec 14, 2022

Was able to squeeze in an update that should be live now.

@maskimthedog
Copy link

maskimthedog commented Dec 14, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.