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

ERROR: aziotctl-1.4.7.AUTOINC+91e058880c-r0 do_install: kirkstone meta-iotedge #161

Open
davidcodesido opened this issue Apr 23, 2024 · 7 comments

Comments

@davidcodesido
Copy link

davidcodesido commented Apr 23, 2024

Describe the bug

I'm getting an error while building azure meta-iotedge for a kirkstone image.

ERROR: aziotctl-1.4.7.AUTOINC+91e058880c-r0 do_install: ExecutionError('/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.7.AUTOINC+91e058880c-r0/temp/run.do_install.2491067', 1, None, None)
ERROR: Logfile of failure stored in: /mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.7.AUTOINC+91e058880c-r0/temp/log.do_install.2491067

To Reproduce

Build with the following local.conf and bblayers.conf

POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
  /mnt/storage/yocto/kirkstone/poky/meta \
  /mnt/storage/yocto/kirkstone/poky/meta-poky \
  /mnt/storage/yocto/kirkstone/poky/meta-yocto-bsp \
  /mnt/storage/yocto/kirkstone/meta-openembedded/meta-oe \
  /mnt/storage/yocto/kirkstone/meta-openembedded/meta-multimedia \
  /mnt/storage/yocto/kirkstone/meta-openembedded/meta-networking \
  /mnt/storage/yocto/kirkstone/meta-openembedded/meta-python \
  /mnt/storage/yocto/kirkstone/meta-raspberrypi \
  /mnt/storage/yocto/kirkstone/meta-openembedded/meta-filesystems \
  /mnt/storage/yocto/kirkstone/meta-virtualization \
  /mnt/storage/yocto/kirkstone/meta-openembedded/meta-gnome \
  /mnt/storage/yocto/kirkstone/meta-openembedded/meta-xfce \
  /mnt/storage/yocto/kirkstone/meta-clang \
  /mnt/storage/yocto/kirkstone/meta-lts-mixins \
  /mnt/storage/yocto/kirkstone/meta-rust \
  /mnt/storage/yocto/kirkstone/meta-iotedge \
  /mnt/storage/yocto/kirkstone/meta-swupdate \
  /mnt/storage/yocto/kirkstone/meta-iot-hub-device-update-delta \
  /mnt/storage/yocto/kirkstone/meta-azure-device-update \
  /mnt/storage/yocto/kirkstone/meta-openembedded/meta-perl \
  /mnt/storage/yocto/kirkstone/meta-security/meta-tpm \
  /mnt/storage/yocto/kirkstone/meta-browser/meta-chromium \
  /mnt/storage/yocto/kirkstone/meta-kiosk \
  "
MACHINE ??= "raspberrypi4"

DL_DIR ?= "/mnt/storage/yocto/scarthgap/downloads"

EXTRA_IMAGE_FEATURES ?= "debug-tweaks"

USER_CLASSES ?= "buildstats"

PATCHRESOLVE = "noop"

BB_DISKMON_DIRS ??= "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    HALT,${TMPDIR},100M,1K \
    HALT,${DL_DIR},100M,1K \
    HALT,${SSTATE_DIR},100M,1K \
    HALT,/tmp,10M,1K"

CONF_VERSION = "2"

BBMASK += "poky/meta/recipes-devtools/rust"
BBMASK += "poky/meta/recipes-devtools/cargo"

PREFERRED_PROVIDER_virtual/docker = "docker-moby"
LICENSE_FLAGS_ACCEPTED = "synaptics-killswitch"
IMAGE_FEATURES += "ssh-server-dropbear"
BBMASK += "poky/meta/recipes-devtools/rust"
BBMASK += "poky/meta/recipes-devtools/cargo"
DISTRO_FEATURES:append = " systemd usrmerge virtualization raspberrypi xfce "
DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
IMAGE_INSTALL:append = " chromium-ozone-wayland docker-moby "
IMAGE_FEATURES:append = " x11-base hwcodecs ssh-server-dropbear splash "
IMAGE_INSTALL:append = " packagegroup-core-boot packagegroup-core-x11  packagegroup-xfce-base  kernel-modules azure-device-update iotedge aziotd aziot-keys "

Expected behavior
An image with iotedge and all the suite needed inside.

Logs

