Can't build an oniro-image-base-dev image for qemuarm-efi
MACHINE=qemuarm-efi bitbake oniro-image-base-dev
fails, erroring out while building lttng:
| make -C /media/space/repos/oniroproject/build-oniro-linux-qemuarm-efi/tmp/work-shared/qemuarm-efi/kernel-source M=/media/space/repos/oniroproject/build-oniro-linux-qemuarm-efi/tmp/work/qemuarm_efi-oniro-linux-musleabi/lttng-modules/2.13.3-r0/lttng-modules-2.13.3/src \
| CONFIG_LTTNG=m CONFIG_LTTNG_CLOCK_PLUGIN_TEST=m \
| KCPPFLAGS='' \
| modules
| make[1]: Entering directory '/media/space/repos/oniroproject/build-oniro-linux-qemuarm-efi/tmp/work-shared/qemuarm-efi/kernel-source'
| make[2]: Entering directory '/media/space/repos/oniroproject/build-oniro-linux-qemuarm-efi/tmp/work-shared/qemuarm-efi/kernel-build-artifacts'
| /media/space/repos/oniroproject/build-oniro-linux-qemuarm-efi/tmp/work/qemuarm_efi-oniro-linux-musleabi/lttng-modules/2.13.3-r0/lttng-modules-2.13.3/src/probes/Kbuild:260: CONFIG_KALLSYMS_ALL is disabled, therefore probe "writeback" is disabled. Rebuild your kernel with this configuration option enabled in order to trace this subsystem.
| CC [M] /media/space/repos/oniroproject/build-oniro-linux-qemuarm-efi/tmp/work/qemuarm_efi-oniro-linux-musleabi/lttng-modules/2.13.3-r0/lttng-modules-2.13.3/src/wrapper/kallsyms.o
| LD [M] /media/space/repos/oniroproject/build-oniro-linux-qemuarm-efi/tmp/work/qemuarm_efi-oniro-linux-musleabi/lttng-modules/2.13.3-r0/lttng-modules-2.13.3/src/lttng-tracer.o
| LD [M] /media/space/repos/oniroproject/build-oniro-linux-qemuarm-efi/tmp/work/qemuarm_efi-oniro-linux-musleabi/lttng-modules/2.13.3-r0/lttng-modules-2.13.3/src/lttng-statedump.o
| /media/space/repos/oniroproject/build-oniro-linux-qemuarm-efi/tmp/work/qemuarm_efi-oniro-linux-musleabi/lttng-modules/2.13.3-r0/lttng-modules-2.13.3/src/wrapper/kallsyms.c:20:3: error: #error "LTTng-modules requires CONFIG_KPROBES on kernels >= 5.7.0"
| 20 | # error "LTTng-modules requires CONFIG_KPROBES on kernels >= 5.7.0"
| | ^~~~~
| make[3]: *** [/media/space/repos/oniroproject/build-oniro-linux-qemuarm-efi/tmp/work-shared/qemuarm-efi/kernel-source/scripts/Makefile.build:280: /media/space/repos/oniroproject/build-oniro-linux-qemuarm-efi/tmp/work/qemuarm_efi-oniro-linux-musleabi/lttng-modules/2.13.3-r0/lttng-modules-2.13.3/src/wrapper/kallsyms.o] Error 1
Probably the best fix is adding CONFIG_KALLSYMS_ALL
and CONFIG_KPROBES
to the kernel config (those are enabled for the qemuarm64-efi
target).