zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.85k stars 6.6k forks source link

tests-ci : drivers: mipi_dsi: api test Build failure #51470

Closed hakehuang closed 2 years ago

hakehuang commented 2 years ago
**Describe the bug**
api test is Build failure on zephyr-v3.2.0-679-g5ab62a43777d on mimxrt1170_evk_cm7

see logs for details

**To Reproduce**
1. 
```
scripts/twister --device-testing --device-serial /dev/ttyACM0 -p mimxrt1170_evk_cm7      --sub-test drivers.mipi_dsi
```
2. See error

**Expected behavior**
test pass

**Impact**

**Logs and console output**

```
Loading Zephyr default modules (Zephyr base).

-- Application: /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/tests/drivers/mipi_dsi/api -- Found Python3: /usr/bin/python3.10 (found suitable exact version "3.10.4") found components: Interpreter -- Cache files will be written to: /home/ubuntu/.cache/zephyr -- Zephyr version: 3.2.99 (/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr) -- Found west (found suitable version "0.14.0", minimum required is "0.7.1") -- Board: mimxrt1170_evk_cm7 -- Found host-tools: zephyr 0.15.0 (/home/ubuntu/zephyr-sdk) -- Found toolchain: zephyr 0.15.0 (/home/ubuntu/zephyr-sdk) -- Found Dtc: /home/ubuntu/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") -- Found BOARD.dts: /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/boards/arm/mimxrt1170_evk/mimxrt1170_evk_cm7.dts -- Generated zephyr.dts: /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/twister-out/mimxrt1170_evk_cm7/tests/drivers/mipi_dsi/api/drivers.mipi_dsi.api/zephyr/zephyr.dts -- Generated devicetree_generated.h: /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/twister-out/mimxrt1170_evk_cm7/tests/drivers/mipi_dsi/api/drivers.mipi_dsi.api/zephyr/include/generated/devicetree_generated.h -- Including generated dts.cmake file: /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/twister-out/mimxrt1170_evk_cm7/tests/drivers/mipi_dsi/api/drivers.mipi_dsi.api/zephyr/dts.cmake Parsing /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/tests/drivers/mipi_dsi/api/Kconfig Loaded configuration '/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/boards/arm/mimxrt1170_evk/mimxrt1170_evk_cm7_defconfig' Merged configuration '/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/tests/drivers/mipi_dsi/api/prj.conf' Configuration saved to '/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/twister-out/mimxrt1170_evk_cm7/tests/drivers/mipi_dsi/api/drivers.mipi_dsi.api/zephyr/.config' Kconfig header saved to '/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/twister-out/mimxrt1170_evk_cm7/tests/drivers/mipi_dsi/api/drivers.mipi_dsi.api/zephyr/include/generated/autoconf.h' -- The C compiler identification is GNU 12.1.0 -- The CXX compiler identification is GNU 12.1.0 -- The ASM compiler identification is GNU -- Found assembler: /home/ubuntu/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc Load components for MIMXRT1176: driver_common component is included. driver_reset component is included. device_CMSIS component is included. CMSIS_Include_core_cm component is included. device_system component is included. driver_lpuart component is included. driver_gpt component is included. driver_elcdif component is included. driver_igpio component is included. driver_mipi_dsi_split component is included. driver_soc_mipi_csi2rx component is included. driver_cache_armv7_m7 component is included. driver_xip_board_evkmimxrt1170 component is included. -- Configuring done -- Generating done -- Build files have been written to: /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/twister-out/mimxrt1170_evk_cm7/tests/drivers/mipi_dsi/api/drivers.mipi_dsi.api [1/198] Preparing syscall dependency handling

[2/198] Generating include/generated/version.h -- Zephyr version: 3.2.99 (/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr), build: zephyr-v3.2.0-679-g5ab62a43777d [3/198] Generating misc/generated/syscalls_subdirs.trigger [4/198] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json [5/198] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h [6/198] Generating include/generated/driver-validation.h [7/198] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h [8/198] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj [9/198] Generating include/generated/offsets.h [10/198] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj [11/198] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj [12/198] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj [13/198] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj [14/198] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj [15/198] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj [16/198] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj [17/198] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj [18/198] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj [19/198] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/multi_heap.c.obj [20/198] Building C object CMakeFiles/app.dir/src/main.c.obj [21/198] Linking C static library app/libapp.a [22/198] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj [23/198] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj [24/198] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj [25/198] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj [26/198] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj [27/198] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj [28/198] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj [29/198] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj [30/198] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj [31/198] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj [32/198] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj [33/198] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj [34/198] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj [35/198] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj [36/198] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/mipi_dsi/mipi_dsi.c.obj FAILED: zephyr/CMakeFiles/zephyr.dir/drivers/mipi_dsi/mipi_dsi.c.obj ccache /home/ubuntu/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DBOARD_FLASH_SIZE="CONFIG_FLASH_SIZE1024" -DCPU_MIMXRT1176DVMAA_cm7 -DKERNEL -DTC_RUNID=25676e98a8084a18a51558ea6506de48 -DXIP_BOOT_HEADER_DCD_ENABLE=1 -DXIP_BOOT_HEADER_ENABLE=1 -DXIP_EXTERNAL_FLASH -D_FORTIFY_SOURCE=2 -DPROGRAM_START -DZEPHYR=1 -I/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/kernel/include -I/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/arch/arm/include -I/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/include -I/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/twister-out/mimxrt1170_evk_cm7/tests/drivers/mipi_dsi/api/drivers.mipi_dsi.api/zephyr/include/generated -I/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/soc/arm/nxp_imx/rt -I/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/subsys/testsuite/include -I/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/subsys/testsuite/ztest/include -I/home/shared/disk/zephyr_project/zephyr_rt1170/modules/hal/cmsis/CMSIS/Core/Include -I/home/shared/disk/zephyr_project/zephyr_rt1170/modules/hal/nxp/mcux/mcux-sdk/devices/MIMXRT1176 -I/home/shared/disk/zephyr_project/zephyr_rt1170/modules/hal/nxp/mcux/mcux-sdk/devices/MIMXRT1176/drivers -I/home/shared/disk/zephyr_project/zephyr_rt1170/modules/hal/nxp/mcux/mcux-sdk/devices/MIMXRT1176/xip -I/home/shared/disk/zephyr_project/zephyr_rt1170/modules/hal/nxp/mcux/mcux-sdk/drivers/common -I/home/shared/disk/zephyr_project/zephyr_rt1170/modules/hal/nxp/mcux/mcux-sdk/drivers/lpuart -I/home/shared/disk/zephyr_project/zephyr_rt1170/modules/hal/nxp/mcux/mcux-sdk/drivers/gpt -I/home/shared/disk/zephyr_project/zephyr_rt1170/modules/hal/nxp/mcux/mcux-sdk/drivers/elcdif -I/home/shared/disk/zephyr_project/zephyr_rt1170/modules/hal/nxp/mcux/mcux-sdk/drivers/igpio -I/home/shared/disk/zephyr_project/zephyr_rt1170/modules/hal/nxp/mcux/mcux-sdk/drivers/mipi_dsi_split -I/home/shared/disk/zephyr_project/zephyr_rt1170/modules/hal/nxp/mcux/mcux-sdk/drivers/cache/armv7-m7 -I/home/shared/disk/zephyr_project/zephyr_rt1170/modules/hal/nxp/mcux/mcux-sdk/boards/evkmimxrt1170 -I/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/modules/hal_nxp/. -isystem /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/lib/libc/minimal/include -isystem /home/ubuntu/zephyr-sdk-0.15.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include -isystem /home/ubuntu/zephyr-sdk-0.15.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include-fixed -fno-strict-aliasing -Os -imacros /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/twister-out/mimxrt1170_evk_cm7/tests/drivers/mipi_dsi/api/drivers.mipi_dsi.api/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m7 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=/home/ubuntu/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -Werror -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/tests/drivers/mipi_dsi/api=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/shared/disk/zephyr_project/zephyr_rt1170=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT zephyr/CMakeFiles/zephyr.dir/drivers/mipi_dsi/mipi_dsi.c.obj -MF zephyr/CMakeFiles/zephyr.dir/drivers/mipi_dsi/mipi_dsi.c.obj.d -o zephyr/CMakeFiles/zephyr.dir/drivers/mipi_dsi/mipi_dsi.c.obj -c /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/drivers/mipi_dsi/mipi_dsi.c /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/drivers/mipi_dsi/mipi_dsi.c: In function 'mipi_dsi_generic_read': /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/drivers/mipi_dsi/mipi_dsi.c:34:25: error: 'EINVAL' undeclared (first use in this function) 34 | return -EINVAL; | ^~ /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/drivers/mipi_dsi/mipi_dsi.c:34:25: note: each undeclared identifier is reported only once for each function it appears in [37/198] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj [38/198] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/archarmcoreaarch32.dir/cpu_idle.S.obj [39/198] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj [40/198] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/user_work.c.obj [41/198] Building C object zephyr/arch/common/CMakeFiles/isr_tables.dir/isr_tables.c.obj [42/198] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mutex.c.obj [43/198] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nxp_imx/rt/soc_rt11xx.c.obj [44/198] Building C object zephyr/arch/common/CMakeFiles/arch__common.dir/sw_isr_common.c.obj [45/198] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/mipi_dsi/dsi_mcux.c.obj FAILED: zephyr/CMakeFiles/zephyr.dir/drivers/mipi_dsi/dsi_mcux.c.obj ccache /home/ubuntu/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DBOARD_FLASH_SIZE="CONFIG_FLASH_SIZE1024" -DCPU_MIMXRT1176DVMAA_cm7 -DKERNEL -DTC_RUNID=25676e98a8084a18a51558ea6506de48 -DXIP_BOOT_HEADER_DCD_ENABLE=1 -DXIP_BOOT_HEADER_ENABLE=1 -DXIP_EXTERNAL_FLASH -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -DZEPHYR=1 -I/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/kernel/include -I/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/arch/arm/include -I/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/include -I/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/twister-out/mimxrt1170_evk_cm7/tests/drivers/mipi_dsi/api/drivers.mipi_dsi.api/zephyr/include/generated -I/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/soc/arm/nxp_imx/rt -I/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/subsys/testsuite/include -I/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/subsys/testsuite/ztest/include -I/home/shared/disk/zephyr_project/zephyr_rt1170/modules/hal/cmsis/CMSIS/Core/Include -I/home/shared/disk/zephyr_project/zephyr_rt1170/modules/hal/nxp/mcux/mcux-sdk/devices/MIMXRT1176 -I/home/shared/disk/zephyr_project/zephyr_rt1170/modules/hal/nxp/mcux/mcux-sdk/devices/MIMXRT1176/drivers -I/home/shared/disk/zephyr_project/zephyr_rt1170/modules/hal/nxp/mcux/mcux-sdk/devices/MIMXRT1176/xip -I/home/shared/disk/zephyr_project/zephyr_rt1170/modules/hal/nxp/mcux/mcux-sdk/drivers/common -I/home/shared/disk/zephyr_project/zephyr_rt1170/modules/hal/nxp/mcux/mcux-sdk/drivers/lpuart -I/home/shared/disk/zephyr_project/zephyr_rt1170/modules/hal/nxp/mcux/mcux-sdk/drivers/gpt -I/home/shared/disk/zephyr_project/zephyr_rt1170/modules/hal/nxp/mcux/mcux-sdk/drivers/elcdif -I/home/shared/disk/zephyr_project/zephyr_rt1170/modules/hal/nxp/mcux/mcux-sdk/drivers/igpio -I/home/shared/disk/zephyr_project/zephyr_rt1170/modules/hal/nxp/mcux/mcux-sdk/drivers/mipi_dsi_split -I/home/shared/disk/zephyr_project/zephyr_rt1170/modules/hal/nxp/mcux/mcux-sdk/drivers/cache/armv7-m7 -I/home/shared/disk/zephyr_project/zephyr_rt1170/modules/hal/nxp/mcux/mcux-sdk/boards/evkmimxrt1170 -I/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/modules/hal_nxp/. -isystem /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/lib/libc/minimal/include -isystem /home/ubuntu/zephyr-sdk-0.15.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include -isystem /home/ubuntu/zephyr-sdk-0.15.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include-fixed -fno-strict-aliasing -Os -imacros /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/twister-out/mimxrt1170_evk_cm7/tests/drivers/mipi_dsi/api/drivers.mipi_dsi.api/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m7 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=/home/ubuntu/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -Werror -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/tests/drivers/mipi_dsi/api=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/shared/disk/zephyr_project/zephyr_rt1170=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT zephyr/CMakeFiles/zephyr.dir/drivers/mipi_dsi/dsi_mcux.c.obj -MF zephyr/CMakeFiles/zephyr.dir/drivers/mipi_dsi/dsi_mcux.c.obj.d -o zephyr/CMakeFiles/zephyr.dir/drivers/mipi_dsi/dsi_mcux.c.obj -c /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/drivers/mipi_dsi/dsi_mcux.c /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/drivers/mipi_dsi/dsi_mcux.c: In function 'dsi_mcux_attach': /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/drivers/mipi_dsi/dsi_mcux.c:86:9: error: implicit declaration of function 'imxrt_post_init_display_interface' [-Werror=implicit-function-declaration] 86 | imxrt_post_init_display_interface(); | ^~~~~~~~~ /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/drivers/mipi_dsi/dsi_mcux.c: In function 'display_mcux_mipi_dsi_init': /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/drivers/mipi_dsi/dsi_mcux.c:166:9: error: implicit declaration of function 'imxrt_pre_init_display_interface' [-Werror=implicit-function-declaration] 166 | imxrt_pre_init_display_interface(); | ^~~~~~~~ cc1: all warnings being treated as errors ninja: build stopped: subcommand failed.

```

**Environment (please complete the following information):**
 - OS: (e.g. Linux )
 - Toolchain (e.g Zephyr SDK)
 - Commit SHA or Version used: zephyr-v3.2.0-679-g5ab62a43777d
hakehuang commented 2 years ago
Also fails on mimxrt1170_evk_cm7 for zephyr-v3.2.0-679-g5ab62a43777d
hakehuang commented 2 years ago

@mmahadevan108

mmahadevan108 commented 2 years ago

@hakehuang This has been fixed in the latest master, can you please confirm.

hakehuang commented 2 years ago

@mmahadevan108 , yes the build zephyr-v3.2.0-1107-g117039ca2b72 is ok