AnsweredAssumed Answered

Compile issue with yocto 2.7 and kernel-module-imx-gpu-viv_6.2.4.p1.8.bb recipe

Question asked by Jean-Yves RIOT on Aug 2, 2019
Latest reply on Aug 8, 2019 by Jean-Yves RIOT

Hi,

 

I am starting to use Yocto 2.7, using Riotboard, I am facing to this compile issue with kernel-module-imx-gpu-viv_6.2.4.p1.8.bb each times

Can it be possible to get help to solve this please?

 

Best Regards.

 

Here is the bibake trace:

 

lycaste@homer:/Dev/poky/build$ bitbake core-image-minimal
Loading cache: 100% |#########################################################################################################################################################| Time: 0:00:00
Loaded 3465 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

 

Build Configuration:
BB_VERSION           = "1.43.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "imx6dl-riotboard"
DISTRO               = "poky"
DISTRO_VERSION       = "2.7+snapshot-20190802"
TUNE_FEATURES        = "arm vfp cortexa9 neon thumb callconvention-hard"
TARGET_FPU           = "hard"
meta
meta-poky
meta-yocto-bsp       = "master:41a5dbd16b0c9f5f97e7a160830cf7ca5de52ec6"
meta-freescale       = "master:7f3a9bf2339e2413ba38e6243cd8116d65a27b2a"
meta-freescale-3rdparty = "master:cc6475e9a620da6fce022bf5cc59b6a8c8fcd81d"
meta-oe
meta-python
meta-networking      = "master:e90eda09984f0548b58d0839d6d9734d584496d9"

 

