Problems with build after Window10 update

I allowed some Windows10 updates to go through earlier today, and now I can't get my code to build.

I've even gone back to some previous versions that worked yesterday and tried them.  This is what I get when I try and build any of my versions of code:

C:\Nordic\v1.9.1\zephyr\subsys\bluetooth\services\dis.c:142:13: warning: Macro is deprecated
  142 | );
      |             ^                    
[126/273] Building C object CMakeFiles/app.dir/src/ble_config.c.obj
c:\Nordic\PrototypeSoftware\LSR-MAX\LSR-MAX_V0_06\src\ble_config.c:71:13: warning: Macro is deprecated
   71 |  );
      |             ^                    
[190/273] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/att.c.obj
FAILED: zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/att.c.obj 
C:\Nordic\v1.9.1\toolchain\opt\bin\arm-none-eabi-gcc.exe -DBUILD_VERSION=v2.7.99-ncs1-1 -DKERNEL -DNRF52832_XXAA -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/Nordic/v1.9.1/nrf/drivers/mpsl/clock_control -IC:/Nordic/v1.9.1/zephyr/include -Izephyr/include/generated -IC:/Nordic/v1.9.1/zephyr/soc/arm/nordic_nrf/nrf52 -IC:/Nordic/v1.9.1/zephyr/soc/arm/nordic_nrf/common/. -IC:/Nordic/v1.9.1/zephyr/subsys/bluetooth -IC:/Nordic/v1.9.1/zephyr/subsys/settings/include -IC:/Nordic/v1.9.1/nrf/include -IC:/Nordic/v1.9.1/nrf/lib/multithreading_lock/. -IC:/Nordic/v1.9.1/nrf/subsys/bluetooth/controller/. -IC:/Nordic/v1.9.1/zephyr/drivers/flash -IC:/Nordic/v1.9.1/modules/hal/cmsis/CMSIS/Core/Include -IC:/Nordic/v1.9.1/modules/hal/nordic/nrfx -IC:/Nordic/v1.9.1/modules/hal/nordic/nrfx/drivers/include -IC:/Nordic/v1.9.1/modules/hal/nordic/nrfx/mdk -IC:/Nordic/v1.9.1/zephyr/modules/hal_nordic/nrfx/. -IC:/Nordic/v1.9.1/modules/debug/segger/SEGGER -IC:/Nordic/v1.9.1/modules/debug/segger/Config -IC:/Nordic/v1.9.1/zephyr/modules/segger/. -IC:/Nordic/v1.9.1/modules/lib/tinycbor/zephyr/../include -IC:/Nordic/v1.9.1/modules/crypto/tinycrypt/lib/include -IC:/Nordic/v1.9.1/nrfxlib/mpsl/include -IC:/Nordic/v1.9.1/nrfxlib/mpsl/include/protocol -IC:/Nordic/PrototypeSoftware/LSR-MAX/LSR-MAX_V0_06/src -IC:/Nordic/v1.9.1/nrfxlib/softdevice_controller/include -isystem C:/Nordic/v1.9.1/zephyr/lib/libc/minimal/include -isystem c:/nordic/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/include -isystem c:/nordic/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/include-fixed -Os -imacros C:/Nordic/PrototypeSoftware/LSR-MAX/LSR-MAX_V0_06/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee -imacros C:/Nordic/v1.9.1/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:/Nordic/PrototypeSoftware/LSR-MAX/LSR-MAX_V0_06=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/Nordic/v1.9.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/Nordic/v1.9.1=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/att.c.obj -MF zephyr\subsys\bluetooth\host\CMakeFiles\subsys__bluetooth__host.dir\att.c.obj.d -o zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/att.c.obj -c C:/Nordic/v1.9.1/zephyr/subsys/bluetooth/host/att.c
C:/Nordic/v1.9.1/zephyr/subsys/bluetooth/host/att.c: In function 'write_cb':
C:\Nordic\v1.9.1\zephyr\subsys\bluetooth\host\att.c:1670:12: error: 'BT_GATT_WRITE_FLAG_EXECUTE' undeclared (first use in this function); did you mean 'BT_GATT_WRITE_FLAG_PREPARE'?
 1670 |   flags |= BT_GATT_WRITE_FLAG_EXECUTE;
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |            BT_GATT_WRITE_FLAG_PREPARE
C:\Nordic\v1.9.1\zephyr\subsys\bluetooth\host\att.c:1670:12: note: each undeclared identifier is reported only once for each function it appears in
[191/273] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/gatt.c.obj
FAILED: zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/gatt.c.obj 
C:\Nordic\v1.9.1\toolchain\opt\bin\arm-none-eabi-gcc.exe -DBUILD_VERSION=v2.7.99-ncs1-1 -DKERNEL -DNRF52832_XXAA -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/Nordic/v1.9.1/nrf/drivers/mpsl/clock_control -IC:/Nordic/v1.9.1/zephyr/include -Izephyr/include/generated -IC:/Nordic/v1.9.1/zephyr/soc/arm/nordic_nrf/nrf52 -IC:/Nordic/v1.9.1/zephyr/soc/arm/nordic_nrf/common/. -IC:/Nordic/v1.9.1/zephyr/subsys/bluetooth -IC:/Nordic/v1.9.1/zephyr/subsys/settings/include -IC:/Nordic/v1.9.1/nrf/include -IC:/Nordic/v1.9.1/nrf/lib/multithreading_lock/. -IC:/Nordic/v1.9.1/nrf/subsys/bluetooth/controller/. -IC:/Nordic/v1.9.1/zephyr/drivers/flash -IC:/Nordic/v1.9.1/modules/hal/cmsis/CMSIS/Core/Include -IC:/Nordic/v1.9.1/modules/hal/nordic/nrfx -IC:/Nordic/v1.9.1/modules/hal/nordic/nrfx/drivers/include -IC:/Nordic/v1.9.1/modules/hal/nordic/nrfx/mdk -IC:/Nordic/v1.9.1/zephyr/modules/hal_nordic/nrfx/. -IC:/Nordic/v1.9.1/modules/debug/segger/SEGGER -IC:/Nordic/v1.9.1/modules/debug/segger/Config -IC:/Nordic/v1.9.1/zephyr/modules/segger/. -IC:/Nordic/v1.9.1/modules/lib/tinycbor/zephyr/../include -IC:/Nordic/v1.9.1/modules/crypto/tinycrypt/lib/include -IC:/Nordic/v1.9.1/nrfxlib/mpsl/include -IC:/Nordic/v1.9.1/nrfxlib/mpsl/include/protocol -IC:/Nordic/PrototypeSoftware/LSR-MAX/LSR-MAX_V0_06/src -IC:/Nordic/v1.9.1/nrfxlib/softdevice_controller/include -isystem C:/Nordic/v1.9.1/zephyr/lib/libc/minimal/include -isystem c:/nordic/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/include -isystem c:/nordic/v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/include-fixed -Os -imacros C:/Nordic/PrototypeSoftware/LSR-MAX/LSR-MAX_V0_06/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee -imacros C:/Nordic/v1.9.1/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:/Nordic/PrototypeSoftware/LSR-MAX/LSR-MAX_V0_06=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/Nordic/v1.9.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/Nordic/v1.9.1=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/gatt.c.obj -MF zephyr\subsys\bluetooth\host\CMakeFiles\subsys__bluetooth__host.dir\gatt.c.obj.d -o zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/gatt.c.obj -c C:/Nordic/v1.9.1/zephyr/subsys/bluetooth/host/gatt.c
C:\Nordic\v1.9.1\zephyr\subsys\bluetooth\host\gatt.c:211:13: warning: Macro is deprecated
  211 | );
      |             ^                    
