**** BEGIN LOGGING AT Sun Nov 22 02:59:57 2020 Nov 22 09:58:29 hello. I'm having the strangest problem. a kernel module recipe fails with "/bin/sh: 1: bc: not found" but my system DEFINITELY has bc installed and working Nov 22 10:13:06 Hi! I tried to populate sdk and got the error... Nov 22 10:13:28 Uploaded file: https://uploads.kiwiirc.com/files/8451d5b72c1e7cb90cc57f6331d1329a/pasted.txt Nov 22 10:14:01 ERROR: core-image-sato-1.0-r0 do_populate_sdk: Could not invoke dnf. Command '/home/paul/work/stm32mp1_out/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-sato/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /home/paul/work/stm32mp1_out/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-sato/1.0-r0/sdk/image/etc/dnf/dnf.conf Nov 22 10:14:01 --setopt=reposdir=/home/paul/work/stm32mp1_out/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-sato/1.0-r0/sdk/image/etc/yum.repos.d --installroot=/home/paul/work/stm32mp1_out/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-sato/1.0-r0/sdk/image Nov 22 10:14:02 --setopt=logdir=/home/paul/work/stm32mp1_out/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-sato/1.0-r0/temp --repofrompath=oe-repo,/home/paul/work/stm32mp1_out/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-sato/1.0-r0/oe-sdk-repo --nogpgcheck install nativesdk-binutils nativesdk-gcc-arm-none-eabi nativesdk-glib-2.0 nativesdk-glibc-gconv-utf-16 Nov 22 10:14:03 nativesdk-glibc-gconv-utf-32 nativesdk-intltool nativesdk-ncurses-libncursesw nativesdk-openocd-stm32mp nativesdk-openssl-dev nativesdk-packagegroup-sdk-host nativesdk-perl-module-file-spec-functions nativesdk-python3-pycrypto nativesdk-python3-pycryptodomex nativesdk-python3-pyelftools nativesdk-sdcard-raw-tools nativesdk-stm32wrapper4dbg Nov 22 10:14:03 nativesdk-svd-tools nativesdk-u-boot-mkimage nativesdk-wayland packagegroup-cross-canadian-stm32mp1' returned 1: Nov 22 10:14:04 DNF version: 4.2.2 Nov 22 10:14:04 cachedir: /home/paul/work/stm32mp1_out/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-sato/1.0-r0/sdk/image/var/cache/dnf Nov 22 10:14:04 Added oe-repo repo from /home/paul/work/stm32mp1_out/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-sato/1.0-r0/oe-sdk-repo Nov 22 10:14:05 repo: using cache for: oe-repo Nov 22 10:14:05 not found other for: Nov 22 10:14:06 not found modules for: Nov 22 10:14:06 not found deltainfo for: Nov 22 10:14:07 not found updateinfo for: Nov 22 10:14:07 oe-repo: using metadata from Sun 22 Nov 2020 09:04:54 AM UTC. Nov 22 10:14:08 No module defaults found Nov 22 10:14:09 --> Starting dependency resolution Nov 22 10:14:09 --> Finished dependency resolution Nov 22 10:14:09 Error: Nov 22 10:14:32 What do I suppose to do to fix it? Nov 22 10:18:24 @paulgr2008: I am just guessing, but I would try a different package manager. Can you try ipk instead of rpm? Nov 22 10:20:21 @paulgr2008: did you exclude any packages? Nov 22 10:20:52 No. I tried standard options only. Nov 22 10:49:45 @paulgr2008: As far as I see it it's not the "host" dnf it can not find, but yocto/oe builds a native-dnf which seems to be missing Nov 22 10:50:00 @paulgr2008: Does this exist? /home/paul/work/stm32mp1_out/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-sato/1.0-r0/recipe-sysroot-native/usr/bin/dnf Nov 22 12:05:10 yes. dnf exists Nov 22 12:12:52 @purple: I had a message earlier which is said builder was looking up a ca_certificate for an openssl in a wrong place (/opt/poky/3.1.3/...). I just copied ca_certificate there. Maybe it's a some hint about my problem?)) Nov 22 17:15:33 YP noob here. After git-pull a specific package fails my build, after configure it complains to not find a Makefile. Is there a way to fix that rather than rebuilding everything? Nov 22 18:14:36 marco-yp: Nov 22 18:15:24 yes you can go into the relevant packages build directory and inspect whats going on, you can run run.do_configure script in there and check Nov 22 18:24:04 Hi , can I build a Kernel module .ko from a simple SDK (populate_sdk) ? Nov 22 18:25:03 if SDK includes kernel-devsrc then yes Nov 22 18:25:29 otherwise you will need a configured kernel source tree around Nov 22 18:28:15 Yeah, my goal is to prevent a user from building kernel modules with a given SDK, I checked the TOOLCHAIN_HOST_TASK with "bitbake -e | grep TOOLCHAIN_HOST_TASK" and it is not having kernel-devsrc , is that enough ? Nov 22 18:41:44 look at meta/recipes-extended/images/core-image-kernel-dev.bb Nov 22 18:42:10 that should help you create right sdk for kernel development Nov 22 18:42:54 thats for building kernel on device but you get idea Nov 22 18:44:10 I'm not including kernel-devsrc in my image, I checked the sysroots of the SDK and there is no build directory inside /lib/modules Nov 22 22:12:19 def find_version(d): import subprocess cmd = "git describe --long" return subprocess.check_output(cmd).rstrip().decode('utf-8')VERSION = "${@find_version(d)}"# do_compile uses $VERSION Nov 22 22:12:51 What magic do I use to make find_version always run, but do_compile only run if VERSION changes? Nov 22 22:13:19 In a stripped down os-release.bbappend Nov 22 22:14:46 Is there an equivalent `find_version[nostamp] = "1"` for functions that are not tasks? **** ENDING LOGGING AT Mon Nov 23 02:59:57 2020