Initialising tasks: 100% |####################################################################################################################################################| Time: 0:00:01
Checking sstate mirror object availability: 100% |############################################################################################################################| Time: 0:00:11
Sstate summary: Wanted 489 Found 426 Missed 126 Current 655 (87% match, 94% complete)
NOTE: Executing Tasks
NOTE: Setscene tasks completed
ERROR: kernel-module-imx-gpu-viv-6.2.4.p1.8-r0 do_compile: oe_runmake failed
ERROR: kernel-module-imx-gpu-viv-6.2.4.p1.8-r0 do_compile: Function failed: do_compile (log file is located at /Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/temp/log.do_compile.19791)
ERROR: Logfile of failure stored in: /Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/temp/log.do_compile.19791
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 8 KERNEL_SRC=/Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-source CONFIG_MXC_GPU_VIV=m KERNEL_PATH=/Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-source KERNEL_VERSION=5.1.15-fslc+gcd1d083333e7 CC=arm-poky-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0=/usr/src/debug/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0                      -fdebug-prefix-map=/Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0=/usr/src/debug/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0                      -fdebug-prefix-map=/Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/recipe-sysroot=                      -fdebug-prefix-map=/Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/recipe-sysroot-native=  -fdebug-prefix-map=/Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-source=/usr/src/kernel LD=arm-poky-linux-gnueabi-ld.bfd   AR=arm-poky-linux-gnueabi-ar  O=/Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-build-artifacts KBUILD_EXTRA_SYMBOLS=
| make -C /Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-source M=/Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/git/src AQROOT=/Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/git/src
| make[1]: Entering directory '/Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-source'
| make[2]: Entering directory '/Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-build-artifacts'
|   CC [M]  /Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/git/src/hal/os/linux/kernel/gc_hal_kernel_device.o
|   CC [M]  /Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/git/src/hal/os/linux/kernel/gc_hal_kernel_linux.o
|   CC [M]  /Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/git/src/hal/os/linux/kernel/gc_hal_kernel_math.o
|   CC [M]  /Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/git/src/hal/os/linux/kernel/gc_hal_kernel_os.o
|   CC [M]  /Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/git/src/hal/os/linux/kernel/gc_hal_kernel_debugfs.o
|   CC [M]  /Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/git/src/hal/os/linux/kernel/gc_hal_kernel_allocator.o
|   CC [M]  /Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/git/src/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_user_memory.o
|   CC [M]  /Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/git/src/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_dma.o
| /Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/git/src/hal/os/linux/kernel/gc_hal_kernel_os.c:86:10: fatal error: dma.h: No such file or directory
|    86 | #include <dma.h>
|       |          ^~~~~~~
| compilation terminated.
| /Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-source/scripts/Makefile.build:275: recipe for target '/Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/git/src/hal/os/linux/kernel/gc_hal_kernel_os.o' failed
| make[3]: *** [/Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/git/src/hal/os/linux/kernel/gc_hal_kernel_os.o] Error 1
| make[3]: *** Waiting for unfinished jobs....
| In file included from /Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-source/arch/arm/include/asm/memory.h:373,
|                  from /Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-source/arch/arm/include/asm/page.h:163,
|                  from /Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-source/arch/arm/include/asm/thread_info.h:17,
|                  from /Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-source/include/linux/thread_info.h:38,
|                  from /Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-source/include/asm-generic/preempt.h:5,
|                  from ./arch/arm/include/generated/asm/preempt.h:1,
|                  from /Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-source/include/linux/preempt.h:78,
|                  from /Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-source/include/linux/spinlock.h:51,
|                  from /Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-source/include/linux/seqlock.h:36,
|                  from /Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-source/include/linux/time.h:6,
|                  from /Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-source/include/linux/stat.h:19,
|                  from /Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-source/include/linux/module.h:10,
|                  from /Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/git/src/hal/os/linux/kernel/gc_hal_kernel_linux.h:61,
|                  from /Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/git/src/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_dma.c:56:
| /Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/git/src/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_dma.c: In function '_DmaGetSGT':
| /Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/git/src/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_dma.c:249:25: error: implicit declaration of function 'dma_to_phys'; did you mean 'idmap_to_phys'? [-Werror=implicit-function-declaration]
|   249 |     page = phys_to_page(dma_to_phys(&Allocator->os->device->platform->device->dev, mdlPriv->dmaHandle));
|       |                         ^~~~~~~~~~~
| /Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-source/include/asm-generic/memory_model.h:33:41: note: in definition of macro '__pfn_to_page'
|    33 | #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET))
|       |                                         ^~~
| /Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-source/include/asm-generic/memory_model.h:78:30: note: in expansion of macro 'PHYS_PFN'
|    78 | #define __phys_to_pfn(paddr) PHYS_PFN(paddr)
|       |                              ^~~~~~~~
| /Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-source/arch/arm/include/asm/memory.h:136:41: note: in expansion of macro '__phys_to_pfn'
|   136 | #define phys_to_page(phys) (pfn_to_page(__phys_to_pfn(phys)))
|       |                                         ^~~~~~~~~~~~~
| /Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/git/src/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_dma.c:249:12: note: in expansion of macro 'phys_to_page'
|   249 |     page = phys_to_page(dma_to_phys(&Allocator->os->device->platform->device->dev, mdlPriv->dmaHandle));
|       |            ^~~~~~~~~~~~
| cc1: all warnings being treated as errors
| /Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-source/scripts/Makefile.build:275: recipe for target '/Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/git/src/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_dma.o' failed
| make[3]: *** [/Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/git/src/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_dma.o] Error 1
| /Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-source/Makefile:1571: recipe for target '_module_/Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/git/src' failed
| make[2]: *** [_module_/Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/git/src] Error 2
| make[2]: Leaving directory '/Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-build-artifacts'
| Makefile:169: recipe for target 'sub-make' failed
| make[1]: *** [sub-make] Error 2
| make[1]: Leaving directory '/Dev/poky/build/tmp/work-shared/imx6dl-riotboard/kernel-source'
| Makefile:6: recipe for target 'all' failed
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /Dev/poky/build/tmp/work/imx6dl_riotboard-poky-linux-gnueabi/kernel-module-imx-gpu-viv/6.2.4.p1.8-r0/temp/log.do_compile.19791)
ERROR: Task (/Dev/poky/meta-freescale/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.2.4.p1.8.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3219 tasks of which 3094 didn't need to be rerun and 1 failed.

 

Summary: 1 task failed:
  /Dev/poky/meta-freescale/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.2.4.p1.8.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

Outcomes