Loading cache: 100% |    
| ETA:  --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################################################################################################################################################################################################################################################################################################################| Time: 0:00:44
Parsing of 3111 .bb files complete (0 cached, 3111 parsed). 4672 targets, 201 skipped, 50 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "2.0.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "raspberrypi4"
DISTRO               = "poky"
DISTRO_VERSION       = "4.0.17"
TUNE_FEATURES        = "arm vfp cortexa7 neon vfpv4 thumb callconvention-hard"
TARGET_FPU           = "hard"
meta
meta-poky
meta-yocto-bsp       = "kirkstone:1e0d58c53b7d9c3feb631e46666ae7a3e3614253"
meta-oe
meta-multimedia
meta-networking
meta-python          = "kirkstone:8bb16533532b6abc2eded7d9961ab2a108fd7a5b"
meta-raspberrypi     = "kirkstone:9dc6673d41044f1174551120ce63501421dbcd85"
meta-filesystems     = "kirkstone:8bb16533532b6abc2eded7d9961ab2a108fd7a5b"
meta-virtualization  = "kirkstone:cb2bc17e96552cdfc141d27bd9f4dbd95a872846"
meta-gnome
meta-xfce            = "kirkstone:8bb16533532b6abc2eded7d9961ab2a108fd7a5b"
meta-clang           = "kirkstone:312ff1c39b1bf5d35c0321e873417eb013cea477"
meta-lts-mixins      = "kirkstone/rust-1.70:1a4a2bb94f115ba240adbe53280f8ef71f5739d0"
meta-rust            = "master:9611b42d73c7546c3d845da380943a0a4f4205f0"
meta-iotedge         = "main:6518416d7a3ee5260f5fb879216df35ee3115a4d"
meta-swupdate        = "kirkstone:f6e6e0f50366877f7988defdb9ba61a9ac9280e3"
meta-iot-hub-device-update-delta = "kirkstone:95e036e912f823f1da6bbbfa21b2d1db06700c5f"
meta-azure-device-update = "kirkstone:38aa08e8849dc199eb73139f53540d979b1b8664"
meta-perl            = "kirkstone:8bb16533532b6abc2eded7d9961ab2a108fd7a5b"
meta-tpm             = "kirkstone:1a3e42cedbd94ca73be45800d0e902fec35d0f0f"
meta-chromium        = "kirkstone:40ebd7f5088f75560b3a2032e48e614d0428b022"
meta-kiosk           = "<unknown>:<unknown>"

