[82/256] Building C object zephyr/drivers/disk/CMakeFiles/drivers__disk.dir/flashdisk.c.obj FAILED: zephyr/drivers/disk/CMakeFiles/drivers__disk.dir/flashdisk.c.obj C:\ncs\toolchains\ce3b5ff664\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DK_HEAP_MEM_POOL_SIZE=4096 -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DPICOLIBC_DOUBLE_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR_SUPERVISOR__ -D__ZEPHYR__=1 -IC:/ncs/v2.7.0/zephyr/include -IC:/Users/Documents/fs_app/_build/zephyr/include/generated -IC:/ncs/v2.7.0/modules/soc-hwmv1/soc/arm/nordic_nrf/nrf53 -IC:/ncs/v2.7.0/modules/soc-hwmv1/soc/arm/nordic_nrf/nrf53/. -IC:/ncs/v2.7.0/modules/soc-hwmv1/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.7.0/zephyr/subsys/usb/device -IC:/ncs/v2.7.0/zephyr/subsys/bluetooth -IC:/ncs/v2.7.0/zephyr/drivers/usb/common/nrf_usbd_common/. -IC:/ncs/v2.7.0/nrf/include -IC:/ncs/v2.7.0/nrf/tests/include -IC:/ncs/v2.7.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.7.0/zephyr/modules/cmsis/. -IC:/ncs/v2.7.0/modules/hal/nordic/nrfx -IC:/ncs/v2.7.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.7.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.7.0/zephyr/modules/hal_nordic/nrfx/. -IC:/Users/Documents/fs_app/_build/modules/libmetal/libmetal/lib/include -IC:/ncs/v2.7.0/modules/lib/open-amp/open-amp/lib/include -IC:/ncs/v2.7.0/modules/debug/segger/SEGGER -IC:/ncs/v2.7.0/modules/debug/segger/Config -IC:/ncs/v2.7.0/modules/crypto/tinycrypt/lib/include -IC:/ncs/v2.7.0/nrfxlib/softdevice_controller/include -IC:/Users/Documents/fs_app/lib/hal/nRFConnect -IC:/Users/Documents/fs_app/lib/hal/nRFConnect/nrf5340 -IC:/ncs/v2.7.0/zephyr/modules/fatfs -IC:/ncs/v2.7.0/modules/fs/fatfs/include -isystem C:/ncs/v2.7.0/zephyr/lib/libc/common/include -isystem C:/ncs/v2.7.0/nrfxlib/crypto/nrf_cc312_platform/include -g -Wshadow -fno-strict-aliasing -Og -imacros C:/Users/Documents/fs_app/_build/zephyr/include/generated/autoconf.h -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft --sysroot=C:/ncs/toolchains/ce3b5ff664/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.7.0/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=C:/Users/Documents/fs_app=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.7.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.7.0=WEST_TOPDIR -ffunction-sections -fdata-sections --specs=picolibc.specs -std=c99 -MD -MT zephyr/drivers/disk/CMakeFiles/drivers__disk.dir/flashdisk.c.obj -MF zephyr\drivers\disk\CMakeFiles\drivers__disk.dir\flashdisk.c.obj.d -o zephyr/drivers/disk/CMakeFiles/drivers__disk.dir/flashdisk.c.obj -c C:/ncs/v2.7.0/zephyr/drivers/disk/flashdisk.c C:/ncs/v2.7.0/zephyr/drivers/disk/flashdisk.c:484:1: error: return type defaults to 'int' [-Werror=implicit-int] 484 | PM_FOREACH_AFFILIATED_TO_disk(DEFINE_FLASHDISKS_CACHE) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.7.0/zephyr/drivers/disk/flashdisk.c: In function 'PM_FOREACH_AFFILIATED_TO_disk': C:/ncs/v2.7.0/zephyr/drivers/disk/flashdisk.c:523:30: error: storage class specified for parameter 'flash_disks' 523 | static struct flashdisk_data flash_disks[] = { | ^~~~~~~~~~~ C:/ncs/v2.7.0/zephyr/drivers/disk/flashdisk.c:523:15: error: parameter 'flash_disks' is initialized 523 | static struct flashdisk_data flash_disks[] = { | ^~~~~~~~~~~~~~ C:/ncs/v2.7.0/zephyr/drivers/disk/flashdisk.c:524:39: error: 'DEFINE_FLASHDISKS_DEVICE' undeclared (first use in this function) 524 | PM_FOREACH_AFFILIATED_TO_disk(DEFINE_FLASHDISKS_DEVICE) | ^~~~~~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.7.0/zephyr/drivers/disk/flashdisk.c:524:39: note: each undeclared identifier is reported only once for each function it appears in C:/ncs/v2.7.0/zephyr/drivers/disk/flashdisk.c:533:1: error: expected declaration specifiers before 'PM_FOREACH_AFFILIATED_TO_disk' 533 | PM_FOREACH_AFFILIATED_TO_disk(VERIFY_CACHE_SIZE_IS_NOT_ZERO_IF_NOT_READ_ONLY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from C:/ncs/v2.7.0/zephyr/include/zephyr/toolchain/gcc.h:98, from C:/ncs/v2.7.0/zephyr/include/zephyr/toolchain.h:50, from C:/ncs/v2.7.0/zephyr/include/zephyr/sys/__assert.h:11, from C:/ncs/v2.7.0/zephyr/drivers/disk/flashdisk.c:10: C:/ncs/v2.7.0/zephyr/include/zephyr/init.h:141:44: error: storage class specified for parameter '__init_disk_flash_init' 141 | #define Z_INIT_ENTRY_NAME(init_id) _CONCAT(__init_, init_id) | ^~~~~~~ C:/ncs/v2.7.0/zephyr/include/zephyr/toolchain/common.h:137:26: note: in definition of macro '_DO_CONCAT' 137 | #define _DO_CONCAT(x, y) x ## y | ^ C:/ncs/v2.7.0/zephyr/include/zephyr/init.h:141:36: note: in expansion of macro '_CONCAT' 141 | #define Z_INIT_ENTRY_NAME(init_id) _CONCAT(__init_, init_id) | ^~~~~~~ C:/ncs/v2.7.0/zephyr/include/zephyr/init.h:241:17: note: in expansion of macro 'Z_INIT_ENTRY_NAME' 241 | Z_INIT_ENTRY_NAME(name) = {.init_fn = {.sys = (init_fn_)}, \ | ^~~~~~~~~~~~~~~~~ C:/ncs/v2.7.0/zephyr/include/zephyr/init.h:223:9: note: in expansion of macro 'SYS_INIT_NAMED' 223 | SYS_INIT_NAMED(init_fn, init_fn, level, prio) | ^~~~~~~~~~~~~~ C:/ncs/v2.7.0/zephyr/drivers/disk/flashdisk.c:563:1: note: in expansion of macro 'SYS_INIT' 563 | SYS_INIT(disk_flash_init, APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); | ^~~~~~~~ C:/ncs/v2.7.0/zephyr/include/zephyr/init.h:239:42: error: parameter '__init_disk_flash_init' is initialized 239 | static const Z_DECL_ALIGN(struct init_entry) \ | ^~~~~~~~~~ C:/ncs/v2.7.0/zephyr/include/zephyr/toolchain/common.h:195:55: note: in definition of macro 'Z_DECL_ALIGN' 195 | #define Z_DECL_ALIGN(type) __aligned(__alignof(type)) type | ^~~~ C:/ncs/v2.7.0/zephyr/include/zephyr/init.h:223:9: note: in expansion of macro 'SYS_INIT_NAMED' 223 | SYS_INIT_NAMED(init_fn, init_fn, level, prio) | ^~~~~~~~~~~~~~ C:/ncs/v2.7.0/zephyr/drivers/disk/flashdisk.c:563:1: note: in expansion of macro 'SYS_INIT' 563 | SYS_INIT(disk_flash_init, APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); | ^~~~~~~~ C:/ncs/v2.7.0/zephyr/include/zephyr/init.h:141:44: error: section attribute not allowed for '__init_disk_flash_init' 141 | #define Z_INIT_ENTRY_NAME(init_id) _CONCAT(__init_, init_id) | ^~~~~~~ C:/ncs/v2.7.0/zephyr/include/zephyr/toolchain/common.h:137:26: note: in definition of macro '_DO_CONCAT' 137 | #define _DO_CONCAT(x, y) x ## y | ^ C:/ncs/v2.7.0/zephyr/include/zephyr/init.h:141:36: note: in expansion of macro '_CONCAT' 141 | #define Z_INIT_ENTRY_NAME(init_id) _CONCAT(__init_, init_id) | ^~~~~~~ C:/ncs/v2.7.0/zephyr/include/zephyr/init.h:241:17: note: in expansion of macro 'Z_INIT_ENTRY_NAME' 241 | Z_INIT_ENTRY_NAME(name) = {.init_fn = {.sys = (init_fn_)}, \ | ^~~~~~~~~~~~~~~~~ C:/ncs/v2.7.0/zephyr/include/zephyr/init.h:223:9: note: in expansion of macro 'SYS_INIT_NAMED' 223 | SYS_INIT_NAMED(init_fn, init_fn, level, prio) | ^~~~~~~~~~~~~~ C:/ncs/v2.7.0/zephyr/drivers/disk/flashdisk.c:563:1: note: in expansion of macro 'SYS_INIT' 563 | SYS_INIT(disk_flash_init, APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); | ^~~~~~~~ C:/ncs/v2.7.0/zephyr/include/zephyr/init.h:239:42: warning: 'used' attribute ignored [-Wattributes] 239 | static const Z_DECL_ALIGN(struct init_entry) \ | ^~~~~~~~~~ C:/ncs/v2.7.0/zephyr/include/zephyr/toolchain/common.h:195:55: note: in definition of macro 'Z_DECL_ALIGN' 195 | #define Z_DECL_ALIGN(type) __aligned(__alignof(type)) type | ^~~~ C:/ncs/v2.7.0/zephyr/include/zephyr/init.h:223:9: note: in expansion of macro 'SYS_INIT_NAMED' 223 | SYS_INIT_NAMED(init_fn, init_fn, level, prio) | ^~~~~~~~~~~~~~ C:/ncs/v2.7.0/zephyr/drivers/disk/flashdisk.c:563:1: note: in expansion of macro 'SYS_INIT' 563 | SYS_INIT(disk_flash_init, APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); | ^~~~~~~~ C:/ncs/v2.7.0/zephyr/include/zephyr/init.h:141:44: error: alignment may not be specified for '__init_disk_flash_init' 141 | #define Z_INIT_ENTRY_NAME(init_id) _CONCAT(__init_, init_id) | ^~~~~~~ C:/ncs/v2.7.0/zephyr/include/zephyr/toolchain/common.h:137:26: note: in definition of macro '_DO_CONCAT' 137 | #define _DO_CONCAT(x, y) x ## y | ^ C:/ncs/v2.7.0/zephyr/include/zephyr/init.h:141:36: note: in expansion of macro '_CONCAT' 141 | #define Z_INIT_ENTRY_NAME(init_id) _CONCAT(__init_, init_id) | ^~~~~~~ C:/ncs/v2.7.0/zephyr/include/zephyr/init.h:241:17: note: in expansion of macro 'Z_INIT_ENTRY_NAME' 241 | Z_INIT_ENTRY_NAME(name) = {.init_fn = {.sys = (init_fn_)}, \ | ^~~~~~~~~~~~~~~~~ C:/ncs/v2.7.0/zephyr/include/zephyr/init.h:223:9: note: in expansion of macro 'SYS_INIT_NAMED' 223 | SYS_INIT_NAMED(init_fn, init_fn, level, prio) | ^~~~~~~~~~~~~~ C:/ncs/v2.7.0/zephyr/drivers/disk/flashdisk.c:563:1: note: in expansion of macro 'SYS_INIT' 563 | SYS_INIT(disk_flash_init, APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); | ^~~~~~~~ In file included from C:/ncs/v2.7.0/zephyr/include/zephyr/device.h:13, from C:/ncs/v2.7.0/zephyr/include/zephyr/sw_isr_table.h:18, from C:/ncs/v2.7.0/zephyr/include/zephyr/arch/arm/irq.h:19, from C:/ncs/v2.7.0/zephyr/include/zephyr/arch/arm/arch.h:27, from C:/ncs/v2.7.0/zephyr/include/zephyr/arch/cpu.h:19, from C:/ncs/v2.7.0/zephyr/include/zephyr/kernel_includes.h:36, from C:/ncs/v2.7.0/zephyr/include/zephyr/kernel.h:17, from C:/ncs/v2.7.0/zephyr/include/zephyr/drivers/disk.h:30, from C:/ncs/v2.7.0/zephyr/drivers/disk/flashdisk.c:12: C:/ncs/v2.7.0/zephyr/drivers/disk/flashdisk.c:563:10: error: 'disk_flash_init' undeclared (first use in this function) 563 | SYS_INIT(disk_flash_init, APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); | ^~~~~~~~~~~~~~~ C:/ncs/v2.7.0/zephyr/include/zephyr/init.h:241:64: note: in definition of macro 'SYS_INIT_NAMED' 241 | Z_INIT_ENTRY_NAME(name) = {.init_fn = {.sys = (init_fn_)}, \ | ^~~~~~~~ C:/ncs/v2.7.0/zephyr/drivers/disk/flashdisk.c:563:1: note: in expansion of macro 'SYS_INIT' 563 | SYS_INIT(disk_flash_init, APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); | ^~~~~~~~ C:/ncs/v2.7.0/zephyr/drivers/disk/flashdisk.c:484:1: error: type of 'DEFINE_FLASHDISKS_CACHE' defaults to 'int' [-Werror=implicit-int] 484 | PM_FOREACH_AFFILIATED_TO_disk(DEFINE_FLASHDISKS_CACHE) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.7.0/zephyr/include/zephyr/init.h:141:44: error: declaration for parameter '__init_disk_flash_init' but no such parameter 141 | #define Z_INIT_ENTRY_NAME(init_id) _CONCAT(__init_, init_id) | ^~~~~~~ C:/ncs/v2.7.0/zephyr/include/zephyr/toolchain/common.h:137:26: note: in definition of macro '_DO_CONCAT' 137 | #define _DO_CONCAT(x, y) x ## y | ^ C:/ncs/v2.7.0/zephyr/include/zephyr/init.h:141:36: note: in expansion of macro '_CONCAT' 141 | #define Z_INIT_ENTRY_NAME(init_id) _CONCAT(__init_, init_id) | ^~~~~~~ C:/ncs/v2.7.0/zephyr/include/zephyr/init.h:241:17: note: in expansion of macro 'Z_INIT_ENTRY_NAME' 241 | Z_INIT_ENTRY_NAME(name) = {.init_fn = {.sys = (init_fn_)}, \ | ^~~~~~~~~~~~~~~~~ C:/ncs/v2.7.0/zephyr/include/zephyr/init.h:223:9: note: in expansion of macro 'SYS_INIT_NAMED' 223 | SYS_INIT_NAMED(init_fn, init_fn, level, prio) | ^~~~~~~~~~~~~~ C:/ncs/v2.7.0/zephyr/drivers/disk/flashdisk.c:563:1: note: in expansion of macro 'SYS_INIT' 563 | SYS_INIT(disk_flash_init, APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); | ^~~~~~~~ C:/ncs/v2.7.0/zephyr/drivers/disk/flashdisk.c:523:30: error: declaration for parameter 'flash_disks' but no such parameter 523 | static struct flashdisk_data flash_disks[] = { | ^~~~~~~~~~~ C:/ncs/v2.7.0/zephyr/drivers/disk/flashdisk.c:565: error: expected '{' at end of input C:/ncs/v2.7.0/zephyr/drivers/disk/flashdisk.c:565: warning: control reaches end of non-void function [-Wreturn-type] C:/ncs/v2.7.0/zephyr/drivers/disk/flashdisk.c: At top level: C:/ncs/v2.7.0/zephyr/drivers/disk/flashdisk.c:415:37: warning: 'flash_disk_ops' defined but not used [-Wunused-const-variable=] 415 | static const struct disk_operations flash_disk_ops = { | ^~~~~~~~~~~~~~ cc1.exe: some warnings being treated as errors [91/254] Building C object zephyr/drivers/usb/device/CMakeFiles/drivers__usb__device.dir/usb_dc_nrfx.c.obj ninja: build stopped: subcommand failed. FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\ce3b5ff664\opt\bin\cmake.EXE' --build 'c:\Users\Documents\fs_app\_build' * The terminal process terminated with exit code: 1.