PS C:\west> west build -b nrf9160dk_nrf9160_ns -s c:\test --pristine                                                                                                    -- west build: making build dir C:\west\build pristine                                                                                                                      -- west build: generating a build system                                                                                                                                      Including boilerplate (Zephyr base): C:/west/zephyr/cmake/app/boilerplate.cmake                                                                                             -- Application: C:/test                                                                                                                                                   -- Using NCS Toolchain 2.9.20250402.48205110811 for building. (C:/ncs/toolchains/0b393f9e1b/cmake)                                                                            -- Zephyr version: 2.7.99 (C:/west/zephyr), build: v2.7.99-ncs1                                                                                                             -- Found Python3: C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable exact version "3.12.4") found components: Interpreter                                       -- Found west (found suitable version "1.2.0", minimum required is "0.7.1")                                                                                                   -- Board: nrf9160dk_nrf9160_ns, Revision: 0.7.0                                                                                                                               -- Cache files will be written to: C:/west/zephyr/.cache                                                                                                                    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)                                                                                              -- Found dtc: C:/ncs/toolchains/0b393f9e1b/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")                                                      -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)                                                                                               -- Found BOARD.dts: C:/west/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns.dts                                                                                    -- Found devicetree overlay: C:/test/boards/nrf9160dk_nrf9160_ns.overlay                                                                                                  -- Generated zephyr.dts: C:/west/build/zephyr/zephyr.dts                                                                                                                    -- Generated devicetree_unfixed.h: C:/west/build/zephyr/include/generated/devicetree_unfixed.h                                                                              -- Generated device_extern.h: C:/west/build/zephyr/include/generated/device_extern.h                                                                                        -- Including generated dts.cmake file: C:/west/build/zephyr/dts.cmake                                                                                                       Parsing C:/west/zephyr/Kconfig                                                                                                                                              Loaded configuration 'C:/west/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns_defconfig'                                                                           Merged configuration 'C:/test/prj.conf'                                                                                                                                   Configuration saved to 'C:/west/build/zephyr/.config'                                                                                                                       Kconfig header saved to 'C:/west/build/zephyr/include/generated/autoconf.h'                                                                                                 -- The C compiler identification is GNU 12.2.0                                                                                                                                -- The CXX compiler identification is GNU 12.2.0                                                                                                                              -- The ASM compiler identification is GNU                                                                                                                                     -- Found assembler: C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe                                                                   ←[0mChanged board to secure nrf9160dk_nrf9160 (NOT NS)←[0m                                                                                                                    ←[0m                                                                                                                                                                          === child image spm -  begin ===←[0m                                                                                                                                          loading initial cache file C:/west/build/spm/child_image_preload.cmake                                                                                                      Including boilerplate (Zephyr base): C:/west/zephyr/cmake/app/boilerplate.cmake                                                                                             -- Application: C:/west/nrf/samples/spm                                                                                                                                     -- Using NCS Toolchain 2.9.20250402.48205110811 for building. (C:/ncs/toolchains/0b393f9e1b/cmake)                                                                            -- Zephyr version: 2.7.99 (C:/west/zephyr), build: v2.7.99-ncs1                                                                                                             -- Found Python3: C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable exact version "3.12.4") found components: Interpreter                                       -- Found west (found suitable version "1.2.0", minimum required is "0.7.1")                                                                                                   -- Board: nrf9160dk_nrf9160, Revision: 0.7.0                                                                                                                                  -- Cache files will be written to: C:/west/zephyr/.cache                                                                                                                    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)                                                                                              -- Found dtc: C:/ncs/toolchains/0b393f9e1b/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")                                                      -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)                                                                                               -- Found BOARD.dts: C:/west/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts                                                                                       -- Found devicetree overlay: C:/west/nrf/samples/spm/nrf9160dk_nrf9160.overlay                                                                                              -- Generated zephyr.dts: C:/west/build/spm/zephyr/zephyr.dts                                                                                                                -- Generated devicetree_unfixed.h: C:/west/build/spm/zephyr/include/generated/devicetree_unfixed.h                                                                          -- Generated device_extern.h: C:/west/build/spm/zephyr/include/generated/device_extern.h                                                                                    -- Including generated dts.cmake file: C:/west/build/spm/zephyr/dts.cmake                                                                                                   Parsing C:/west/zephyr/Kconfig                                                                                                                                              Loaded configuration 'C:/west/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig'                                                                              Merged configuration 'C:/west/nrf/samples/spm/prj.conf'                                                                                                                     Merged configuration 'C:/west/nrf/samples/spm/boards/nrf9160dk_nrf9160.conf'                                                                                                Merged configuration 'C:/west/nrf/subsys/partition_manager/partition_manager_enabled.conf'                                                                                  Merged configuration 'C:/west/build/spm/zephyr/misc/generated/extra_kconfig_options.conf'                                                                                   Configuration saved to 'C:/west/build/spm/zephyr/.config'                                                                                                                   Kconfig header saved to 'C:/west/build/spm/zephyr/include/generated/autoconf.h'                                                                                             -- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
CMake Warning at C:/west/zephyr/CMakeLists.txt:1687 (message):
  __ASSERT() statements are globally ENABLED


