Error compiling i.MX6 Ultra Lite

I am getting below errors for compiling.

DEBUG: Executing shell function do_compile
NOTE: make -j 8 HOSTCC=gcc -isystem/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -L/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,–enable-new-dtags -Wl,-rpath-link,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,–allow-shlib-undefined -Wl,–dynamic-linker=/home/keyur/projects/mender-imx6ul/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc -E zImage CC=arm-fslc-linux-gnueabi-gcc -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0=/usr/src/debug/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0 -fdebug-prefix-map=/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0=/usr/src/debug/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0 -fdebug-prefix-map=/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot= -fdebug-prefix-map=/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/keyur/projects/mender-imx6ul/build/tmp/work-shared/imx6ulevk/kernel-source=/usr/src/kernel LD=arm-fslc-linux-gnueabi-ld.bfd LOADADDR=0x10008000
CHK include/config/kernel.release
GEN ./Makefile
CHK include/generated/uapi/linux/version.h
Using /home/keyur/projects/mender-imx6ul/build/tmp/work-shared/imx6ulevk/kernel-source as source for kernel
CC scripts/mod/empty.o
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
CHK include/generated/utsrelease.h
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTCC scripts/mod/file2alias.o
CHK include/generated/timeconst.h
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL /home/keyur/projects/mender-imx6ul/build/tmp/work-shared/imx6ulevk/kernel-source/scripts/checksyscalls.sh
HOSTLD scripts/mod/modpost
CHK include/generated/compile.h
CHK kernel/config_data.h
Kernel: arch/arm/boot/Image is ready
Kernel: arch/arm/boot/zImage is ready
NOTE: make -j 8 HOSTCC=gcc -isystem/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -L/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,–enable-new-dtags -Wl,-rpath-link,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,–allow-shlib-undefined -Wl,–dynamic-linker=/home/keyur/projects/mender-imx6ul/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc -E imx6ul-14x14-evk.dtb
CC scripts/mod/empty.o
CC scripts/mod/devicetable-offsets.s
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
NOTE: make -j 8 HOSTCC=gcc -isystem/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -L/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,–enable-new-dtags -Wl,-rpath-link,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,–allow-shlib-undefined -Wl,–dynamic-linker=/home/keyur/projects/mender-imx6ul/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc -E imx6ul-14x14-evk-btwifi.dtb
NOTE: make -j 8 HOSTCC=gcc -isystem/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -L/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,–enable-new-dtags -Wl,-rpath-link,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,–allow-shlib-undefined -Wl,–dynamic-linker=/home/keyur/projects/mender-imx6ul/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc -E imx6ul-14x14-evk-btwifi-oob.dtb
NOTE: make -j 8 HOSTCC=gcc -isystem/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -L/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,–enable-new-dtags -Wl,-rpath-link,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,–allow-shlib-undefined -Wl,–dynamic-linker=/home/keyur/projects/mender-imx6ul/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc -E imx6ul-14x14-evk-csi.dtb
NOTE: make -j 8 HOSTCC=gcc -isystem/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -L/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,–enable-new-dtags -Wl,-rpath-link,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,–allow-shlib-undefined -Wl,–dynamic-linker=/home/keyur/projects/mender-imx6ul/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc -E imx6ul-14x14-evk-ecspi.dtb
make[3]: *** No rule to make target ‘arch/arm/boot/dts/imx6ul-14x14-evk-ecspi.dtb’. Stop.
arch/arm/Makefile:336: recipe for target ‘imx6ul-14x14-evk-ecspi.dtb’ failed
make[2]: *** [imx6ul-14x14-evk-ecspi.dtb] Error 2
Makefile:150: recipe for target ‘sub-make’ failed
make[1]: *** [sub-make] Error 2
Makefile:24: recipe for target ‘__sub-make’ failed
make: *** [__sub-make] Error 2
ERROR: oe_runmake failed
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_compile (log file is located at /home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/temp/log.do_compile.14308)

Hi,

It seems that you’re building older kernel (4.9) I suggest you to try kernel 4.19 by adding the following line in local.conf

PREFERRED_PROVIDER_virtual/kernel = "linux-imx"

If you still encounter this error, kindly post the error log

1 Like

Thank you for the reply. But it still getting error

WARNING: You have included the meta-gnome layer, but 'x11' has not been enabled in your DISTRO_FEATURES. Some bbappend files may not take effect. See the meta-gnome README for details on enabling meta-gnome support.
Parsing recipes: 100% |##################################################################################################################################| Time: 0:07:59
Parsing of 2833 .bb files complete (0 cached, 2833 parsed). 3988 targets, 520 skipped, 3 masked, 0 errors.
Removing 1 recipes from the imx6ulevk sysroot: 100% |####################################################################################################| Time: 0:00:04
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'u-boot-imx'
u-boot-imx was skipped: PREFERRED_PROVIDER_virtual/bootloader set to u-boot-fslc, not u-boot-imx
u-boot-imx was skipped: PREFERRED_PROVIDER_virtual/bootloader set to u-boot-fslc, not u-boot-imx
ERROR: Nothing PROVIDES 'u-boot-fw-utils-mender-auto-provided'
No eligible PROVIDERs exist for 'u-boot-fw-utils-mender-auto-provided'
ERROR: Nothing RPROVIDES 'u-boot-fw-utils-mender-auto-provided-dev' (but /home/keyur/projects/mender-imx6ul/sources/meta-mender/meta-mender-core/recipes-bsp/u-boot/u-boot-fw-utils-mender-auto-provided_1.0.bb RDEPENDS on or otherwise requires it)
No eligible RPROVIDERs exist for 'u-boot-fw-utils-mender-auto-provided-dev'
NOTE: Runtime target 'u-boot-fw-utils-mender-auto-provided-dev' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['u-boot-fw-utils-mender-auto-provided-dev']
ERROR: Nothing RPROVIDES 'u-boot-fw-utils-mender-auto-provided' (but /home/keyur/projects/mender-imx6ul/sources/meta-mender/meta-mender-core/recipes-bsp/u-boot/u-boot-fw-utils-mender-auto-provided_1.0.bb RDEPENDS on or otherwise requires it)
No eligible RPROVIDERs exist for 'u-boot-fw-utils-mender-auto-provided'
NOTE: Runtime target 'u-boot-fw-utils-mender-auto-provided' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['u-boot-fw-utils-mender-auto-provided']