Initialising tasks: 100% |###################################################################################################################################################################################################################################################################################################################################################################################################| Time: 0:00:05
Sstate summary: Wanted 202 Local 1 Mirrors 0 Missed 201 Current 2819 (0% match, 93% complete)
Removing 2 stale sstate objects for arch raspberrypi4: 100% |################################################################################################################################################################################################################################################################################################################################################################| Time: 0:00:00
NOTE: Executing Tasks
ERROR: aziotctl-1.4.7.AUTOINC+91e058880c-r0 do_install: ExecutionError('/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.7.AUTOINC+91e058880c-r0/temp/run.do_install.2491067', 1, None, None)
ERROR: Logfile of failure stored in: /mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.7.AUTOINC+91e058880c-r0/temp/log.do_install.2491067
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/mnt/storage/yocto/kirkstone/meta-lts-mixins/recipes-devtools/rust/libstd-rs_1.70.0.bb:do_populate_sysroot', '/mnt/storage/yocto/kirkstone/meta-virtualization/recipes-containers/docker/docker-moby_git.bb:do_populate_sysroot', '/mnt/storage/yocto/kirkstone/poky/meta/recipes-connectivity/openssl/openssl_3.0.13.bb:do_populate_sysroot', '/mnt/storage/yocto/kirkstone/poky/meta/recipes-core/glibc/glibc_2.35.bb:do_populate_sysroot', '/mnt/storage/yocto/kirkstone/poky/meta/recipes-devtools/gcc/gcc-cross_11.4.bb:do_populate_sysroot', '/mnt/storage/yocto/kirkstone/poky/meta/recipes-devtools/gcc/gcc-runtime_11.4.bb:do_populate_sysroot', '/mnt/storage/yocto/kirkstone/poky/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot', 'virtual:native:/mnt/storage/yocto/kirkstone/meta-lts-mixins/recipes-devtools/rust/cargo_1.70.0.bb:do_populate_sysroot', 'virtual:native:/mnt/storage/yocto/kirkstone/meta-lts-mixins/recipes-devtools/rust/rust_1.70.0.bb:do_populate_sysroot', 'virtual:native:/mnt/storage/yocto/kirkstone/poky/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', 'virtual:native:/mnt/storage/yocto/kirkstone/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/mnt/storage/yocto/kirkstone/poky/meta/recipes-devtools/python/python3_3.10.13.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['libstd-rs', 'docker-moby', 'openssl', 'glibc', 'gcc-cross-arm', 'gcc-runtime', 'quilt-native', 'cargo-native', 'rust-native', 'patch-native', 'pseudo-native', 'python3-native', 'opkg-utils', 'libtool-native', 'attr-native', 'libmpc-native', 'xz-native', 'linux-libc-headers', 'gmp-native', 'binutils-cross-arm', 'gnu-config-native', 'flex-native', 'zlib-native', 'mpfr-native', 'texinfo-dummy-native', 'zstd-native', 'libgcc', 'libffi-native', 'libtirpc-native', 'readline-native', 'gdbm-native', 'openssl-native', 'ncurses-native', 'sqlite3-native', 'bzip2-native', 'libnsl2-native', 'util-linux-libuuid-native', 'compose-file', 'btrfs-tools', 'go-capability', 'go-runtime', 'base-passwd', 'shadow', 'notary', 'go-mux', 'go-systemd', 'go-logrus', 'grpc-go', 'go-fsnotify', 'sqlite3', 'go-distribution', 'go-context', 'base-files', 'go-connections', 'shadow-native', 'shadow-sysroot', 'go-patricia', 'go-dbus', 'lvm2', 'libseccomp', 'libtool', 'go-pty', 'go-cli', 'ca-certificates-native', 'libssh2-native', 'curl-native', 'rust-llvm-native', 'gettext-minimal-native', 'm4-native', 'perl-native', 'lzo', 'e2fsprogs', 'zlib', 'python3', 'util-linux', 'attr', 'libxcrypt', 'systemd', 'libaio', 'cmake-native', 'make-native', 'autoconf-archive', 'ncurses', 'gdbm', 'libffi', 'bzip2', 'xz', 'libtirpc', 'readline', 'util-linux-libuuid', 'libnsl2', 'bash-completion', 'libcap-ng', 'acl', 'libxkbcommon', 'zstd', 'kmod', 'libcap', 'libxcb', 'wayland', 'libxml2', 'xkeyboard-config', 'wayland-protocols', 'libpthread-stubs', 'libxdmcp', 'libxau', 'xcb-proto', 'xorgproto', 'expat', 'util-macros']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_install
| install: cannot stat '/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.7.AUTOINC+91e058880c-r0/build/target/arm-poky-linux-gnueabi/release/aziotctl': No such file or directory
| WARNING: exit code 1 from a shell command.
ERROR: Task (/mnt/storage/yocto/kirkstone/meta-iotedge/recipes-core/aziotctl/aziotctl_1.4.7.bb:do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4077 tasks of which 3943 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /mnt/storage/yocto/kirkstone/meta-iotedge/recipes-core/aziotctl/aziotctl_1.4.7.bb:do_install
Summary: There were 2 WARNING messages.
Summary: There was 1 ERROR message, returning a non-zero exit code.
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['/mnt/storage/yocto/kirkstone/meta-lts-mixins/recipes-devtools/rust/libstd-rs_1.70.0.bb:do_populate_sysroot', '/mnt/storage/yocto/kirkstone/meta-virtualization/recipes-containers/docker/docker-moby_git.bb:do_populate_sysroot', '/mnt/storage/yocto/kirkstone/poky/meta/recipes-connectivity/openssl/openssl_3.0.13.bb:do_populate_sysroot', '/mnt/storage/yocto/kirkstone/poky/meta/recipes-core/glibc/glibc_2.35.bb:do_populate_sysroot', '/mnt/storage/yocto/kirkstone/poky/meta/recipes-devtools/gcc/gcc-cross_11.4.bb:do_populate_sysroot', '/mnt/storage/yocto/kirkstone/poky/meta/recipes-devtools/gcc/gcc-runtime_11.4.bb:do_populate_sysroot', '/mnt/storage/yocto/kirkstone/poky/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot', 'virtual:native:/mnt/storage/yocto/kirkstone/meta-lts-mixins/recipes-devtools/rust/cargo_1.70.0.bb:do_populate_sysroot', 'virtual:native:/mnt/storage/yocto/kirkstone/meta-lts-mixins/recipes-devtools/rust/rust_1.70.0.bb:do_populate_sysroot', 'virtual:native:/mnt/storage/yocto/kirkstone/poky/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', 'virtual:native:/mnt/storage/yocto/kirkstone/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/mnt/storage/yocto/kirkstone/poky/meta/recipes-devtools/python/python3_3.10.13.bb:do_populate_sysroot']
NOTE: Installed into sysroot: []
NOTE: Skipping as already exists in sysroot: ['libstd-rs', 'docker-moby', 'openssl', 'glibc', 'gcc-cross-arm', 'gcc-runtime', 'quilt-native', 'cargo-native', 'rust-native', 'patch-native', 'pseudo-native', 'python3-native', 'opkg-utils', 'libtool-native', 'attr-native', 'libmpc-native', 'xz-native', 'linux-libc-headers', 'gmp-native', 'binutils-cross-arm', 'gnu-config-native', 'flex-native', 'zlib-native', 'mpfr-native', 'texinfo-dummy-native', 'zstd-native', 'libgcc', 'libffi-native', 'libtirpc-native', 'readline-native', 'gdbm-native', 'openssl-native', 'ncurses-native', 'sqlite3-native', 'bzip2-native', 'libnsl2-native', 'util-linux-libuuid-native', 'compose-file', 'btrfs-tools', 'go-capability', 'go-runtime', 'base-passwd', 'shadow', 'notary', 'go-mux', 'go-systemd', 'go-logrus', 'grpc-go', 'go-fsnotify', 'sqlite3', 'go-distribution', 'go-context', 'base-files', 'go-connections', 'shadow-native', 'shadow-sysroot', 'go-patricia', 'go-dbus', 'lvm2', 'libseccomp', 'libtool', 'go-pty', 'go-cli', 'ca-certificates-native', 'libssh2-native', 'curl-native', 'rust-llvm-native', 'gettext-minimal-native', 'm4-native', 'perl-native', 'lzo', 'e2fsprogs', 'zlib', 'python3', 'util-linux', 'attr', 'libxcrypt', 'systemd', 'libaio', 'cmake-native', 'make-native', 'autoconf-archive', 'ncurses', 'gdbm', 'libffi', 'bzip2', 'xz', 'libtirpc', 'readline', 'util-linux-libuuid', 'libnsl2', 'bash-completion', 'libcap-ng', 'acl', 'libxkbcommon', 'zstd', 'kmod', 'libcap', 'libxcb', 'wayland', 'libxml2', 'xkeyboard-config', 'wayland-protocols', 'libpthread-stubs', 'libxdmcp', 'libxau', 'xcb-proto', 'xorgproto', 'expat', 'util-macros']
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing shell function do_install
install: cannot stat '/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.7.AUTOINC+91e058880c-r0/build/target/arm-poky-linux-gnueabi/release/aziotctl': No such file or directory
WARNING: exit code 1 from a shell command.

Build System (please complete the following information):

  • Debian 11

Target System (please complete the following information):

  • Raspberry Pi 4

Additional context

@davidcodesido davidcodesido changed the title ERROR Building kirkstone meta-iotedge ERROR: aziotctl-1.4.7.AUTOINC+91e058880c-r0 do_install: kirkstone meta-iotedge Apr 23, 2024
@davidcodesido
Copy link
Author

Tried the branch ggjjj/update-rust-kirkstone and this time it fails with:

|      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 debuginfo=2 -C metadata=afeff35c00df97c7 -C extra-filename=-afeff35c00df97c7 --out-dir /mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/build/target/armv7-poky-linux-gnueabihf/release/deps --target armv7-poky-linux-gnueabihf -C linker=/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/wrapper/target-rust-ccld -L dependency=/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t
2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/build/target/armv7-poky-linux-gnueabihf/release/deps -L dependency=/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/build/target/release/deps --extern cert_renewal=/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi
/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/build/target/armv7-poky-linux-gnueabihf/release/deps/libcert_renewal-375df9f286937248.rmeta --extern hex=/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/build/target/armv7-poky-linux-gnueabihf/release/deps/libhex-c598cabc7eac9996.rmeta --extern http_common=/mnt/storage/yocto/kirkstone/builds/digit
alsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/build/target/armv7-poky-linux-gnueabihf/release/deps/libhttp_common-f69ad5597060e0a3.rmeta --extern libc=/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/build/target/armv7-poky-linux-gnueabihf/release/deps/liblibc-48b77c00854315a3.rmeta
--extern openssl=/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/build/target/armv7-poky-linux-gnueabihf/release/deps/libopenssl-1345204eb423f732.rmeta --extern serde=/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/build/target/armv7-poky-linux
-gnueabihf/release/deps/libserde-21723915675f19bc.rmeta --extern serde_with=/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/build/target/armv7-poky-linux-gnueabihf/release/deps/libserde_with-e27153d4e13e4dbb.rmeta --extern url=/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotc
tl/1.4.8.AUTOINC+657b163c8e-r0/build/target/armv7-poky-linux-gnueabihf/release/deps/liburl-dc4cb975cc7085c8.rmeta -L /mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/recipe-sysroot/usr/lib/rustlib/armv7-poky-linux-gnueabihf/lib --remap-path-prefix=/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-
linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0=/usr/src/debug/aziotctl/1.4.8.AUTOINC+657b163c8e-r0 -L native=/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/recipe-sysroot/usr/lib`
| error: environment variable `SOCKET_DIR` not defined at compile time
|    --> cert/aziot-certd-config/src/lib.rs:341:48
|     |
| 341 |                 socket_path: Path::new(concat!(env!("SOCKET_DIR"), "/certd.sock")).into(),
|     |                                                ^^^^^^^^^^^^^^^^^^
|     |
|     = help: use `std::env::var("SOCKET_DIR")` to read the variable at run time
|     = note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info)
|
| error: environment variable `SOCKET_DIR` not defined at compile time
|    --> cert/aziot-certd-config/src/lib.rs:344:48
|     |
| 344 |                 socket_path: Path::new(concat!(env!("SOCKET_DIR"), "/keyd.sock")).into(),
|     |                                                ^^^^^^^^^^^^^^^^^^
|     |                                                                                                                                                                                                                                                                                                                                                                                                                                     |     = help: use `std::env::var("SOCKET_DIR")` to read the variable at run time                                                                                                                                                                                                                                                                                                                                                            |     = note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info)                                                                                                                                                                                                                                                                                                                       |                                                                                                                                                                                                                                                                                                                                                                                                                                           | error: could not compile `aziot-certd-config` (lib) due to 2 previous errors                                                                                                                                                                                                                                                                                                                                                              |                                                                                                                                                                                                                                                                                                                                                                                                                                           | Caused by:                                                                                                                                                                                                                                                                                                                                                                                                                                |   process didn't exit successfully: `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 debuginfo=2 -C metadata=afeff35c00df97c7 -C extra-filename=-afeff35c00df97c7 --out-dir /mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/build/target/armv7-poky-linux-gnueabihf/release/deps --target armv7-poky-linux-gnueabihf -C linker=/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/wrapper/target-rust-ccld -L dependency=/mnt/storage/yocto/kirkstone/builds/digitalsig
nage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/build/target/armv7-poky-linux-gnueabihf/release/deps -L dependency=/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/build/target/release/deps --extern cert_renewal=/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-v
fpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/build/target/armv7-poky-linux-gnueabihf/release/deps/libcert_renewal-375df9f286937248.rmeta --extern hex=/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/build/target/armv7-poky-linux-gnueabihf/release/deps/libhex-c598cabc7eac9996.rmeta --extern http_common=/mnt/storage/yocto
/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/build/target/armv7-poky-linux-gnueabihf/release/deps/libhttp_common-f69ad5597060e0a3.rmeta --extern libc=/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/build/target/armv7-poky-linux-gnueabihf/release/deps/liblibc-
48b77c00854315a3.rmeta --extern openssl=/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/build/target/armv7-poky-linux-gnueabihf/release/deps/libopenssl-1345204eb423f732.rmeta --extern serde=/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/build/
target/armv7-poky-linux-gnueabihf/release/deps/libserde-21723915675f19bc.rmeta --extern serde_with=/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/build/target/armv7-poky-linux-gnueabihf/release/deps/libserde_with-e27153d4e13e4dbb.rmeta --extern url=/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-po
ky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/build/target/armv7-poky-linux-gnueabihf/release/deps/liburl-dc4cb975cc7085c8.rmeta -L /mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/recipe-sysroot/usr/lib/rustlib/armv7-poky-linux-gnueabihf/lib --remap-path-prefix=/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortex
a7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0=/usr/src/debug/aziotctl/1.4.8.AUTOINC+657b163c8e-r0 -L native=/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.8.AUTOINC+657b163c8e-r0/recipe-sysroot/usr/lib` (exit status: 1)
| warning: build failed, waiting for other jobs to finish...
|     Building [====================>    ] 221/254: hyper, http-common, rayon...
|     Building [====================>    ] 222/254: hyper, http-common, tokio...
|     Building [====================>    ] 223/254: hyper, http-common, clap,...
|     Building [=====================>   ] 224/254: hyper, clap, h2, toml_edit
|     Building [=====================>   ] 225/254: hyper, clap, toml_edit
|     Building [=====================>   ] 226/254: clap, toml_edit
|     Building [=====================>   ] 227/254: clap
| WARNING: exit code 101 from a shell command.
ERROR: Task (/mnt/storage/yocto/kirkstone/meta-iotedge/recipes-core/aziotctl/aziotctl_1.4.8.bb:do_compile) failed with exit code '1'

@davidcodesido
Copy link
Author

@ggjjj any help will be welcome since I've been stuck trying to get device-update and iotedge suite running for weeks now.

@davidcodesido
Copy link
Author

It basically seems to be looking for this file builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.7.AUTOINC+91e058880c-r0/build/target/arm-poky-linux-gnueabi/release/aziotctl

while the actual one is in

builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.7.AUTOINC+91e058880c-r0/build/target/armv7-poky-linux-gnueabihf/release/aziotctl
Mind the armv7 vs arm

@davidcodesido
Copy link
Author

Managed to move forward by creating a symbolic link between the two folders only to fails again in the next compilation:

Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: Using rust targets from /mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/iotedge/1.4.27-r0/rust-targets/
| NOTE: cargo = /mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/iotedge/1.4.27-r0/recipe-sysroot-native/usr/bin/cargo
| NOTE: cargo build -v --frozen --target armv7-poky-linux-gnueabihf --release --manifest-path=/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/iotedge/1.4.27-r0/git/edgelet/iotedge/Cargo.toml
| warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
| note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
| note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
| note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
|     Updating git repository `https://github.com/Azure/iot-identity-service`
| error: failed to get `aziot-identity-client-async` as a dependency of package `aziot-edged v0.1.0 (/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/iotedge/1.4.27-r0/git/edgelet/aziot-edged)`
|
| Caused by:
|   failed to load source for dependency `aziot-identity-client-async`
|
| Caused by:
|   Unable to update https://github.com/Azure/iot-identity-service?branch=release/1.4#91e05888
|
| Caused by:
|   failed to clone into: /mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/iotedge/1.4.27-r0/cargo_home/git/db/iot-identity-service-dbef5f4ed045cae4
|
| Caused by:
|   attempting to update a git repository, but --frozen was specified
| WARNING: exit code 101 from a shell command.

@jolting
Copy link

jolting commented Jul 5, 2024

For the install error

| install: cannot stat '/mnt/storage/yocto/kirkstone/builds/digitalsignage/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.7.AUTOINC+91e058880c-r0/build/target/arm-poky-linux-gnueabi/release/aziotctl': No such file or directory

The recipe needs to use ${RUST_TARGET_SYS}

diff --git a/recipes-core/aziotctl/aziotctl.inc b/recipes-core/aziotctl/aziotctl.inc
index 47cab16..5b310fb 100644
--- a/recipes-core/aziotctl/aziotctl.inc
+++ b/recipes-core/aziotctl/aziotctl.inc
@@ -8,5 +8,5 @@ SRC_URI +="file://0001-Change-panic-strategy-to-unwind.patch"
 do_install () {
     # Binaries
     install -d  "${D}${bindir}"
-    install -m 755 "${WORKDIR}/build/target/${TARGET_SYS}/release/aziotctl" ${D}${bindir}/aziotctl
+    install -m 755 "${WORKDIR}/build/target/${RUST_TARGET_SYS}/release/aziotctl" ${D}${bindir}/aziotctl
 }

@jolting
Copy link

jolting commented Jul 6, 2024

It seems that the cargo modules in https://github.com/Azure/iotedge specify dependencies using git which isn't supported by the the Yocto fetcher.

https://github.com/Azure/iotedge/blob/ff0d99990f1d765a40b45368d7e57c38a1059c86/edgelet/aziot-edged/Cargo.toml#L31

I think the fetch is not allowed in Yocto because it wouldn't produce reproducible builds.

@davidcodesido
Copy link
Author

Thanks for following up. Unfortunately given how hard it was to get this going company decided to go other route for generating the raspberry pi images we need. However, I will try to follow this and move forward with the compilation as soon as I get some free time. Thanks for your efforts!

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

No branches or pull requests

2 participants