-- Configuring done (5.8s)
-- Generating done (0.7s)
-- Build files have been written to: C:/west/build/spm
←[0m=== child image spm -  end ===
←[0m
Dropping partition 'nrf_modem_lib_trace' since its size is 0.
-- Configuring done (12.3s)
-- Generating done (0.5s)
-- Build files have been written to: C:/west/build
-- west build: building application
[5/189] Performing build step for 'spm_subimage'
[112/264] Building C object zephyr/CMakeFiles/zephyr.dir/C_/west/nrf/subsys/spm/spm.c.obj
In function 'usel_or_split',
    inlined from 'config_peripheral.constprop' at C:/west/nrf/subsys/spm/spm.c:268:6:
C:/west/nrf/subsys/spm/spm.c:231:48: warning: array subscript 128 is above array bounds of 'volatile SPU_PERIPHID_Type[67]' [-Warray-bounds]
  231 |         const uint32_t perm = NRF_SPU->PERIPHID[id].PERM;
In file included from C:/west/modules/hal/nordic/nrfx/mdk/nrf.h:186,
                 from C:/west/modules/hal/nordic/nrfx/drivers/nrfx_common.h:41,
                 from C:/west/modules/hal/nordic/nrfx/nrfx.h:38,
                 from C:\west\zephyr\soc\arm\nordic_nrf\common\soc_nrf_common.h:14,
                 from C:/west/zephyr/soc/arm/nordic_nrf/nrf91/soc.h:14,
                 from C:/west/zephyr/include/arch/arm/aarch32/cortex_m/cmsis.h:17,
                 from C:/west/zephyr/include/arch/arm/aarch32/mpu/arm_mpu_v8m.h:10,
                 from C:/west/zephyr/include/arch/arm/aarch32/mpu/arm_mpu.h:18,
                 from C:/west/zephyr/include/arch/arm/aarch32/arch.h:189,
                 from C:/west/zephyr/include/arch/cpu.h:19,
                 from C:/west/zephyr/include/kernel_includes.h:33,
                 from C:/west/zephyr/include/kernel.h:17,
                 from C:/west/zephyr/include/zephyr.h:18,
                 from C:/west/nrf/subsys/spm/spm.c:7:
C:/west/modules/hal/nordic/nrfx/mdk/nrf9160.h: In function 'config_peripheral.constprop':
C:/west/modules/hal/nordic/nrfx/mdk/nrf9160.h:821:27: note: while referencing 'PERIPHID'
  821 |   __IOM SPU_PERIPHID_Type PERIPHID[67];         /*!< (@ 0x00000800) Unspecified                                                */
      |                           ^~~~~~~~
[143/264] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj
C:/west/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c: In function 'z_arm_configure_dynamic_mpu_regions':
C:/west/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: warning: 'arm_core_mpu_configure_dynamic_mpu_regions' reading 12 bytes from a region of size 0 [-Wstringop-overread]
  307 |         arm_core_mpu_configure_dynamic_mpu_regions(dynamic_regions,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  308 |                                                    region_num);
      |                                                    ~~~~~~~~~~~
C:/west/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: note: referencing argument 1 of type 'const struct z_arm_mpu_partition[0]'
In file included from C:/west/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:13:
C:/west/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu_dev.h:187:6: note: in a call to function 'arm_core_mpu_configure_dynamic_mpu_regions'
  187 | void arm_core_mpu_configure_dynamic_mpu_regions(
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: warning: 'arm_core_mpu_configure_dynamic_mpu_regions' reading 12 bytes from a region of size 0 [-Wstringop-overread]
  307 |         arm_core_mpu_configure_dynamic_mpu_regions(dynamic_regions,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  308 |                                                    region_num);
      |                                                    ~~~~~~~~~~~
C:/west/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: note: referencing argument 1 of type 'const struct z_arm_mpu_partition[0]'
C:/west/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu_dev.h:187:6: note: in a call to function 'arm_core_mpu_configure_dynamic_mpu_regions'
  187 | void arm_core_mpu_configure_dynamic_mpu_regions(
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: warning: 'arm_core_mpu_configure_dynamic_mpu_regions' reading 12 bytes from a region of size 0 [-Wstringop-overread]
  307 |         arm_core_mpu_configure_dynamic_mpu_regions(dynamic_regions,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  308 |                                                    region_num);
      |                                                    ~~~~~~~~~~~
C:/west/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: note: referencing argument 1 of type 'const struct z_arm_mpu_partition[0]'
C:/west/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu_dev.h:187:6: note: in a call to function 'arm_core_mpu_configure_dynamic_mpu_regions'
  187 | void arm_core_mpu_configure_dynamic_mpu_regions(
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[254/264] Linking C executable zephyr\zephyr_pre0.elf; Logical command for additional byproducts on target: zephyr_pre0

[258/264] Linking C executable zephyr\zephyr_pre1.elf; Logical command for additional byproducts on target: zephyr_pre1

[264/264] Linking C executable zephyr\zephyr.elf; Generating files from zephyr.elf for board: nrf9160dk_nrf9160
Memory region         Used Size  Region Size  %age Used
           FLASH:         64 KB        64 KB    100.00%
            SRAM:       12008 B        32 KB     36.65%
        IDT_LIST:          0 GB         2 KB      0.00%
[57/189] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj
C:/west/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c: In function 'z_arm_configure_dynamic_mpu_regions':
C:/west/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: warning: 'arm_core_mpu_configure_dynamic_mpu_regions' reading 12 bytes from a region of size 0 [-Wstringop-overread]
  307 |         arm_core_mpu_configure_dynamic_mpu_regions(dynamic_regions,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  308 |                                                    region_num);
      |                                                    ~~~~~~~~~~~
C:/west/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: note: referencing argument 1 of type 'const struct z_arm_mpu_partition[0]'
In file included from C:/west/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:13:
C:/west/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu_dev.h:187:6: note: in a call to function 'arm_core_mpu_configure_dynamic_mpu_regions'
  187 | void arm_core_mpu_configure_dynamic_mpu_regions(
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: warning: 'arm_core_mpu_configure_dynamic_mpu_regions' reading 12 bytes from a region of size 0 [-Wstringop-overread]
  307 |         arm_core_mpu_configure_dynamic_mpu_regions(dynamic_regions,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  308 |                                                    region_num);
      |                                                    ~~~~~~~~~~~
C:/west/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: note: referencing argument 1 of type 'const struct z_arm_mpu_partition[0]'
C:/west/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu_dev.h:187:6: note: in a call to function 'arm_core_mpu_configure_dynamic_mpu_regions'
  187 | void arm_core_mpu_configure_dynamic_mpu_regions(
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: warning: 'arm_core_mpu_configure_dynamic_mpu_regions' reading 12 bytes from a region of size 0 [-Wstringop-overread]
  307 |         arm_core_mpu_configure_dynamic_mpu_regions(dynamic_regions,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  308 |                                                    region_num);
      |                                                    ~~~~~~~~~~~
C:/west/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: note: referencing argument 1 of type 'const struct z_arm_mpu_partition[0]'
C:/west/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu_dev.h:187:6: note: in a call to function 'arm_core_mpu_configure_dynamic_mpu_regions'
  187 | void arm_core_mpu_configure_dynamic_mpu_regions(
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[98/189] Building C object zephyr/drivers/sensor/lis3mdl/CMakeFiles/drivers__sensor__lis3mdl.dir/lis3mdl.c.obj
FAILED: zephyr/drivers/sensor/lis3mdl/CMakeFiles/drivers__sensor__lis3mdl.dir/lis3mdl.c.obj
C:\ncs\toolchains\0b393f9e1b\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DBUILD_VERSION=v2.7.99-ncs1 -DEXT_API_MAGIC=0x281ee6de,0xb845acea,23298 -DFIRMWARE_INFO_MAGIC=0x281ee6de,0x8fcebb4c,23298 -DKERNEL -DNRF9160_XXAA -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_TRUSTZONE_NONSECURE -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR_SUPERVISOR__ -D__ZEPHYR__=1 -IC:/west/zephyr/include -IC:/west/build/zephyr/include/generated -IC:/west/zephyr/soc/arm/nordic_nrf/nrf91 -IC:/west/zephyr/soc/arm/nordic_nrf/common/. -IC:/west/nrf/include -IC:/west/modules/hal/cmsis/CMSIS/Core/Include -IC:/west/modules/hal/nordic/nrfx -IC:/west/modules/hal/nordic/nrfx/drivers/include -IC:/west/modules/hal/nordic/nrfx/mdk -IC:/west/zephyr/modules/hal_nordic/nrfx/. -IC:/west/nrfxlib/nrf_modem/include -isystem C:/west/zephyr/lib/libc/minimal/include -isystem c:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include -isystem c:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include-fixed -Os -imacros C:/west/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee -imacros C:/west/zephyr/include/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-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/test=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/west/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/west=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT zephyr/drivers/sensor/lis3mdl/CMakeFiles/drivers__sensor__lis3mdl.dir/lis3mdl.c.obj -MF zephyr\drivers\sensor\lis3mdl\CMakeFiles\drivers__sensor__lis3mdl.dir\lis3mdl.c.obj.d -o zephyr/drivers/sensor/lis3mdl/CMakeFiles/drivers__sensor__lis3mdl.dir/lis3mdl.c.obj -c C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl.c
In file included from C:/west/zephyr/include/arch/arm/aarch32/arch.h:20,
                 from C:/west/zephyr/include/arch/cpu.h:19,
                 from C:/west/zephyr/include/kernel_includes.h:33,
                 from C:/west/zephyr/include/kernel.h:17,
                 from C:/west/zephyr/include/init.h:11,
                 from C:/west/zephyr/include/device.h:29,
                 from C:/west/zephyr/include/drivers/i2c.h:23,
                 from C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl.c:9:
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl.c: In function 'lis3mdl_sample_fetch':
C:/west/zephyr/include/devicetree.h:305:40: error: 'DT_N_INST_0_st_lis3mdl_magn_REG_IDX_0_VAL_ADDRESS' undeclared (first use in this function)
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                                        ^~~~~~~~~
C:/west/zephyr/include/devicetree.h:3022:24: note: in definition of macro 'DT_CAT'
 3022 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
C:/west/zephyr/include/devicetree.h:2681:44: note: in expansion of macro 'DT_REG_ADDR_BY_IDX'
 2681 | #define DT_INST_REG_ADDR_BY_IDX(inst, idx) DT_REG_ADDR_BY_IDX(DT_DRV_INST(inst), idx)
      |                                            ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_internal.h:98:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
   98 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
      |                          ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/devicetree.h:305:31: note: in expansion of macro 'UTIL_CAT'
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                               ^~~~~~~~
C:/west/zephyr/include/devicetree.h:2434:27: note: in expansion of macro 'DT_INST'
 2434 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
      |                           ^~~~~~~
C:/west/zephyr/include/devicetree.h:2681:63: note: in expansion of macro 'DT_DRV_INST'
 2681 | #define DT_INST_REG_ADDR_BY_IDX(inst, idx) DT_REG_ADDR_BY_IDX(DT_DRV_INST(inst), idx)
      |                                                               ^~~~~~~~~~~
C:/west/zephyr/include/devicetree.h:2715:32: note: in expansion of macro 'DT_INST_REG_ADDR_BY_IDX'
 2715 | #define DT_INST_REG_ADDR(inst) DT_INST_REG_ADDR_BY_IDX(inst, 0)
      |                                ^~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl.c:69:43: note: in expansion of macro 'DT_INST_REG_ADDR'
   69 |         if (i2c_burst_read(drv_data->i2c, DT_INST_REG_ADDR(0),
      |                                           ^~~~~~~~~~~~~~~~
C:/west/zephyr/include/devicetree.h:305:40: note: each undeclared identifier is reported only once for each function it appears in
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                                        ^~~~~~~~~
C:/west/zephyr/include/devicetree.h:3022:24: note: in definition of macro 'DT_CAT'
 3022 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
C:/west/zephyr/include/devicetree.h:2681:44: note: in expansion of macro 'DT_REG_ADDR_BY_IDX'
 2681 | #define DT_INST_REG_ADDR_BY_IDX(inst, idx) DT_REG_ADDR_BY_IDX(DT_DRV_INST(inst), idx)
      |                                            ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_internal.h:98:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
   98 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
      |                          ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/devicetree.h:305:31: note: in expansion of macro 'UTIL_CAT'
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                               ^~~~~~~~
C:/west/zephyr/include/devicetree.h:2434:27: note: in expansion of macro 'DT_INST'
 2434 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
      |                           ^~~~~~~
C:/west/zephyr/include/devicetree.h:2681:63: note: in expansion of macro 'DT_DRV_INST'
 2681 | #define DT_INST_REG_ADDR_BY_IDX(inst, idx) DT_REG_ADDR_BY_IDX(DT_DRV_INST(inst), idx)
      |                                                               ^~~~~~~~~~~
C:/west/zephyr/include/devicetree.h:2715:32: note: in expansion of macro 'DT_INST_REG_ADDR_BY_IDX'
 2715 | #define DT_INST_REG_ADDR(inst) DT_INST_REG_ADDR_BY_IDX(inst, 0)
      |                                ^~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl.c:69:43: note: in expansion of macro 'DT_INST_REG_ADDR'
   69 |         if (i2c_burst_read(drv_data->i2c, DT_INST_REG_ADDR(0),
      |                                           ^~~~~~~~~~~~~~~~
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl.c: In function 'lis3mdl_init':
C:/west/zephyr/include/devicetree.h:305:40: error: 'DT_N_INST_0_st_lis3mdl_magn_BUS_P_label' undeclared (first use in this function)
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                                        ^~~~~~~~~
C:/west/zephyr/include/devicetree.h:3022:24: note: in definition of macro 'DT_CAT'
 3022 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
C:/west/zephyr/include/devicetree.h:2390:31: note: in expansion of macro 'DT_PROP'
 2390 | #define DT_BUS_LABEL(node_id) DT_PROP(DT_BUS(node_id), label)
      |                               ^~~~~~~
C:/west/zephyr/include/devicetree.h:2383:25: note: in expansion of macro 'DT_CAT'
 2383 | #define DT_BUS(node_id) DT_CAT(node_id, _BUS)
      |                         ^~~~~~
C:/west/zephyr/include/devicetree.h:2390:39: note: in expansion of macro 'DT_BUS'
 2390 | #define DT_BUS_LABEL(node_id) DT_PROP(DT_BUS(node_id), label)
      |                                       ^~~~~~
C:/west/zephyr/include/devicetree.h:2771:33: note: in expansion of macro 'DT_BUS_LABEL'
 2771 | #define DT_INST_BUS_LABEL(inst) DT_BUS_LABEL(DT_DRV_INST(inst))
      |                                 ^~~~~~~~~~~~
C:/west/zephyr/include/sys/util_internal.h:98:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
   98 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
      |                          ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/devicetree.h:305:31: note: in expansion of macro 'UTIL_CAT'
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                               ^~~~~~~~
C:/west/zephyr/include/devicetree.h:2434:27: note: in expansion of macro 'DT_INST'
 2434 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
      |                           ^~~~~~~
C:/west/zephyr/include/devicetree.h:2771:46: note: in expansion of macro 'DT_DRV_INST'
 2771 | #define DT_INST_BUS_LABEL(inst) DT_BUS_LABEL(DT_DRV_INST(inst))
      |                                              ^~~~~~~~~~~
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl.c:109:44: note: in expansion of macro 'DT_INST_BUS_LABEL'
  109 |         drv_data->i2c = device_get_binding(DT_INST_BUS_LABEL(0));
      |                                            ^~~~~~~~~~~~~~~~~
In file included from C:/west/zephyr/include/toolchain.h:50,
                 from C:/west/zephyr/include/init.h:10:
C:/west/zephyr/include/sys/cbprintf_internal.h:266:22: error: expression in static assertion is not an integer
  266 |         BUILD_ASSERT(!((sizeof(double) < VA_STACK_ALIGN(long double)) && \
      |                      ^
C:/west/zephyr/include/toolchain/gcc.h:61:51: note: in definition of macro 'BUILD_ASSERT'
   61 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
      |                                                   ^~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:292:9: note: in expansion of macro 'Z_CBPRINTF_PACK_ARG2'
  292 |         Z_CBPRINTF_PACK_ARG2(_pbuf, _pkg_len, _pkg_offset, _pmax, _flags, \
      |         ^~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_loops.h:1075:9: note: in expansion of macro 'Z_CBPRINTF_PACK_ARG'
 1075 |         fixed_arg0(x)
      |         ^~~~~~~~~~
C:/west/zephyr/include/sys/util_loops.h:33:9: note: in expansion of macro 'Z_FOR_EACH_EXEC'
   33 |         z_call(1, x, fixed_arg0, fixed_arg1)
      |         ^~~~~~
C:/west/zephyr/include/sys/util_loops.h:23:81: note: in expansion of macro 'Z_FOR_LOOP_2'
   23 |                                 _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                                                 ^
C:/west/zephyr/include/sys/util_loops.h:1078:9: note: in expansion of macro 'Z_FOR_EACH_ENGINE'
 1078 |         Z_FOR_EACH_ENGINE(Z_FOR_EACH_EXEC, sep, F, _, __VA_ARGS__)
      |         ^~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_macro.h:384:9: note: in expansion of macro 'Z_FOR_EACH'
  384 |         Z_FOR_EACH(F, sep, REVERSE_ARGS(__VA_ARGS__))
      |         ^~~~~~~~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:373:9: note: in expansion of macro 'FOR_EACH'
  373 |         FOR_EACH(Z_CBPRINTF_PACK_ARG, (;), __VA_ARGS__);\
      |         ^~~~~~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:402:9: note: in expansion of macro 'Z_CBPRINTF_STATIC_PACKAGE_GENERIC'
  402 |         Z_CBPRINTF_STATIC_PACKAGE_GENERIC(packaged, inlen, outlen, \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/cbprintf.h:167:9: note: in expansion of macro 'Z_CBPRINTF_STATIC_PACKAGE'
  167 |         Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_msg2.h:220:17: note: in expansion of macro 'CBPRINTF_STATIC_PACKAGE'
  220 |                 CBPRINTF_STATIC_PACKAGE(NULL, 0, _plen, Z_LOG_MSG2_ALIGN_OFFSET, \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_msg2.h:391:17: note: in expansion of macro 'Z_LOG_MSG2_STACK_CREATE'
  391 |                 Z_LOG_MSG2_STACK_CREATE(_domain_id, _source, _level, _data, \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_msg2.h:401:9: note: in expansion of macro 'Z_LOG_MSG2_CREATE2'
  401 |         Z_LOG_MSG2_CREATE2(_try_0cpy, _mode, UTIL_CAT(Z_LOG_FUNC_PREFIX_, _level), \
      |         ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_core.h:345:17: note: in expansion of macro 'Z_LOG_MSG2_CREATE'
  345 |                 Z_LOG_MSG2_CREATE(UTIL_NOT(IS_ENABLED(CONFIG_USERSPACE)), _mode, \
      |                 ^~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_core.h:361:9: note: in expansion of macro 'Z_LOG2'
  361 |         Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
      |         ^~~~~~
C:/west/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
   40 | #define LOG_ERR(...)    Z_LOG(LOG_LEVEL_ERR, __VA_ARGS__)
      |                         ^~~~~
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl.c:112:17: note: in expansion of macro 'LOG_ERR'
  112 |                 LOG_ERR("Could not get pointer to %s device.",
      |                 ^~~~~~~
In file included from C:/west/zephyr/include/sys/cbprintf.h:38,
                 from C:/west/zephyr/include/logging/log_msg2.h:11,
                 from C:/west/zephyr/include/logging/log_msg.h:12,
                 from C:/west/zephyr/include/logging/log_core.h:9,
                 from C:/west/zephyr/include/logging/log.h:11,
                 from C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl.c:15:
C:/west/zephyr/include/sys/cbprintf_internal.h:177:24: warning: unused variable '_d' [-Wunused-variable]
  177 |                 double _d = _Generic((arg) + 0, \
      |                        ^~
C:/west/zephyr/include/sys/cbprintf_internal.h:279:17: note: in expansion of macro 'Z_CBPRINTF_STORE_ARG'
  279 |                 Z_CBPRINTF_STORE_ARG(&_buf[_idx], _arg); \
      |                 ^~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:292:9: note: in expansion of macro 'Z_CBPRINTF_PACK_ARG2'
  292 |         Z_CBPRINTF_PACK_ARG2(_pbuf, _pkg_len, _pkg_offset, _pmax, _flags, \
      |         ^~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_loops.h:1075:9: note: in expansion of macro 'Z_CBPRINTF_PACK_ARG'
 1075 |         fixed_arg0(x)
      |         ^~~~~~~~~~
C:/west/zephyr/include/sys/util_loops.h:33:9: note: in expansion of macro 'Z_FOR_EACH_EXEC'
   33 |         z_call(1, x, fixed_arg0, fixed_arg1)
      |         ^~~~~~
C:/west/zephyr/include/sys/util_loops.h:23:81: note: in expansion of macro 'Z_FOR_LOOP_2'
   23 |                                 _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                                                 ^
C:/west/zephyr/include/sys/util_loops.h:1078:9: note: in expansion of macro 'Z_FOR_EACH_ENGINE'
 1078 |         Z_FOR_EACH_ENGINE(Z_FOR_EACH_EXEC, sep, F, _, __VA_ARGS__)
      |         ^~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_macro.h:384:9: note: in expansion of macro 'Z_FOR_EACH'
  384 |         Z_FOR_EACH(F, sep, REVERSE_ARGS(__VA_ARGS__))
      |         ^~~~~~~~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:373:9: note: in expansion of macro 'FOR_EACH'
  373 |         FOR_EACH(Z_CBPRINTF_PACK_ARG, (;), __VA_ARGS__);\
      |         ^~~~~~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:402:9: note: in expansion of macro 'Z_CBPRINTF_STATIC_PACKAGE_GENERIC'
  402 |         Z_CBPRINTF_STATIC_PACKAGE_GENERIC(packaged, inlen, outlen, \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/cbprintf.h:167:9: note: in expansion of macro 'Z_CBPRINTF_STATIC_PACKAGE'
  167 |         Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_msg2.h:220:17: note: in expansion of macro 'CBPRINTF_STATIC_PACKAGE'
  220 |                 CBPRINTF_STATIC_PACKAGE(NULL, 0, _plen, Z_LOG_MSG2_ALIGN_OFFSET, \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_msg2.h:391:17: note: in expansion of macro 'Z_LOG_MSG2_STACK_CREATE'
  391 |                 Z_LOG_MSG2_STACK_CREATE(_domain_id, _source, _level, _data, \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_msg2.h:401:9: note: in expansion of macro 'Z_LOG_MSG2_CREATE2'
  401 |         Z_LOG_MSG2_CREATE2(_try_0cpy, _mode, UTIL_CAT(Z_LOG_FUNC_PREFIX_, _level), \
      |         ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_core.h:345:17: note: in expansion of macro 'Z_LOG_MSG2_CREATE'
  345 |                 Z_LOG_MSG2_CREATE(UTIL_NOT(IS_ENABLED(CONFIG_USERSPACE)), _mode, \
      |                 ^~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_core.h:361:9: note: in expansion of macro 'Z_LOG2'
  361 |         Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
      |         ^~~~~~
C:/west/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
   40 | #define LOG_ERR(...)    Z_LOG(LOG_LEVEL_ERR, __VA_ARGS__)
      |                         ^~~~~
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl.c:112:17: note: in expansion of macro 'LOG_ERR'
  112 |                 LOG_ERR("Could not get pointer to %s device.",
      |                 ^~~~~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:266:22: error: expression in static assertion is not an integer
  266 |         BUILD_ASSERT(!((sizeof(double) < VA_STACK_ALIGN(long double)) && \
      |                      ^
C:/west/zephyr/include/toolchain/gcc.h:61:51: note: in definition of macro 'BUILD_ASSERT'
   61 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
      |                                                   ^~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:292:9: note: in expansion of macro 'Z_CBPRINTF_PACK_ARG2'
  292 |         Z_CBPRINTF_PACK_ARG2(_pbuf, _pkg_len, _pkg_offset, _pmax, _flags, \
      |         ^~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_loops.h:1075:9: note: in expansion of macro 'Z_CBPRINTF_PACK_ARG'
 1075 |         fixed_arg0(x)
      |         ^~~~~~~~~~
C:/west/zephyr/include/sys/util_loops.h:33:9: note: in expansion of macro 'Z_FOR_EACH_EXEC'
   33 |         z_call(1, x, fixed_arg0, fixed_arg1)
      |         ^~~~~~
C:/west/zephyr/include/sys/util_loops.h:23:81: note: in expansion of macro 'Z_FOR_LOOP_2'
   23 |                                 _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                                                 ^
C:/west/zephyr/include/sys/util_loops.h:1078:9: note: in expansion of macro 'Z_FOR_EACH_ENGINE'
 1078 |         Z_FOR_EACH_ENGINE(Z_FOR_EACH_EXEC, sep, F, _, __VA_ARGS__)
      |         ^~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_macro.h:384:9: note: in expansion of macro 'Z_FOR_EACH'
  384 |         Z_FOR_EACH(F, sep, REVERSE_ARGS(__VA_ARGS__))
      |         ^~~~~~~~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:373:9: note: in expansion of macro 'FOR_EACH'
  373 |         FOR_EACH(Z_CBPRINTF_PACK_ARG, (;), __VA_ARGS__);\
      |         ^~~~~~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:402:9: note: in expansion of macro 'Z_CBPRINTF_STATIC_PACKAGE_GENERIC'
  402 |         Z_CBPRINTF_STATIC_PACKAGE_GENERIC(packaged, inlen, outlen, \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/cbprintf.h:167:9: note: in expansion of macro 'Z_CBPRINTF_STATIC_PACKAGE'
  167 |         Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_msg2.h:226:17: note: in expansion of macro 'CBPRINTF_STATIC_PACKAGE'
  226 |                 CBPRINTF_STATIC_PACKAGE(_msg->data, _plen, \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_msg2.h:391:17: note: in expansion of macro 'Z_LOG_MSG2_STACK_CREATE'
  391 |                 Z_LOG_MSG2_STACK_CREATE(_domain_id, _source, _level, _data, \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_msg2.h:401:9: note: in expansion of macro 'Z_LOG_MSG2_CREATE2'
  401 |         Z_LOG_MSG2_CREATE2(_try_0cpy, _mode, UTIL_CAT(Z_LOG_FUNC_PREFIX_, _level), \
      |         ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_core.h:345:17: note: in expansion of macro 'Z_LOG_MSG2_CREATE'
  345 |                 Z_LOG_MSG2_CREATE(UTIL_NOT(IS_ENABLED(CONFIG_USERSPACE)), _mode, \
      |                 ^~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_core.h:361:9: note: in expansion of macro 'Z_LOG2'
  361 |         Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
      |         ^~~~~~
C:/west/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
   40 | #define LOG_ERR(...)    Z_LOG(LOG_LEVEL_ERR, __VA_ARGS__)
      |                         ^~~~~
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl.c:112:17: note: in expansion of macro 'LOG_ERR'
  112 |                 LOG_ERR("Could not get pointer to %s device.",
      |                 ^~~~~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:177:24: warning: unused variable '_d' [-Wunused-variable]
  177 |                 double _d = _Generic((arg) + 0, \
      |                        ^~
C:/west/zephyr/include/sys/cbprintf_internal.h:279:17: note: in expansion of macro 'Z_CBPRINTF_STORE_ARG'
  279 |                 Z_CBPRINTF_STORE_ARG(&_buf[_idx], _arg); \
      |                 ^~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:292:9: note: in expansion of macro 'Z_CBPRINTF_PACK_ARG2'
  292 |         Z_CBPRINTF_PACK_ARG2(_pbuf, _pkg_len, _pkg_offset, _pmax, _flags, \
      |         ^~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_loops.h:1075:9: note: in expansion of macro 'Z_CBPRINTF_PACK_ARG'
 1075 |         fixed_arg0(x)
      |         ^~~~~~~~~~
C:/west/zephyr/include/sys/util_loops.h:33:9: note: in expansion of macro 'Z_FOR_EACH_EXEC'
   33 |         z_call(1, x, fixed_arg0, fixed_arg1)
      |         ^~~~~~
C:/west/zephyr/include/sys/util_loops.h:23:81: note: in expansion of macro 'Z_FOR_LOOP_2'
   23 |                                 _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                                                 ^
C:/west/zephyr/include/sys/util_loops.h:1078:9: note: in expansion of macro 'Z_FOR_EACH_ENGINE'
 1078 |         Z_FOR_EACH_ENGINE(Z_FOR_EACH_EXEC, sep, F, _, __VA_ARGS__)
      |         ^~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_macro.h:384:9: note: in expansion of macro 'Z_FOR_EACH'
  384 |         Z_FOR_EACH(F, sep, REVERSE_ARGS(__VA_ARGS__))
      |         ^~~~~~~~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:373:9: note: in expansion of macro 'FOR_EACH'
  373 |         FOR_EACH(Z_CBPRINTF_PACK_ARG, (;), __VA_ARGS__);\
      |         ^~~~~~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:402:9: note: in expansion of macro 'Z_CBPRINTF_STATIC_PACKAGE_GENERIC'
  402 |         Z_CBPRINTF_STATIC_PACKAGE_GENERIC(packaged, inlen, outlen, \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/cbprintf.h:167:9: note: in expansion of macro 'Z_CBPRINTF_STATIC_PACKAGE'
  167 |         Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_msg2.h:226:17: note: in expansion of macro 'CBPRINTF_STATIC_PACKAGE'
  226 |                 CBPRINTF_STATIC_PACKAGE(_msg->data, _plen, \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_msg2.h:391:17: note: in expansion of macro 'Z_LOG_MSG2_STACK_CREATE'
  391 |                 Z_LOG_MSG2_STACK_CREATE(_domain_id, _source, _level, _data, \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_msg2.h:401:9: note: in expansion of macro 'Z_LOG_MSG2_CREATE2'
  401 |         Z_LOG_MSG2_CREATE2(_try_0cpy, _mode, UTIL_CAT(Z_LOG_FUNC_PREFIX_, _level), \
      |         ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_core.h:345:17: note: in expansion of macro 'Z_LOG_MSG2_CREATE'
  345 |                 Z_LOG_MSG2_CREATE(UTIL_NOT(IS_ENABLED(CONFIG_USERSPACE)), _mode, \
      |                 ^~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_core.h:361:9: note: in expansion of macro 'Z_LOG2'
  361 |         Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
      |         ^~~~~~
C:/west/zephyr/include/logging/log.h:40:25: note: in expansion of macro 'Z_LOG'
   40 | #define LOG_ERR(...)    Z_LOG(LOG_LEVEL_ERR, __VA_ARGS__)
      |                         ^~~~~
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl.c:112:17: note: in expansion of macro 'LOG_ERR'
  112 |                 LOG_ERR("Could not get pointer to %s device.",
      |                 ^~~~~~~
C:/west/zephyr/include/devicetree.h:305:40: error: 'DT_N_INST_0_st_lis3mdl_magn_REG_IDX_0_VAL_ADDRESS' undeclared (first use in this function)
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                                        ^~~~~~~~~
C:/west/zephyr/include/devicetree.h:3022:24: note: in definition of macro 'DT_CAT'
 3022 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
C:/west/zephyr/include/devicetree.h:2681:44: note: in expansion of macro 'DT_REG_ADDR_BY_IDX'
 2681 | #define DT_INST_REG_ADDR_BY_IDX(inst, idx) DT_REG_ADDR_BY_IDX(DT_DRV_INST(inst), idx)
      |                                            ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_internal.h:98:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
   98 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
      |                          ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/devicetree.h:305:31: note: in expansion of macro 'UTIL_CAT'
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                               ^~~~~~~~
C:/west/zephyr/include/devicetree.h:2434:27: note: in expansion of macro 'DT_INST'
 2434 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
      |                           ^~~~~~~
C:/west/zephyr/include/devicetree.h:2681:63: note: in expansion of macro 'DT_DRV_INST'
 2681 | #define DT_INST_REG_ADDR_BY_IDX(inst, idx) DT_REG_ADDR_BY_IDX(DT_DRV_INST(inst), idx)
      |                                                               ^~~~~~~~~~~
C:/west/zephyr/include/devicetree.h:2715:32: note: in expansion of macro 'DT_INST_REG_ADDR_BY_IDX'
 2715 | #define DT_INST_REG_ADDR(inst) DT_INST_REG_ADDR_BY_IDX(inst, 0)
      |                                ^~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl.c:118:46: note: in expansion of macro 'DT_INST_REG_ADDR'
  118 |         if (i2c_reg_read_byte(drv_data->i2c, DT_INST_REG_ADDR(0),
      |                                              ^~~~~~~~~~~~~~~~
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl.c: At top level:
C:/west/zephyr/include/devicetree.h:305:40: error: 'DT_N_INST_0_st_lis3mdl_magn_FULL_NAME' undeclared here (not in a function)
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                                        ^~~~~~~~~
C:/west/zephyr/include/device.h:903:25: note: in definition of macro 'Z_DEVICE_DEFINE'
  903 |                 .name = drv_name,                                       \
      |                         ^~~~~~~~
C:/west/zephyr/include/sys/util_internal.h:64:53: note: in expansion of macro '__DEBRACKET'
   64 | #define __GET_ARG2_DEBRACKET(ignore_this, val, ...) __DEBRACKET val
      |                                                     ^~~~~~~~~~~
C:/west/zephyr/include/sys/util_internal.h:59:9: note: in expansion of macro '__GET_ARG2_DEBRACKET'
   59 |         __GET_ARG2_DEBRACKET(one_or_two_args _if_code, _else_code)
      |         ^~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_internal.h:54:9: note: in expansion of macro '__COND_CODE'
   54 |         __COND_CODE(_XXXX##_flag, _if_1_code, _else_code)
      |         ^~~~~~~~~~~
C:/west/zephyr/include/sys/util_macro.h:157:9: note: in expansion of macro 'Z_COND_CODE_1'
  157 |         Z_COND_CODE_1(_flag, _if_1_code, _else_code)
      |         ^~~~~~~~~~~~~
C:/west/zephyr/include/devicetree.h:649:9: note: in expansion of macro 'COND_CODE_1'
  649 |         COND_CODE_1(DT_NODE_HAS_PROP(node_id, prop), \
      |         ^~~~~~~~~~~
C:/west/zephyr/include/device.h:203:9: note: in expansion of macro 'DT_PROP_OR'
  203 |         DT_PROP_OR(node_id, label, DT_NODE_FULL_NAME(node_id))
      |         ^~~~~~~~~~
C:/west/zephyr/include/devicetree.h:475:36: note: in expansion of macro 'DT_CAT'
  475 | #define DT_NODE_FULL_NAME(node_id) DT_CAT(node_id, _FULL_NAME)
      |                                    ^~~~~~
C:/west/zephyr/include/device.h:203:36: note: in expansion of macro 'DT_NODE_FULL_NAME'
  203 |         DT_PROP_OR(node_id, label, DT_NODE_FULL_NAME(node_id))
      |                                    ^~~~~~~~~~~~~~~~~
C:/west/zephyr/include/device.h:253:25: note: in expansion of macro 'DEVICE_DT_NAME'
  253 |                         DEVICE_DT_NAME(node_id), init_fn,               \
      |                         ^~~~~~~~~~~~~~
C:/west/zephyr/include/device.h:272:9: note: in expansion of macro 'DEVICE_DT_DEFINE'
  272 |         DEVICE_DT_DEFINE(DT_DRV_INST(inst), __VA_ARGS__)
      |         ^~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_internal.h:98:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
   98 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
      |                          ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/devicetree.h:305:31: note: in expansion of macro 'UTIL_CAT'
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                               ^~~~~~~~
C:/west/zephyr/include/devicetree.h:2434:27: note: in expansion of macro 'DT_INST'
 2434 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
      |                           ^~~~~~~
C:/west/zephyr/include/device.h:272:26: note: in expansion of macro 'DT_DRV_INST'
  272 |         DEVICE_DT_DEFINE(DT_DRV_INST(inst), __VA_ARGS__)
      |                          ^~~~~~~~~~~
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl.c:169:1: note: in expansion of macro 'DEVICE_DT_INST_DEFINE'
  169 | DEVICE_DT_INST_DEFINE(0, lis3mdl_init, NULL,
      | ^~~~~~~~~~~~~~~~~~~~~
[102/189] Building C object zephyr/drivers/sensor/lis3mdl/CMakeFiles/drivers__sensor__lis3mdl.dir/lis3mdl_trigger.c.obj
FAILED: zephyr/drivers/sensor/lis3mdl/CMakeFiles/drivers__sensor__lis3mdl.dir/lis3mdl_trigger.c.obj
C:\ncs\toolchains\0b393f9e1b\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DBUILD_VERSION=v2.7.99-ncs1 -DEXT_API_MAGIC=0x281ee6de,0xb845acea,23298 -DFIRMWARE_INFO_MAGIC=0x281ee6de,0x8fcebb4c,23298 -DKERNEL -DNRF9160_XXAA -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_TRUSTZONE_NONSECURE -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR_SUPERVISOR__ -D__ZEPHYR__=1 -IC:/west/zephyr/include -IC:/west/build/zephyr/include/generated -IC:/west/zephyr/soc/arm/nordic_nrf/nrf91 -IC:/west/zephyr/soc/arm/nordic_nrf/common/. -IC:/west/nrf/include -IC:/west/modules/hal/cmsis/CMSIS/Core/Include -IC:/west/modules/hal/nordic/nrfx -IC:/west/modules/hal/nordic/nrfx/drivers/include -IC:/west/modules/hal/nordic/nrfx/mdk -IC:/west/zephyr/modules/hal_nordic/nrfx/. -IC:/west/nrfxlib/nrf_modem/include -isystem C:/west/zephyr/lib/libc/minimal/include -isystem c:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include -isystem c:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include-fixed -Os -imacros C:/west/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee -imacros C:/west/zephyr/include/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-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/test=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/west/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/west=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT zephyr/drivers/sensor/lis3mdl/CMakeFiles/drivers__sensor__lis3mdl.dir/lis3mdl_trigger.c.obj -MF zephyr\drivers\sensor\lis3mdl\CMakeFiles\drivers__sensor__lis3mdl.dir\lis3mdl_trigger.c.obj.d -o zephyr/drivers/sensor/lis3mdl/CMakeFiles/drivers__sensor__lis3mdl.dir/lis3mdl_trigger.c.obj -c C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl_trigger.c
In file included from C:/west/zephyr/include/arch/arm/aarch32/arch.h:20,
                 from C:/west/zephyr/include/arch/cpu.h:19,
                 from C:/west/zephyr/include/kernel_includes.h:33,
                 from C:/west/zephyr/include/kernel.h:17,
                 from C:/west/zephyr/include/init.h:11,
                 from C:/west/zephyr/include/device.h:29,
                 from C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl_trigger.c:9:
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl_trigger.c: In function 'lis3mdl_trigger_set':
C:/west/zephyr/include/devicetree.h:305:40: error: 'DT_N_INST_0_st_lis3mdl_magn_REG_IDX_0_VAL_ADDRESS' undeclared (first use in this function)
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                                        ^~~~~~~~~
C:/west/zephyr/include/devicetree.h:3022:24: note: in definition of macro 'DT_CAT'
 3022 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
C:/west/zephyr/include/devicetree.h:2681:44: note: in expansion of macro 'DT_REG_ADDR_BY_IDX'
 2681 | #define DT_INST_REG_ADDR_BY_IDX(inst, idx) DT_REG_ADDR_BY_IDX(DT_DRV_INST(inst), idx)
      |                                            ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_internal.h:98:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
   98 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
      |                          ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/devicetree.h:305:31: note: in expansion of macro 'UTIL_CAT'
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                               ^~~~~~~~
C:/west/zephyr/include/devicetree.h:2434:27: note: in expansion of macro 'DT_INST'
 2434 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
      |                           ^~~~~~~
C:/west/zephyr/include/devicetree.h:2681:63: note: in expansion of macro 'DT_DRV_INST'
 2681 | #define DT_INST_REG_ADDR_BY_IDX(inst, idx) DT_REG_ADDR_BY_IDX(DT_DRV_INST(inst), idx)
      |                                                               ^~~~~~~~~~~
C:/west/zephyr/include/devicetree.h:2715:32: note: in expansion of macro 'DT_INST_REG_ADDR_BY_IDX'
 2715 | #define DT_INST_REG_ADDR(inst) DT_INST_REG_ADDR_BY_IDX(inst, 0)
      |                                ^~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl_trigger.c:31:45: note: in expansion of macro 'DT_INST_REG_ADDR'
   31 |         ret = i2c_burst_read(drv_data->i2c, DT_INST_REG_ADDR(0),
      |                                             ^~~~~~~~~~~~~~~~
C:/west/zephyr/include/devicetree.h:305:40: note: each undeclared identifier is reported only once for each function it appears in
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                                        ^~~~~~~~~
C:/west/zephyr/include/devicetree.h:3022:24: note: in definition of macro 'DT_CAT'
 3022 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
C:/west/zephyr/include/devicetree.h:2681:44: note: in expansion of macro 'DT_REG_ADDR_BY_IDX'
 2681 | #define DT_INST_REG_ADDR_BY_IDX(inst, idx) DT_REG_ADDR_BY_IDX(DT_DRV_INST(inst), idx)
      |                                            ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_internal.h:98:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
   98 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
      |                          ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/devicetree.h:305:31: note: in expansion of macro 'UTIL_CAT'
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                               ^~~~~~~~
C:/west/zephyr/include/devicetree.h:2434:27: note: in expansion of macro 'DT_INST'
 2434 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
      |                           ^~~~~~~
C:/west/zephyr/include/devicetree.h:2681:63: note: in expansion of macro 'DT_DRV_INST'
 2681 | #define DT_INST_REG_ADDR_BY_IDX(inst, idx) DT_REG_ADDR_BY_IDX(DT_DRV_INST(inst), idx)
      |                                                               ^~~~~~~~~~~
C:/west/zephyr/include/devicetree.h:2715:32: note: in expansion of macro 'DT_INST_REG_ADDR_BY_IDX'
 2715 | #define DT_INST_REG_ADDR(inst) DT_INST_REG_ADDR_BY_IDX(inst, 0)
      |                                ^~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl_trigger.c:31:45: note: in expansion of macro 'DT_INST_REG_ADDR'
   31 |         ret = i2c_burst_read(drv_data->i2c, DT_INST_REG_ADDR(0),
      |                                             ^~~~~~~~~~~~~~~~
C:/west/zephyr/include/devicetree.h:305:40: error: 'DT_N_INST_0_st_lis3mdl_magn_P_irq_gpios_IDX_0_VAL_pin' undeclared (first use in this function)
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                                        ^~~~~~~~~
C:/west/zephyr/include/devicetree.h:3022:24: note: in definition of macro 'DT_CAT'
 3022 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
C:/west/zephyr/include/devicetree.h:1083:9: note: in expansion of macro 'DT_PROP'
 1083 |         DT_PROP(node_id, pha##_IDX_##idx##_VAL_##cell)
      |         ^~~~~~~
C:/west/zephyr/include/devicetree/gpio.h:158:9: note: in expansion of macro 'DT_PHA_BY_IDX'
  158 |         DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin)
      |         ^~~~~~~~~~~~~
C:/west/zephyr/include/devicetree/gpio.h:260:9: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX'
  260 |         DT_GPIO_PIN_BY_IDX(DT_DRV_INST(inst), gpio_pha, idx)
      |         ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_internal.h:98:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
   98 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
      |                          ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/devicetree.h:305:31: note: in expansion of macro 'UTIL_CAT'
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                               ^~~~~~~~
C:/west/zephyr/include/devicetree.h:2434:27: note: in expansion of macro 'DT_INST'
 2434 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
      |                           ^~~~~~~
C:/west/zephyr/include/devicetree/gpio.h:260:28: note: in expansion of macro 'DT_DRV_INST'
  260 |         DT_GPIO_PIN_BY_IDX(DT_DRV_INST(inst), gpio_pha, idx)
      |                            ^~~~~~~~~~~
C:/west/zephyr/include/devicetree/gpio.h:271:9: note: in expansion of macro 'DT_INST_GPIO_PIN_BY_IDX'
  271 |         DT_INST_GPIO_PIN_BY_IDX(inst, gpio_pha, 0)
      |         ^~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl_trigger.c:38:25: note: in expansion of macro 'DT_INST_GPIO_PIN'
   38 |                         DT_INST_GPIO_PIN(0, irq_gpios),
      |                         ^~~~~~~~~~~~~~~~
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl_trigger.c: In function 'lis3mdl_gpio_callback':
C:/west/zephyr/include/devicetree.h:305:40: error: 'DT_N_INST_0_st_lis3mdl_magn_P_irq_gpios_IDX_0_VAL_pin' undeclared (first use in this function)
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                                        ^~~~~~~~~
C:/west/zephyr/include/devicetree.h:3022:24: note: in definition of macro 'DT_CAT'
 3022 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
C:/west/zephyr/include/devicetree.h:1083:9: note: in expansion of macro 'DT_PROP'
 1083 |         DT_PROP(node_id, pha##_IDX_##idx##_VAL_##cell)
      |         ^~~~~~~
C:/west/zephyr/include/devicetree/gpio.h:158:9: note: in expansion of macro 'DT_PHA_BY_IDX'
  158 |         DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin)
      |         ^~~~~~~~~~~~~
C:/west/zephyr/include/devicetree/gpio.h:260:9: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX'
  260 |         DT_GPIO_PIN_BY_IDX(DT_DRV_INST(inst), gpio_pha, idx)
      |         ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_internal.h:98:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
   98 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
      |                          ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/devicetree.h:305:31: note: in expansion of macro 'UTIL_CAT'
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                               ^~~~~~~~
C:/west/zephyr/include/devicetree.h:2434:27: note: in expansion of macro 'DT_INST'
 2434 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
      |                           ^~~~~~~
C:/west/zephyr/include/devicetree/gpio.h:260:28: note: in expansion of macro 'DT_DRV_INST'
  260 |         DT_GPIO_PIN_BY_IDX(DT_DRV_INST(inst), gpio_pha, idx)
      |                            ^~~~~~~~~~~
C:/west/zephyr/include/devicetree/gpio.h:271:9: note: in expansion of macro 'DT_INST_GPIO_PIN_BY_IDX'
  271 |         DT_INST_GPIO_PIN_BY_IDX(inst, gpio_pha, 0)
      |         ^~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl_trigger.c:64:38: note: in expansion of macro 'DT_INST_GPIO_PIN'
   64 |                                      DT_INST_GPIO_PIN(0, irq_gpios),
      |                                      ^~~~~~~~~~~~~~~~
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl_trigger.c: In function 'lis3mdl_thread_cb':
C:/west/zephyr/include/devicetree.h:305:40: error: 'DT_N_INST_0_st_lis3mdl_magn_P_irq_gpios_IDX_0_VAL_pin' undeclared (first use in this function)
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                                        ^~~~~~~~~
C:/west/zephyr/include/devicetree.h:3022:24: note: in definition of macro 'DT_CAT'
 3022 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
C:/west/zephyr/include/devicetree.h:1083:9: note: in expansion of macro 'DT_PROP'
 1083 |         DT_PROP(node_id, pha##_IDX_##idx##_VAL_##cell)
      |         ^~~~~~~
C:/west/zephyr/include/devicetree/gpio.h:158:9: note: in expansion of macro 'DT_PHA_BY_IDX'
  158 |         DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin)
      |         ^~~~~~~~~~~~~
C:/west/zephyr/include/devicetree/gpio.h:260:9: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX'
  260 |         DT_GPIO_PIN_BY_IDX(DT_DRV_INST(inst), gpio_pha, idx)
      |         ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_internal.h:98:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
   98 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
      |                          ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/devicetree.h:305:31: note: in expansion of macro 'UTIL_CAT'
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                               ^~~~~~~~
C:/west/zephyr/include/devicetree.h:2434:27: note: in expansion of macro 'DT_INST'
 2434 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
      |                           ^~~~~~~
C:/west/zephyr/include/devicetree/gpio.h:260:28: note: in expansion of macro 'DT_DRV_INST'
  260 |         DT_GPIO_PIN_BY_IDX(DT_DRV_INST(inst), gpio_pha, idx)
      |                            ^~~~~~~~~~~
C:/west/zephyr/include/devicetree/gpio.h:271:9: note: in expansion of macro 'DT_INST_GPIO_PIN_BY_IDX'
  271 |         DT_INST_GPIO_PIN_BY_IDX(inst, gpio_pha, 0)
      |         ^~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl_trigger.c:84:25: note: in expansion of macro 'DT_INST_GPIO_PIN'
   84 |                         DT_INST_GPIO_PIN(0, irq_gpios),
      |                         ^~~~~~~~~~~~~~~~
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl_trigger.c: In function 'lis3mdl_init_interrupt':
C:/west/zephyr/include/devicetree.h:305:40: error: 'DT_N_INST_0_st_lis3mdl_magn_P_irq_gpios_IDX_0_PH_P_label' undeclared (first use in this function)
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                                        ^~~~~~~~~
C:/west/zephyr/include/devicetree.h:3022:24: note: in definition of macro 'DT_CAT'
 3022 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
C:/west/zephyr/include/devicetree/gpio.h:103:9: note: in expansion of macro 'DT_PROP'
  103 |         DT_PROP(DT_GPIO_CTLR_BY_IDX(node_id, gpio_pha, idx), label)
      |         ^~~~~~~
C:/west/zephyr/include/devicetree.h:1280:9: note: in expansion of macro 'DT_CAT6'
 1280 |         DT_CAT6(node_id, _P_, prop, _IDX_, idx, _PH)
      |         ^~~~~~~
C:/west/zephyr/include/devicetree/gpio.h:54:9: note: in expansion of macro 'DT_PHANDLE_BY_IDX'
   54 |         DT_PHANDLE_BY_IDX(node_id, gpio_pha, idx)
      |         ^~~~~~~~~~~~~~~~~
C:/west/zephyr/include/devicetree/gpio.h:103:17: note: in expansion of macro 'DT_GPIO_CTLR_BY_IDX'
  103 |         DT_PROP(DT_GPIO_CTLR_BY_IDX(node_id, gpio_pha, idx), label)
      |                 ^~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/devicetree/gpio.h:237:9: note: in expansion of macro 'DT_GPIO_LABEL_BY_IDX'
  237 |         DT_GPIO_LABEL_BY_IDX(DT_DRV_INST(inst), gpio_pha, idx)
      |         ^~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_internal.h:98:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
   98 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
      |                          ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/devicetree.h:305:31: note: in expansion of macro 'UTIL_CAT'
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                               ^~~~~~~~
C:/west/zephyr/include/devicetree.h:2434:27: note: in expansion of macro 'DT_INST'
 2434 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
      |                           ^~~~~~~
C:/west/zephyr/include/devicetree/gpio.h:237:30: note: in expansion of macro 'DT_DRV_INST'
  237 |         DT_GPIO_LABEL_BY_IDX(DT_DRV_INST(inst), gpio_pha, idx)
      |                              ^~~~~~~~~~~
C:/west/zephyr/include/devicetree/gpio.h:247:9: note: in expansion of macro 'DT_INST_GPIO_LABEL_BY_IDX'
  247 |         DT_INST_GPIO_LABEL_BY_IDX(inst, gpio_pha, 0)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl_trigger.c:114:36: note: in expansion of macro 'DT_INST_GPIO_LABEL'
  114 |                 device_get_binding(DT_INST_GPIO_LABEL(0, irq_gpios));
      |                                    ^~~~~~~~~~~~~~~~~~
In file included from C:/west/zephyr/include/toolchain.h:50,
                 from C:/west/zephyr/include/init.h:10:
C:/west/zephyr/include/sys/cbprintf_internal.h:266:22: error: expression in static assertion is not an integer
  266 |         BUILD_ASSERT(!((sizeof(double) < VA_STACK_ALIGN(long double)) && \
      |                      ^
C:/west/zephyr/include/toolchain/gcc.h:61:51: note: in definition of macro 'BUILD_ASSERT'
   61 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
      |                                                   ^~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:292:9: note: in expansion of macro 'Z_CBPRINTF_PACK_ARG2'
  292 |         Z_CBPRINTF_PACK_ARG2(_pbuf, _pkg_len, _pkg_offset, _pmax, _flags, \
      |         ^~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_loops.h:1075:9: note: in expansion of macro 'Z_CBPRINTF_PACK_ARG'
 1075 |         fixed_arg0(x)
      |         ^~~~~~~~~~
C:/west/zephyr/include/sys/util_loops.h:33:9: note: in expansion of macro 'Z_FOR_EACH_EXEC'
   33 |         z_call(1, x, fixed_arg0, fixed_arg1)
      |         ^~~~~~
C:/west/zephyr/include/sys/util_loops.h:23:81: note: in expansion of macro 'Z_FOR_LOOP_2'
   23 |                                 _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                                                 ^
C:/west/zephyr/include/sys/util_loops.h:1078:9: note: in expansion of macro 'Z_FOR_EACH_ENGINE'
 1078 |         Z_FOR_EACH_ENGINE(Z_FOR_EACH_EXEC, sep, F, _, __VA_ARGS__)
      |         ^~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_macro.h:384:9: note: in expansion of macro 'Z_FOR_EACH'
  384 |         Z_FOR_EACH(F, sep, REVERSE_ARGS(__VA_ARGS__))
      |         ^~~~~~~~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:373:9: note: in expansion of macro 'FOR_EACH'
  373 |         FOR_EACH(Z_CBPRINTF_PACK_ARG, (;), __VA_ARGS__);\
      |         ^~~~~~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:402:9: note: in expansion of macro 'Z_CBPRINTF_STATIC_PACKAGE_GENERIC'
  402 |         Z_CBPRINTF_STATIC_PACKAGE_GENERIC(packaged, inlen, outlen, \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/cbprintf.h:167:9: note: in expansion of macro 'Z_CBPRINTF_STATIC_PACKAGE'
  167 |         Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_msg2.h:220:17: note: in expansion of macro 'CBPRINTF_STATIC_PACKAGE'
  220 |                 CBPRINTF_STATIC_PACKAGE(NULL, 0, _plen, Z_LOG_MSG2_ALIGN_OFFSET, \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_msg2.h:391:17: note: in expansion of macro 'Z_LOG_MSG2_STACK_CREATE'
  391 |                 Z_LOG_MSG2_STACK_CREATE(_domain_id, _source, _level, _data, \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_msg2.h:401:9: note: in expansion of macro 'Z_LOG_MSG2_CREATE2'
  401 |         Z_LOG_MSG2_CREATE2(_try_0cpy, _mode, UTIL_CAT(Z_LOG_FUNC_PREFIX_, _level), \
      |         ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_core.h:345:17: note: in expansion of macro 'Z_LOG_MSG2_CREATE'
  345 |                 Z_LOG_MSG2_CREATE(UTIL_NOT(IS_ENABLED(CONFIG_USERSPACE)), _mode, \
      |                 ^~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_core.h:361:9: note: in expansion of macro 'Z_LOG2'
  361 |         Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
      |         ^~~~~~
C:/west/zephyr/include/logging/log.h:71:25: note: in expansion of macro 'Z_LOG'
   71 | #define LOG_DBG(...)    Z_LOG(LOG_LEVEL_DBG, __VA_ARGS__)
      |                         ^~~~~
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl_trigger.c:116:17: note: in expansion of macro 'LOG_DBG'
  116 |                 LOG_DBG("Cannot get pointer to %s device.",
      |                 ^~~~~~~
In file included from C:/west/zephyr/include/sys/cbprintf.h:38,
                 from C:/west/zephyr/include/logging/log_msg2.h:11,
                 from C:/west/zephyr/include/logging/log_msg.h:12,
                 from C:/west/zephyr/include/logging/log_core.h:9,
                 from C:/west/zephyr/include/logging/log.h:11,
                 from C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl_trigger.c:15:
C:/west/zephyr/include/sys/cbprintf_internal.h:177:24: warning: unused variable '_d' [-Wunused-variable]
  177 |                 double _d = _Generic((arg) + 0, \
      |                        ^~
C:/west/zephyr/include/sys/cbprintf_internal.h:279:17: note: in expansion of macro 'Z_CBPRINTF_STORE_ARG'
  279 |                 Z_CBPRINTF_STORE_ARG(&_buf[_idx], _arg); \
      |                 ^~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:292:9: note: in expansion of macro 'Z_CBPRINTF_PACK_ARG2'
  292 |         Z_CBPRINTF_PACK_ARG2(_pbuf, _pkg_len, _pkg_offset, _pmax, _flags, \
      |         ^~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_loops.h:1075:9: note: in expansion of macro 'Z_CBPRINTF_PACK_ARG'
 1075 |         fixed_arg0(x)
      |         ^~~~~~~~~~
C:/west/zephyr/include/sys/util_loops.h:33:9: note: in expansion of macro 'Z_FOR_EACH_EXEC'
   33 |         z_call(1, x, fixed_arg0, fixed_arg1)
      |         ^~~~~~
C:/west/zephyr/include/sys/util_loops.h:23:81: note: in expansion of macro 'Z_FOR_LOOP_2'
   23 |                                 _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                                                 ^
C:/west/zephyr/include/sys/util_loops.h:1078:9: note: in expansion of macro 'Z_FOR_EACH_ENGINE'
 1078 |         Z_FOR_EACH_ENGINE(Z_FOR_EACH_EXEC, sep, F, _, __VA_ARGS__)
      |         ^~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_macro.h:384:9: note: in expansion of macro 'Z_FOR_EACH'
  384 |         Z_FOR_EACH(F, sep, REVERSE_ARGS(__VA_ARGS__))
      |         ^~~~~~~~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:373:9: note: in expansion of macro 'FOR_EACH'
  373 |         FOR_EACH(Z_CBPRINTF_PACK_ARG, (;), __VA_ARGS__);\
      |         ^~~~~~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:402:9: note: in expansion of macro 'Z_CBPRINTF_STATIC_PACKAGE_GENERIC'
  402 |         Z_CBPRINTF_STATIC_PACKAGE_GENERIC(packaged, inlen, outlen, \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/cbprintf.h:167:9: note: in expansion of macro 'Z_CBPRINTF_STATIC_PACKAGE'
  167 |         Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_msg2.h:220:17: note: in expansion of macro 'CBPRINTF_STATIC_PACKAGE'
  220 |                 CBPRINTF_STATIC_PACKAGE(NULL, 0, _plen, Z_LOG_MSG2_ALIGN_OFFSET, \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_msg2.h:391:17: note: in expansion of macro 'Z_LOG_MSG2_STACK_CREATE'
  391 |                 Z_LOG_MSG2_STACK_CREATE(_domain_id, _source, _level, _data, \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_msg2.h:401:9: note: in expansion of macro 'Z_LOG_MSG2_CREATE2'
  401 |         Z_LOG_MSG2_CREATE2(_try_0cpy, _mode, UTIL_CAT(Z_LOG_FUNC_PREFIX_, _level), \
      |         ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_core.h:345:17: note: in expansion of macro 'Z_LOG_MSG2_CREATE'
  345 |                 Z_LOG_MSG2_CREATE(UTIL_NOT(IS_ENABLED(CONFIG_USERSPACE)), _mode, \
      |                 ^~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_core.h:361:9: note: in expansion of macro 'Z_LOG2'
  361 |         Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
      |         ^~~~~~
C:/west/zephyr/include/logging/log.h:71:25: note: in expansion of macro 'Z_LOG'
   71 | #define LOG_DBG(...)    Z_LOG(LOG_LEVEL_DBG, __VA_ARGS__)
      |                         ^~~~~
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl_trigger.c:116:17: note: in expansion of macro 'LOG_DBG'
  116 |                 LOG_DBG("Cannot get pointer to %s device.",
      |                 ^~~~~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:266:22: error: expression in static assertion is not an integer
  266 |         BUILD_ASSERT(!((sizeof(double) < VA_STACK_ALIGN(long double)) && \
      |                      ^
C:/west/zephyr/include/toolchain/gcc.h:61:51: note: in definition of macro 'BUILD_ASSERT'
   61 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
      |                                                   ^~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:292:9: note: in expansion of macro 'Z_CBPRINTF_PACK_ARG2'
  292 |         Z_CBPRINTF_PACK_ARG2(_pbuf, _pkg_len, _pkg_offset, _pmax, _flags, \
      |         ^~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_loops.h:1075:9: note: in expansion of macro 'Z_CBPRINTF_PACK_ARG'
 1075 |         fixed_arg0(x)
      |         ^~~~~~~~~~
C:/west/zephyr/include/sys/util_loops.h:33:9: note: in expansion of macro 'Z_FOR_EACH_EXEC'
   33 |         z_call(1, x, fixed_arg0, fixed_arg1)
      |         ^~~~~~
C:/west/zephyr/include/sys/util_loops.h:23:81: note: in expansion of macro 'Z_FOR_LOOP_2'
   23 |                                 _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                                                 ^
C:/west/zephyr/include/sys/util_loops.h:1078:9: note: in expansion of macro 'Z_FOR_EACH_ENGINE'
 1078 |         Z_FOR_EACH_ENGINE(Z_FOR_EACH_EXEC, sep, F, _, __VA_ARGS__)
      |         ^~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_macro.h:384:9: note: in expansion of macro 'Z_FOR_EACH'
  384 |         Z_FOR_EACH(F, sep, REVERSE_ARGS(__VA_ARGS__))
      |         ^~~~~~~~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:373:9: note: in expansion of macro 'FOR_EACH'
  373 |         FOR_EACH(Z_CBPRINTF_PACK_ARG, (;), __VA_ARGS__);\
      |         ^~~~~~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:402:9: note: in expansion of macro 'Z_CBPRINTF_STATIC_PACKAGE_GENERIC'
  402 |         Z_CBPRINTF_STATIC_PACKAGE_GENERIC(packaged, inlen, outlen, \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/cbprintf.h:167:9: note: in expansion of macro 'Z_CBPRINTF_STATIC_PACKAGE'
  167 |         Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_msg2.h:226:17: note: in expansion of macro 'CBPRINTF_STATIC_PACKAGE'
  226 |                 CBPRINTF_STATIC_PACKAGE(_msg->data, _plen, \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_msg2.h:391:17: note: in expansion of macro 'Z_LOG_MSG2_STACK_CREATE'
  391 |                 Z_LOG_MSG2_STACK_CREATE(_domain_id, _source, _level, _data, \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_msg2.h:401:9: note: in expansion of macro 'Z_LOG_MSG2_CREATE2'
  401 |         Z_LOG_MSG2_CREATE2(_try_0cpy, _mode, UTIL_CAT(Z_LOG_FUNC_PREFIX_, _level), \
      |         ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_core.h:345:17: note: in expansion of macro 'Z_LOG_MSG2_CREATE'
  345 |                 Z_LOG_MSG2_CREATE(UTIL_NOT(IS_ENABLED(CONFIG_USERSPACE)), _mode, \
      |                 ^~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_core.h:361:9: note: in expansion of macro 'Z_LOG2'
  361 |         Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
      |         ^~~~~~
C:/west/zephyr/include/logging/log.h:71:25: note: in expansion of macro 'Z_LOG'
   71 | #define LOG_DBG(...)    Z_LOG(LOG_LEVEL_DBG, __VA_ARGS__)
      |                         ^~~~~
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl_trigger.c:116:17: note: in expansion of macro 'LOG_DBG'
  116 |                 LOG_DBG("Cannot get pointer to %s device.",
      |                 ^~~~~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:177:24: warning: unused variable '_d' [-Wunused-variable]
  177 |                 double _d = _Generic((arg) + 0, \
      |                        ^~
C:/west/zephyr/include/sys/cbprintf_internal.h:279:17: note: in expansion of macro 'Z_CBPRINTF_STORE_ARG'
  279 |                 Z_CBPRINTF_STORE_ARG(&_buf[_idx], _arg); \
      |                 ^~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:292:9: note: in expansion of macro 'Z_CBPRINTF_PACK_ARG2'
  292 |         Z_CBPRINTF_PACK_ARG2(_pbuf, _pkg_len, _pkg_offset, _pmax, _flags, \
      |         ^~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_loops.h:1075:9: note: in expansion of macro 'Z_CBPRINTF_PACK_ARG'
 1075 |         fixed_arg0(x)
      |         ^~~~~~~~~~
C:/west/zephyr/include/sys/util_loops.h:33:9: note: in expansion of macro 'Z_FOR_EACH_EXEC'
   33 |         z_call(1, x, fixed_arg0, fixed_arg1)
      |         ^~~~~~
C:/west/zephyr/include/sys/util_loops.h:23:81: note: in expansion of macro 'Z_FOR_LOOP_2'
   23 |                                 _57, _58, _59, _60, _61, _62, _63, _64, N, ...) N
      |                                                                                 ^
C:/west/zephyr/include/sys/util_loops.h:1078:9: note: in expansion of macro 'Z_FOR_EACH_ENGINE'
 1078 |         Z_FOR_EACH_ENGINE(Z_FOR_EACH_EXEC, sep, F, _, __VA_ARGS__)
      |         ^~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_macro.h:384:9: note: in expansion of macro 'Z_FOR_EACH'
  384 |         Z_FOR_EACH(F, sep, REVERSE_ARGS(__VA_ARGS__))
      |         ^~~~~~~~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:373:9: note: in expansion of macro 'FOR_EACH'
  373 |         FOR_EACH(Z_CBPRINTF_PACK_ARG, (;), __VA_ARGS__);\
      |         ^~~~~~~~
C:/west/zephyr/include/sys/cbprintf_internal.h:402:9: note: in expansion of macro 'Z_CBPRINTF_STATIC_PACKAGE_GENERIC'
  402 |         Z_CBPRINTF_STATIC_PACKAGE_GENERIC(packaged, inlen, outlen, \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/cbprintf.h:167:9: note: in expansion of macro 'Z_CBPRINTF_STATIC_PACKAGE'
  167 |         Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_msg2.h:226:17: note: in expansion of macro 'CBPRINTF_STATIC_PACKAGE'
  226 |                 CBPRINTF_STATIC_PACKAGE(_msg->data, _plen, \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_msg2.h:391:17: note: in expansion of macro 'Z_LOG_MSG2_STACK_CREATE'
  391 |                 Z_LOG_MSG2_STACK_CREATE(_domain_id, _source, _level, _data, \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_msg2.h:401:9: note: in expansion of macro 'Z_LOG_MSG2_CREATE2'
  401 |         Z_LOG_MSG2_CREATE2(_try_0cpy, _mode, UTIL_CAT(Z_LOG_FUNC_PREFIX_, _level), \
      |         ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_core.h:345:17: note: in expansion of macro 'Z_LOG_MSG2_CREATE'
  345 |                 Z_LOG_MSG2_CREATE(UTIL_NOT(IS_ENABLED(CONFIG_USERSPACE)), _mode, \
      |                 ^~~~~~~~~~~~~~~~~
C:/west/zephyr/include/logging/log_core.h:361:9: note: in expansion of macro 'Z_LOG2'
  361 |         Z_LOG2(_level, 0, __log_current_const_data, __log_current_dynamic_data, __VA_ARGS__)
      |         ^~~~~~
C:/west/zephyr/include/logging/log.h:71:25: note: in expansion of macro 'Z_LOG'
   71 | #define LOG_DBG(...)    Z_LOG(LOG_LEVEL_DBG, __VA_ARGS__)
      |                         ^~~~~
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl_trigger.c:116:17: note: in expansion of macro 'LOG_DBG'
  116 |                 LOG_DBG("Cannot get pointer to %s device.",
      |                 ^~~~~~~
C:/west/zephyr/include/devicetree.h:305:40: error: 'DT_N_INST_0_st_lis3mdl_magn_P_irq_gpios_IDX_0_VAL_pin' undeclared (first use in this function)
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                                        ^~~~~~~~~
C:/west/zephyr/include/devicetree.h:3022:24: note: in definition of macro 'DT_CAT'
 3022 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
C:/west/zephyr/include/devicetree.h:1083:9: note: in expansion of macro 'DT_PROP'
 1083 |         DT_PROP(node_id, pha##_IDX_##idx##_VAL_##cell)
      |         ^~~~~~~
C:/west/zephyr/include/devicetree/gpio.h:158:9: note: in expansion of macro 'DT_PHA_BY_IDX'
  158 |         DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin)
      |         ^~~~~~~~~~~~~
C:/west/zephyr/include/devicetree/gpio.h:260:9: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX'
  260 |         DT_GPIO_PIN_BY_IDX(DT_DRV_INST(inst), gpio_pha, idx)
      |         ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/sys/util_internal.h:98:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
   98 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
      |                          ^~~~~~~~~~~~~~~~~~
C:/west/zephyr/include/devicetree.h:305:31: note: in expansion of macro 'UTIL_CAT'
  305 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                               ^~~~~~~~
C:/west/zephyr/include/devicetree.h:2434:27: note: in expansion of macro 'DT_INST'
 2434 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
      |                           ^~~~~~~
C:/west/zephyr/include/devicetree/gpio.h:260:28: note: in expansion of macro 'DT_DRV_INST'
  260 |         DT_GPIO_PIN_BY_IDX(DT_DRV_INST(inst), gpio_pha, idx)
      |                            ^~~~~~~~~~~
C:/west/zephyr/include/devicetree/gpio.h:271:9: note: in expansion of macro 'DT_INST_GPIO_PIN_BY_IDX'
  271 |         DT_INST_GPIO_PIN_BY_IDX(inst, gpio_pha, 0)
      |         ^~~~~~~~~~~~~~~~~~~~~~~
C:/west/zephyr/drivers/sensor/lis3mdl/lis3mdl_trigger.c:122:28: note: in expansion of macro 'DT_INST_GPIO_PIN'
  122 |                            DT_INST_GPIO_PIN(0, irq_gpios),
      |                            ^~~~~~~~~~~~~~~~
[111/189] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/west/modules/hal/nordic/nrfx/drivers/src/nrfx_twim.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' --build 'C:\west\build'
PS C:\west>