C:\Nordic\v1.9.1\zephyr\subsys\bluetooth\host\gatt.c:865:13: warning: Macro is deprecated
  865 | );
      |             ^                    
C:/Nordic/v1.9.1/zephyr/subsys/bluetooth/host/gatt.c: In function 'gatt_read_mult_encode':
C:\Nordic\v1.9.1\zephyr\subsys\bluetooth\host\gatt.c:3997:31: error: 'struct bt_gatt_read_params' has no member named 'multiple'
 3997 |   net_buf_add_le16(buf, params->multiple.handles[i]);
      |                               ^~
C:/Nordic/v1.9.1/zephyr/subsys/bluetooth/host/gatt.c: In function 'bt_gatt_read':
C:\Nordic\v1.9.1\zephyr\subsys\bluetooth\host\gatt.c:4120:13: error: 'struct bt_gatt_read_params' has no member named 'multiple'
 4120 |   if (params->multiple.variable) {
      |             ^~
[198/273] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/smp.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'c:\Nordic\v1.9.1\toolchain\opt\bin\cmake.EXE' --build 'c:\Nordic\PrototypeSoftware\LSR-MAX\LSR-MAX_V0_06\build'
The terminal process terminated with exit code: 1.

It seems to be related to the Bluetooth API's.

This was the update that got installed: support.microsoft.com/.../april-12-2022-kb5012117-cumulative-update-for-net-framework-3-5-and-4-8-for-windows-10-version-20h2-windows-server-version-20h2-windows-10-version-21h1-and-windows-10-version-21h2-7214b844-c002-49e4-9962-773e964ff737

Anyone having similar issues?

Parents Reply Children
Related