Build Configuration:
BB_VERSION           = "1.42.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-fslc-linux-gnueabi"
MACHINE              = "imx6ulevk"
DISTRO               = "fslc-framebuffer"
DISTRO_VERSION       = "2.7"
TUNE_FEATURES        = "arm vfp cortexa7 neon thumb callconvention-hard"
TARGET_FPU           = "hard"
meta                 
meta-poky            = "HEAD:6d2e12e79211b31cdf5ea824fb9a8be54ba9a9eb"
meta-oe              
meta-multimedia      = "HEAD:3bdbf72e3a4bf18a4a2c7afbde4f7ab773aeded9"
meta-freescale       = "HEAD:2142f7ded1b3115ccc21f7575fd83e2376247193"
meta-freescale-3rdparty = "HEAD:da422478d38e744283bcf61123c4a526396c7030"
meta-freescale-distro = "HEAD:d4e77ea682fa10d0d54a723b3d3099c44fc5e95c"
meta-bsp             
meta-sdk             
meta-ml              = "HEAD:fc3130ecfce72ff6d3013f5fa464ed2a72af8b00"
meta-browser         = "HEAD:5f365ef0f842ba4651efe88787cf9c63bc8b6cb3"
meta-rust            = "HEAD:11aed43748d7dd194dc6c06a35a16104400d1090"
meta-gnome           
meta-networking      
meta-python          
meta-filesystems     = "HEAD:3bdbf72e3a4bf18a4a2c7afbde4f7ab773aeded9"
meta-qt5             = "HEAD:dc2dedef9961950b88f4245ba7499538ec4244ab"
meta-mender-imx      = "HEAD:a13035912d915a188c062e848d37c48a3fa2014e"
meta-mender-core     
meta-mender-demo     = "HEAD:f4b093d10639c89d9419a7c8833ee2db225cbc52"

Initialising tasks: 100% |###############################################################################################################################| Time: 0:00:08
Sstate summary: Wanted 634 Found 0 Missed 634 Current 495 (0% match, 43% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: optee-client-imx-git-r0 do_compile: oe_runmake failed
ERROR: optee-client-imx-git-r0 do_compile: Function failed: do_compile (log file is located at /home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/temp/log.do_compile.27093)
ERROR: Logfile of failure stored in: /home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/temp/log.do_compile.27093
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 8 -C /home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/git ARCH=arm
| make: Entering directory '/home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/git'
| Building libteec.so
|   CC      src/tee_client_api.c
|   CC      src/teec_trace.c
| In file included from /home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/recipe-sysroot/usr/include/bits/libc-header-start.h:33,
|                  from /home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/recipe-sysroot/usr/include/stdio.h:27,
|                  from src/teec_trace.c:27:
| /home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/recipe-sysroot/usr/include/features.h:382:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]
|  #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
|     ^~~~~~~
| In file included from /home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/recipe-sysroot/usr/include/errno.h:25,
|                  from src/tee_client_api.c:28:
| /home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/recipe-sysroot/usr/include/features.h:382:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]
|  #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
|     ^~~~~~~
| cc1: all warnings being treated as errors
| Makefile:56: recipe for target '/home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/git/libteec/../out/libteec/teec_trace.o' failed
| make[1]: *** [/home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/git/libteec/../out/libteec/teec_trace.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| cc1: all warnings being treated as errors
| Makefile:56: recipe for target '/home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/git/libteec/../out/libteec/tee_client_api.o' failed
| make[1]: *** [/home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/git/libteec/../out/libteec/tee_client_api.o] Error 1
| Makefile:31: recipe for target 'build-libteec' failed
| make: *** [build-libteec] Error 2
| make: Leaving directory '/home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/git'
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/temp/log.do_compile.27093)
ERROR: Task (/home/keyur/projects/mender-imx6ul/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-security/optee-imx/optee-client-imx_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2128 tasks of which 2071 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory

Summary: 1 task failed:
  /home/keyur/projects/mender-imx6ul/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-security/optee-imx/optee-client-imx_git.bb:do_compile
Summary: There was 1 WARNING message shown.
Summary: There were 6 ERROR messages shown, returning a non-zero exit code.

It seems like you’ve mixed bootloader provider: Try adding the following in local.conf

PREFERRED_PROVIDER_virtual/bootloader = "u-boot-imx"
# Removing optee from build
DISTRO_FEATURES_remove += " optee"
PACKAGE_EXCLUDE += " optee"
1 Like