Closed iha closed 1 month ago
Describe the bug west build crashes building echo_server sample.
To Reproduce Steps to reproduce the behavior: 1. west build -b mimxrt1170_evk/mimxrt1176/cm7 /home/viha/dev/tmq800/bmc/echo_server -p --build-dir /home/viha/dev/tmq800/bmc/echo_server/build/mimxrt1170_evk/mimxrt1176/cm7 -- -DBOARD_ROOT='/home/viha/dev/tmq800/bmc/external/zephyr' -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DCONF_FILE="prj.conf overlay-ws-console.conf" -DBOARD_REVISION=B
west build -b mimxrt1170_evk/mimxrt1176/cm7 /home/viha/dev/tmq800/bmc/echo_server -p --build-dir /home/viha/dev/tmq800/bmc/echo_server/build/mimxrt1170_evk/mimxrt1176/cm7 -- -DBOARD_ROOT='/home/viha/dev/tmq800/bmc/external/zephyr' -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DCONF_FILE="prj.conf overlay-ws-console.conf" -DBOARD_REVISION=B
Expected behavior No errors after west build
Impact
Logs and console output FAILED: zephyr/CMakeFiles/zephyr.dir/subsys/logging/backends/log_backend_ws.c.obj ccache /home/viha/.zephyr_ide/toolchains/zephyr-sdk-0.16.8/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DBOARD_FLASH_SIZE="CONFIG_FLASH_SIZE*1024" -DCACHE_MODE_WRITE_THROUGH -DCPU_MIMXRT1176DVMAA_cm7 -DKERNEL -DK_HEAP_MEM_POOL_SIZE=1024 -DNDEBUG -DPICOLIBC_DOUBLE_PRINTF_SCANF -DXIP_BOOT_HEADER_ENABLE=1 -DXIP_BOOT_HEADER_XMCD_ENABLE=1 -DXIP_EXTERNAL_FLASH -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/viha/dev/tmq800/bmc/external/zephyr/kernel/include -I/home/viha/dev/tmq800/bmc/external/zephyr/arch/arm/include -I/home/viha/dev/tmq800/bmc/external/zephyr/drivers/memc -I/home/viha/dev/tmq800/bmc/echo_server/build/mimxrt1170_evk/mimxrt1176/cm7/zephyr/include/generated/zephyr -I/home/viha/dev/tmq800/bmc/external/zephyr/include -I/home/viha/dev/tmq800/bmc/echo_server/build/mimxrt1170_evk/mimxrt1176/cm7/zephyr/include/generated -I/home/viha/dev/tmq800/bmc/external/zephyr/soc/nxp/imxrt -I/home/viha/dev/tmq800/bmc/external/zephyr/include/zephyr/posix -I/home/viha/dev/tmq800/bmc/external/zephyr/lib/posix/options/getopt -I/home/viha/dev/tmq800/bmc/external/zephyr/soc/nxp/imxrt/imxrt11xx/. -I/home/viha/dev/tmq800/bmc/external/zephyr/soc/nxp/imxrt/. -I/home/viha/dev/tmq800/bmc/external/zephyr/soc/nxp/imxrt/imxrt11xx -I/home/viha/dev/tmq800/bmc/external/zephyr/subsys/net/l2 -I/home/viha/dev/tmq800/bmc/external/zephyr/subsys/net/ip -I/home/viha/dev/tmq800/bmc/external/zephyr/subsys/net/lib/sockets -I/home/viha/dev/tmq800/bmc/external/zephyr/subsys/net/conn_mgr/. -I/home/viha/dev/tmq800/bmc/external/zephyr/subsys/shell/modules/kernel_service/thread/.. -I/home/viha/dev/tmq800/bmc/external/modules/hal/cmsis/CMSIS/Core/Include -I/home/viha/dev/tmq800/bmc/external/zephyr/modules/cmsis/. -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/devices/MIMXRT1176 -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/devices/MIMXRT1176/drivers -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/devices/MIMXRT1176/xip -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/drivers/common -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/drivers/caam -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/drivers/enet -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/drivers/lpuart -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/drivers/igpio -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/drivers/cache/armv7-m7 -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/drivers/ocotp -I/home/viha/dev/tmq800/bmc/external/zephyr/modules/hal_nxp/. -isystem /home/viha/dev/tmq800/bmc/external/zephyr/lib/libc/common/include -fno-strict-aliasing -Og -imacros /home/viha/dev/tmq800/bmc/echo_server/build/mimxrt1170_evk/mimxrt1176/cm7/zephyr/include/generated/zephyr/autoconf.h -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m7 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft --sysroot=/home/viha/.zephyr_ide/toolchains/zephyr-sdk-0.16.8/arm-zephyr-eabi/arm-zephyr-eabi -imacros /home/viha/dev/tmq800/bmc/external/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/home/viha/dev/tmq800/bmc/echo_server=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/viha/dev/tmq800/bmc/external/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/viha/dev/tmq800/bmc=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=picolibc.specs -D_POSIX_THREADS -std=c99 -MD -MT zephyr/CMakeFiles/zephyr.dir/subsys/logging/backends/log_backend_ws.c.obj -MF zephyr/CMakeFiles/zephyr.dir/subsys/logging/backends/log_backend_ws.c.obj.d -o zephyr/CMakeFiles/zephyr.dir/subsys/logging/backends/log_backend_ws.c.obj -c /home/viha/dev/tmq800/bmc/external/zephyr/subsys/logging/backends/log_backend_ws.c /home/viha/dev/tmq800/bmc/external/zephyr/subsys/logging/backends/log_backend_ws.c:14:10: fatal error: zephyr/logging/log_backend_ws.h: No such file or directory 14 | #include <zephyr/logging/log_backend_ws.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. [57/425] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/modules/kernel_service/version.c.obj ninja: build stopped: subcommand failed. FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /home/viha/dev/tmq800/bmc/echo_server/build/mimxrt1170_evk/mimxrt1176/cm7
FAILED: zephyr/CMakeFiles/zephyr.dir/subsys/logging/backends/log_backend_ws.c.obj ccache /home/viha/.zephyr_ide/toolchains/zephyr-sdk-0.16.8/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DBOARD_FLASH_SIZE="CONFIG_FLASH_SIZE*1024" -DCACHE_MODE_WRITE_THROUGH -DCPU_MIMXRT1176DVMAA_cm7 -DKERNEL -DK_HEAP_MEM_POOL_SIZE=1024 -DNDEBUG -DPICOLIBC_DOUBLE_PRINTF_SCANF -DXIP_BOOT_HEADER_ENABLE=1 -DXIP_BOOT_HEADER_XMCD_ENABLE=1 -DXIP_EXTERNAL_FLASH -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/viha/dev/tmq800/bmc/external/zephyr/kernel/include -I/home/viha/dev/tmq800/bmc/external/zephyr/arch/arm/include -I/home/viha/dev/tmq800/bmc/external/zephyr/drivers/memc -I/home/viha/dev/tmq800/bmc/echo_server/build/mimxrt1170_evk/mimxrt1176/cm7/zephyr/include/generated/zephyr -I/home/viha/dev/tmq800/bmc/external/zephyr/include -I/home/viha/dev/tmq800/bmc/echo_server/build/mimxrt1170_evk/mimxrt1176/cm7/zephyr/include/generated -I/home/viha/dev/tmq800/bmc/external/zephyr/soc/nxp/imxrt -I/home/viha/dev/tmq800/bmc/external/zephyr/include/zephyr/posix -I/home/viha/dev/tmq800/bmc/external/zephyr/lib/posix/options/getopt -I/home/viha/dev/tmq800/bmc/external/zephyr/soc/nxp/imxrt/imxrt11xx/. -I/home/viha/dev/tmq800/bmc/external/zephyr/soc/nxp/imxrt/. -I/home/viha/dev/tmq800/bmc/external/zephyr/soc/nxp/imxrt/imxrt11xx -I/home/viha/dev/tmq800/bmc/external/zephyr/subsys/net/l2 -I/home/viha/dev/tmq800/bmc/external/zephyr/subsys/net/ip -I/home/viha/dev/tmq800/bmc/external/zephyr/subsys/net/lib/sockets -I/home/viha/dev/tmq800/bmc/external/zephyr/subsys/net/conn_mgr/. -I/home/viha/dev/tmq800/bmc/external/zephyr/subsys/shell/modules/kernel_service/thread/.. -I/home/viha/dev/tmq800/bmc/external/modules/hal/cmsis/CMSIS/Core/Include -I/home/viha/dev/tmq800/bmc/external/zephyr/modules/cmsis/. -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/devices/MIMXRT1176 -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/devices/MIMXRT1176/drivers -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/devices/MIMXRT1176/xip -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/drivers/common -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/drivers/caam -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/drivers/enet -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/drivers/lpuart -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/drivers/igpio -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/drivers/cache/armv7-m7 -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/drivers/ocotp -I/home/viha/dev/tmq800/bmc/external/zephyr/modules/hal_nxp/. -isystem /home/viha/dev/tmq800/bmc/external/zephyr/lib/libc/common/include -fno-strict-aliasing -Og -imacros /home/viha/dev/tmq800/bmc/echo_server/build/mimxrt1170_evk/mimxrt1176/cm7/zephyr/include/generated/zephyr/autoconf.h -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m7 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft --sysroot=/home/viha/.zephyr_ide/toolchains/zephyr-sdk-0.16.8/arm-zephyr-eabi/arm-zephyr-eabi -imacros /home/viha/dev/tmq800/bmc/external/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/home/viha/dev/tmq800/bmc/echo_server=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/viha/dev/tmq800/bmc/external/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/viha/dev/tmq800/bmc=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=picolibc.specs -D_POSIX_THREADS -std=c99 -MD -MT zephyr/CMakeFiles/zephyr.dir/subsys/logging/backends/log_backend_ws.c.obj -MF zephyr/CMakeFiles/zephyr.dir/subsys/logging/backends/log_backend_ws.c.obj.d -o zephyr/CMakeFiles/zephyr.dir/subsys/logging/backends/log_backend_ws.c.obj -c /home/viha/dev/tmq800/bmc/external/zephyr/subsys/logging/backends/log_backend_ws.c /home/viha/dev/tmq800/bmc/external/zephyr/subsys/logging/backends/log_backend_ws.c:14:10: fatal error: zephyr/logging/log_backend_ws.h: No such file or directory 14 | #include <zephyr/logging/log_backend_ws.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. [57/425] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/modules/kernel_service/version.c.obj ninja: build stopped: subcommand failed. FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /home/viha/dev/tmq800/bmc/echo_server/build/mimxrt1170_evk/mimxrt1176/cm7
Environment (please complete the following information):
The bug was introduced in this commit 7408004531dc2f7c20879fed7ccaa207ba3ca10c.
My bad, I had not added the include file to the PR, fix will come shortly.
Describe the bug west build crashes building echo_server sample.
To Reproduce Steps to reproduce the behavior: 1.
west build -b mimxrt1170_evk/mimxrt1176/cm7 /home/viha/dev/tmq800/bmc/echo_server -p --build-dir /home/viha/dev/tmq800/bmc/echo_server/build/mimxrt1170_evk/mimxrt1176/cm7 -- -DBOARD_ROOT='/home/viha/dev/tmq800/bmc/external/zephyr' -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DCONF_FILE="prj.conf overlay-ws-console.conf" -DBOARD_REVISION=B
Expected behavior No errors after west build
Impact
Logs and console output
FAILED: zephyr/CMakeFiles/zephyr.dir/subsys/logging/backends/log_backend_ws.c.obj ccache /home/viha/.zephyr_ide/toolchains/zephyr-sdk-0.16.8/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DBOARD_FLASH_SIZE="CONFIG_FLASH_SIZE*1024" -DCACHE_MODE_WRITE_THROUGH -DCPU_MIMXRT1176DVMAA_cm7 -DKERNEL -DK_HEAP_MEM_POOL_SIZE=1024 -DNDEBUG -DPICOLIBC_DOUBLE_PRINTF_SCANF -DXIP_BOOT_HEADER_ENABLE=1 -DXIP_BOOT_HEADER_XMCD_ENABLE=1 -DXIP_EXTERNAL_FLASH -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/viha/dev/tmq800/bmc/external/zephyr/kernel/include -I/home/viha/dev/tmq800/bmc/external/zephyr/arch/arm/include -I/home/viha/dev/tmq800/bmc/external/zephyr/drivers/memc -I/home/viha/dev/tmq800/bmc/echo_server/build/mimxrt1170_evk/mimxrt1176/cm7/zephyr/include/generated/zephyr -I/home/viha/dev/tmq800/bmc/external/zephyr/include -I/home/viha/dev/tmq800/bmc/echo_server/build/mimxrt1170_evk/mimxrt1176/cm7/zephyr/include/generated -I/home/viha/dev/tmq800/bmc/external/zephyr/soc/nxp/imxrt -I/home/viha/dev/tmq800/bmc/external/zephyr/include/zephyr/posix -I/home/viha/dev/tmq800/bmc/external/zephyr/lib/posix/options/getopt -I/home/viha/dev/tmq800/bmc/external/zephyr/soc/nxp/imxrt/imxrt11xx/. -I/home/viha/dev/tmq800/bmc/external/zephyr/soc/nxp/imxrt/. -I/home/viha/dev/tmq800/bmc/external/zephyr/soc/nxp/imxrt/imxrt11xx -I/home/viha/dev/tmq800/bmc/external/zephyr/subsys/net/l2 -I/home/viha/dev/tmq800/bmc/external/zephyr/subsys/net/ip -I/home/viha/dev/tmq800/bmc/external/zephyr/subsys/net/lib/sockets -I/home/viha/dev/tmq800/bmc/external/zephyr/subsys/net/conn_mgr/. -I/home/viha/dev/tmq800/bmc/external/zephyr/subsys/shell/modules/kernel_service/thread/.. -I/home/viha/dev/tmq800/bmc/external/modules/hal/cmsis/CMSIS/Core/Include -I/home/viha/dev/tmq800/bmc/external/zephyr/modules/cmsis/. -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/devices/MIMXRT1176 -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/devices/MIMXRT1176/drivers -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/devices/MIMXRT1176/xip -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/drivers/common -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/drivers/caam -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/drivers/enet -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/drivers/lpuart -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/drivers/igpio -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/drivers/cache/armv7-m7 -I/home/viha/dev/tmq800/bmc/external/modules/hal/nxp/mcux/mcux-sdk/drivers/ocotp -I/home/viha/dev/tmq800/bmc/external/zephyr/modules/hal_nxp/. -isystem /home/viha/dev/tmq800/bmc/external/zephyr/lib/libc/common/include -fno-strict-aliasing -Og -imacros /home/viha/dev/tmq800/bmc/echo_server/build/mimxrt1170_evk/mimxrt1176/cm7/zephyr/include/generated/zephyr/autoconf.h -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m7 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft --sysroot=/home/viha/.zephyr_ide/toolchains/zephyr-sdk-0.16.8/arm-zephyr-eabi/arm-zephyr-eabi -imacros /home/viha/dev/tmq800/bmc/external/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/home/viha/dev/tmq800/bmc/echo_server=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/viha/dev/tmq800/bmc/external/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/viha/dev/tmq800/bmc=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=picolibc.specs -D_POSIX_THREADS -std=c99 -MD -MT zephyr/CMakeFiles/zephyr.dir/subsys/logging/backends/log_backend_ws.c.obj -MF zephyr/CMakeFiles/zephyr.dir/subsys/logging/backends/log_backend_ws.c.obj.d -o zephyr/CMakeFiles/zephyr.dir/subsys/logging/backends/log_backend_ws.c.obj -c /home/viha/dev/tmq800/bmc/external/zephyr/subsys/logging/backends/log_backend_ws.c /home/viha/dev/tmq800/bmc/external/zephyr/subsys/logging/backends/log_backend_ws.c:14:10: fatal error: zephyr/logging/log_backend_ws.h: No such file or directory 14 | #include <zephyr/logging/log_backend_ws.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. [57/425] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/modules/kernel_service/version.c.obj ninja: build stopped: subcommand failed. FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /home/viha/dev/tmq800/bmc/echo_server/build/mimxrt1170_evk/mimxrt1176/cm7
Environment (please complete the following information):