I am trying to build Yocto Scarthgap for the Verdin i.MX8M Plus. I am running into the error shown below:
ERROR: kernel-module-isp-vvcam-4.2.2.24.1-r0 do_compile: oe_runmake failed
ERROR: kernel-module-isp-vvcam-4.2.2.24.1-r0 do_compile: ExecutionError(‘/home/sutter/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/kernel-module-isp-vvcam/4.2.2.24.1/temp/run.do_compile.969804’, 1, None, None)
ERROR: Logfile of failure stored in: /home/sutter/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/kernel-module-isp-vvcam/4.2.2.24.1/temp/log.do_compile.969804
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4 KERNEL_SRC=/home/sutter/oe-core/build/tmp/work-shared/verdin-imx8mp/kernel-source KERNEL_PATH=/home/sutter/oe-core/build/tmp/work-shared/verdin-imx8mp/kernel-source KERNEL_VERSION=5.15.148-7.0.0-devel+git.284966e8d6ee CC=aarch64-tdx-linux-gcc -fuse-ld=bfd -fmacro-prefix-map=/home/sutter/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/kernel-module-isp-vvcam/4.2.2.24.1/git/vvcam=/usr/src/debug/kernel-module-isp-vvcam/4.2.2.24.1-r0 -fdebug-prefix-map=/home/sutter/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/kernel-module-isp-vvcam/4.2.2.24.1/git/vvcam=/usr/src/debug/kernel-module-isp-vvcam/4.2.2.24.1-r0 -fcanon-prefix-map -fmacro-prefix-map=/home/sutter/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/kernel-module-isp-vvcam/4.2.2.24.1/git/vvcam/v4l2=/usr/src/debug/kernel-module-isp-vvcam/4.2.2.24.1 -fdebug-prefix-map=/home/sutter/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/kernel-module-isp-vvcam/4.2.2.24.1/git/vvcam/v4l2=/usr/src/debug/kernel-module-isp-vvcam/4.2.2.24.1 -fmacro-prefix-map=/home/sutter/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/kernel-module-isp-vvcam/4.2.2.24.1/git/vvcam/v4l2=/usr/src/debug/kernel-module-isp-vvcam/4.2.2.24.1 -fdebug-prefix-map=/home/sutter/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/kernel-module-isp-vvcam/4.2.2.24.1/git/vvcam/v4l2=/usr/src/debug/kernel-module-isp-vvcam/4.2.2.24.1 -fdebug-prefix-map=/home/sutter/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/kernel-module-isp-vvcam/4.2.2.24.1/recipe-sysroot= -fmacro-prefix-map=/home/sutter/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/kernel-module-isp-vvcam/4.2.2.24.1/recipe-sysroot= -fdebug-prefix-map=/home/sutter/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/kernel-module-isp-vvcam/4.2.2.24.1/recipe-sysroot-native= -fdebug-prefix-map=/home/sutter/oe-core/build/tmp/work-shared/verdin-imx8mp/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/sutter/oe-core/build/tmp/work-shared/verdin-imx8mp/kernel-build-artifacts=/usr/src/kernel LD=aarch64-tdx-linux-ld.bfd AR=aarch64-tdx-linux-ar OBJCOPY=aarch64-tdx-linux-objcopy STRIP=aarch64-tdx-linux-strip O=/home/sutter/oe-core/build/tmp/work-shared/verdin-imx8mp/kernel-build-artifacts KBUILD_EXTRA_SYMBOLS=
| make[1]: Entering directory ‘/home/sutter/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/kernel-module-isp-vvcam/4.2.2.24.1/git/vvcam/v4l2/dwe’
| make -C /home/sutter/oe-core/build/tmp/work-shared/verdin-imx8mp/kernel-source ARCH=arm64 M=/home/sutter/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/kernel-module-isp-vvcam/4.2.2.24.1/git/vvcam/v4l2/dwe modules
| make[2]: Entering directory ‘/home/sutter/oe-core/build/tmp/work-shared/verdin-imx8mp/kernel-source’
| CC [M] /home/sutter/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/kernel-module-isp-vvcam/4.2.2.24.1/git/vvcam/v4l2/dwe/…/video/vvbuf.o
| CC [M] /home/sutter/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/kernel-module-isp-vvcam/4.2.2.24.1/git/vvcam/v4l2/dwe/dwe_driver_of.o
| CC [M] /home/sutter/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/kernel-module-isp-vvcam/4.2.2.24.1/git/vvcam/v4l2/dwe/dwe_devcore.o
| CC [M] /home/sutter/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/kernel-module-isp-vvcam/4.2.2.24.1/git/vvcam/v4l2/dwe/…/…/dwe/dwe_ioctl.o
| /home/sutter/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/kernel-module-isp-vvcam/4.2.2.24.1/git/vvcam/v4l2/dwe/dwe_driver_of.c: In function ‘dwe_set_stream’:
| /home/sutter/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/kernel-module-isp-vvcam/4.2.2.24.1/git/vvcam/v4l2/dwe/dwe_driver_of.c:155:15: error: implicit declaration of function ‘media_pad_remote_pad_first’ [-Werror=implicit-function-declaration]
| 155 | pad = media_pad_remote_pad_first(pad);
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~
| /home/sutter/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/kernel-module-isp-vvcam/4.2.2.24.1/git/vvcam/v4l2/dwe/dwe_driver_of.c:155:13: error: assignment to ‘struct media_pad *’ from ‘int’ makes pointer from integer without a cast [-Werror=int-conversion]
| 155 | pad = media_pad_remote_pad_first(pad);
| | ^
| cc1: all warnings being treated as errors
| make[4]: *** [/home/sutter/oe-core/build/tmp/work-shared/verdin-imx8mp/kernel-source/scripts/Makefile.build:289: /home/sutter/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/kernel-module-isp-vvcam/4.2.2.24.1/git/vvcam/v4l2/dwe/dwe_driver_of.o] Error 1
| make[4]: *** Waiting for unfinished jobs…
| make[3]: *** [/home/sutter/oe-core/build/tmp/work-shared/verdin-imx8mp/kernel-source/Makefile:1907: /home/sutter/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/kernel-module-isp-vvcam/4.2.2.24.1/git/vvcam/v4l2/dwe] Error 2
| make[2]: *** [Makefile:226: __sub-make] Error 2
| make[2]: Leaving directory ‘/home/sutter/oe-core/build/tmp/work-shared/verdin-imx8mp/kernel-source’
| make[1]: *** [Makefile:40: all] Error 2
| make[1]: Leaving directory ‘/home/sutter/oe-core/build/tmp/work/verdin_imx8mp-tdx-linux/kernel-module-isp-vvcam/4.2.2.24.1/git/vvcam/v4l2/dwe’
| make: *** [Makefile:6: all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/sutter/oe-core/build/…/layers/meta-freescale/recipes-kernel/kernel-modules/kernel-module-isp-vvcam_4.2.2.24.1.bb:do_compile) failed with exit code ‘1’
Is there a known solution to this issue?
tdx-info: