zephyrproject-rtos / test_results

Consolidated test results
7 stars 12 forks source link

tests-ci : logging: add: async test Build failure #1416

Closed hakehuang closed 1 year ago

hakehuang commented 1 year ago
**Describe the bug**
async test is Build failure on zephyr-v3.2.0-326-ge97e24e7a619 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 logging.add
```
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/subsys/logging/log_core_additional -- 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_test/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_test/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/subsys/logging/log_core_additional/logging.add.async/zephyr/zephyr.dts -- Generated devicetree_generated.h: /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/twister-out/mimxrt1170_evk_cm7/subsys/logging/log_core_additional/logging.add.async/zephyr/include/generated/devicetree_generated.h -- Including generated dts.cmake file: /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/twister-out/mimxrt1170_evk_cm7/subsys/logging/log_core_additional/logging.add.async/zephyr/dts.cmake Parsing /home/shared/disk/zephyr_project/zephyr_test/zephyr/Kconfig Loaded configuration '/home/shared/disk/zephyr_project/zephyr_test/zephyr/boards/arm/mimxrt1170_evk/mimxrt1170_evk_cm7_defconfig' Merged configuration '/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/tests/subsys/logging/log_core_additional/prj.conf' Configuration saved to '/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/twister-out/mimxrt1170_evk_cm7/subsys/logging/log_core_additional/logging.add.async/zephyr/.config' Kconfig header saved to '/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/twister-out/mimxrt1170_evk_cm7/subsys/logging/log_core_additional/logging.add.async/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_igpio 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/subsys/logging/log_core_additional/logging.add.async [1/170] Preparing syscall dependency handling

[2/170] Generating include/generated/version.h -- Zephyr version: 3.2.99 (/home/shared/disk/zephyr_project/zephyr_test/zephyr), build: zephyr-v3.2.0-326-ge97e24e7a619 [3/170] Generating misc/generated/syscalls_subdirs.trigger [4/170] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json [5/170] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h [6/170] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h [7/170] Generating include/generated/driver-validation.h [8/170] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj [9/170] Generating include/generated/offsets.h [10/170] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj [11/170] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj [12/170] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj [13/170] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj [14/170] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj [15/170] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj [16/170] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj [17/170] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj [18/170] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/multi_heap.c.obj [19/170] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj [20/170] Building C object CMakeFiles/app.dir/src/log_test_user.c.obj [21/170] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj [22/170] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj [23/170] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj [24/170] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj [25/170] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj [26/170] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj [27/170] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj [28/170] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj [29/170] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj [30/170] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj [31/170] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj [32/170] Building C object CMakeFiles/app.dir/src/log_test.c.obj FAILED: CMakeFiles/app.dir/src/log_test.c.obj ccache /home/ubuntu/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DBOARD_FLASH_SIZE="CONFIG_FLASH_SIZE*1024" -DCPU_MIMXRT1176DVMAA_cm7 -DKERNEL -DTC_RUNID=bfd75391c32751b8d5d4056993ad8548 -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_test/zephyr/include -I/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/twister-out/mimxrt1170_evk_cm7/subsys/logging/log_core_additional/logging.add.async/zephyr/include/generated -I/home/shared/disk/zephyr_project/zephyr_test/zephyr/soc/arm/nxp_imx/rt -I/home/shared/disk/zephyr_project/zephyr_test/zephyr/subsys/testsuite/include -I/home/shared/disk/zephyr_project/zephyr_test/zephyr/subsys/testsuite/ztest/include -I/home/shared/disk/zephyr_project/zephyr_test/modules/hal/cmsis/CMSIS/Core/Include -I/home/shared/disk/zephyr_project/zephyr_test/modules/hal/nxp/mcux/mcux-sdk/devices/MIMXRT1176 -I/home/shared/disk/zephyr_project/zephyr_test/modules/hal/nxp/mcux/mcux-sdk/devices/MIMXRT1176/drivers -I/home/shared/disk/zephyr_project/zephyr_test/modules/hal/nxp/mcux/mcux-sdk/devices/MIMXRT1176/xip -I/home/shared/disk/zephyr_project/zephyr_test/modules/hal/nxp/mcux/mcux-sdk/drivers/common -I/home/shared/disk/zephyr_project/zephyr_test/modules/hal/nxp/mcux/mcux-sdk/drivers/lpuart -I/home/shared/disk/zephyr_project/zephyr_test/modules/hal/nxp/mcux/mcux-sdk/drivers/gpt -I/home/shared/disk/zephyr_project/zephyr_test/modules/hal/nxp/mcux/mcux-sdk/drivers/igpio -I/home/shared/disk/zephyr_project/zephyr_test/modules/hal/nxp/mcux/mcux-sdk/drivers/cache/armv7-m7 -I/home/shared/disk/zephyr_project/zephyr_test/modules/hal/nxp/mcux/mcux-sdk/boards/evkmimxrt1170 -I/home/shared/disk/zephyr_project/zephyr_test/zephyr/modules/hal_nxp/. -isystem /home/shared/disk/zephyr_project/zephyr_test/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/subsys/logging/log_core_additional/logging.add.async/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_test/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/subsys/logging/log_core_additional=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/shared/disk/zephyr_project/zephyr_test/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/shared/disk/zephyr_project/zephyr_test=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/src/log_test.c.obj -MF CMakeFiles/app.dir/src/log_test.c.obj.d -o CMakeFiles/app.dir/src/log_test.c.obj -c /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/tests/subsys/logging/log_core_additional/src/log_test.c In file included from /home/shared/disk/zephyr_project/zephyr_test/zephyr/subsys/testsuite/ztest/include/zephyr/ztest.h:49, from /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/tests/subsys/logging/log_core_additional/src/log_test.c:16: /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/tests/subsys/logging/log_core_additional/src/log_test.c: In function 'process': /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/tests/subsys/logging/log_core_additional/src/log_test.c:74:64: error: 'Z_LOG_LOCAL_DOMAIN_ID' undeclared (first use in this function) 74 | zassert_equal(log_msg_get_domain(&(msg->log)), Z_LOG_LOCAL_DOMAIN_ID, | ^~~~~ /home/shared/disk/zephyr_project/zephyr_test/zephyr/subsys/testsuite/ztest/include/zephyr/ztest_assert.h:136:39: note: in definition of macro '_zassert_base' 136 | bool _ret = z_zassert(cond, _msg ? ("(" default_msg ")") : (default_msg), FILE,\ | ^~~~ /home/shared/disk/zephyr_project/zephyr_test/zephyr/subsys/testsuite/ztest/include/zephyr/ztest_assert.h:150:9: note: in expansion of macro '_zassert_va' 150 | _zassert_va(cond, default_msg, COND_CODE_1(__VA_OPT(1), (VA_ARGS), (NULL))) | ^~~ /home/shared/disk/zephyr_project/zephyr_test/zephyr/subsys/testsuite/ztest/include/zephyr/ztest_assert.h:239:34: note: in expansion of macro 'zassert' 239 | #define zassert_equal(a, b, ...) zassert((a) == (b), #a " not equal to " #b, ##VA_ARGS) | ^~~ /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/tests/subsys/logging/log_core_additional/src/log_test.c:74:17: note: in expansion of macro 'zassert_equal' 74 | zassert_equal(log_msg_get_domain(&(msg->log)), Z_LOG_LOCAL_DOMAIN_ID, | ^~~~~ /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/tests/subsys/logging/log_core_additional/src/log_test.c:74:64: note: each undeclared identifier is reported only once for each function it appears in 74 | zassert_equal(log_msg_get_domain(&(msg->log)), Z_LOG_LOCAL_DOMAIN_ID, | ^~~~~ /home/shared/disk/zephyr_project/zephyr_test/zephyr/subsys/testsuite/ztest/include/zephyr/ztest_assert.h:136:39: note: in definition of macro '_zassert_base' 136 | bool _ret = z_zassert(cond, _msg ? ("(" default_msg ")") : (default_msg), FILE,\ | ^~~~ /home/shared/disk/zephyr_project/zephyr_test/zephyr/subsys/testsuite/ztest/include/zephyr/ztest_assert.h:150:9: note: in expansion of macro '_zassert_va' 150 | _zassert_va(cond, default_msg, COND_CODE_1(VA_OPT(1), (VA_ARGS), (NULL))) | ^~~ /home/shared/disk/zephyr_project/zephyr_test/zephyr/subsys/testsuite/ztest/include/zephyr/ztest_assert.h:239:34: note: in expansion of macro 'zassert' 239 | #define zassert_equal(a, b, ...) zassert((a) == (b), #a " not equal to " #b, ##__VA_ARGS__) | ^~~ /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/tests/subsys/logging/log_core_additional/src/log_test.c:74:17: note: in expansion of macro 'zassert_equal' 74 | zassert_equal(log_msg_get_domain(&(msg->log)), Z_LOG_LOCAL_DOMAIN_ID, | ^~~~~ In file included from /home/shared/disk/zephyr_project/zephyr_test/zephyr/include/zephyr/logging/log_backend.h:9, from /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/tests/subsys/logging/log_core_additional/src/log_test.c:17: /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/tests/subsys/logging/log_core_additional/src/log_test.c: In function 'test_log_core_additional_test_log_msg_create': /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/tests/subsys/logging/log_core_additional/src/log_test.c:464:27: error: 'Z_LOG_LOCAL_DOMAIN_ID' undeclared (first use in this function) 464 | Z_LOG_LOCAL_DOMAIN_ID, NULL, | ^~~~~ /home/shared/disk/zephyr_project/zephyr_test/zephyr/include/zephyr/logging/log_msg.h:134:19: note: in definition of macro 'Z_LOG_MSG_DESC_INITIALIZER' 134 | .domain = _domain_id, \ | ^~~~~~ /home/shared/disk/zephyr_project/zephyr_test/zephyr/include/zephyr/logging/log_msg.h:411:17: note: in expansion of macro 'Z_LOG_MSG2_SIMPLE_CREATE' 411 | Z_LOG_MSG2_SIMPLE_CREATE(_cstr_cnt, _domain_id, _source, \ | ^~~~~~~~ /home/shared/disk/zephyr_project/zephyr_test/zephyr/include/zephyr/logging/log_msg.h:449:9: note: in expansion of macro 'Z_LOG_MSG2_CREATE3' 449 | Z_LOG_MSG2_CREATE3(_try_0cpy, _mode, _cstr_cnt, _domain_id, _source,\ | ^~~~~~ /home/shared/disk/zephyr_project/zephyr_test/zephyr/include/zephyr/logging/log_msg.h:460:9: note: in expansion of macro 'Z_LOG_MSG2_CREATE2' 460 | Z_LOG_MSG2_CREATE2(_try_0cpy, _mode, UTIL_CAT(Z_LOG_FUNCPREFIX, _level), \ | ^~~~~~ /home/shared/disk/zephyr_project/zephyr_rt1170/zephyr/tests/subsys/logging/log_core_additional/src/log_test.c:463:17: note: in expansion of macro 'Z_LOG_MSG2_CREATE' 463 | Z_LOG_MSG2_CREATE(!IS_ENABLED(CONFIG_USERSPACE), mode, | ^~~~~ [33/170] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj [34/170] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj [35/170] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nxp_imx/rt/soc_rt11xx.c.obj [36/170] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_mgmt.c.obj [37/170] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_core.c.obj [38/170] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_output.c.obj [39/170] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj [40/170] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_msg.c.obj [41/170] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/backends/log_backend_uart.c.obj 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-326-ge97e24e7a619
hakehuang commented 1 year ago
Also fails on mimxrt1170_evk_cm7 for zephyr-v3.2.0-326-ge97e24e7a619