Hello, after upgrading to SDK version 2.1.0 I noticed that the compilation of all my projects for actinius_icarus_ns always fails:
FAILED: modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/nrf_modem_os.c.obj
ccache /opt/nordic/ncs/toolchains/v2.1.1/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DKERNEL -DNRF9160_XXAA -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_TRUSTZONE_NONSECURE -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -I/opt/nordic/ncs/v2.1.1/zephyr/include/zephyr -I/opt/nordic/ncs/v2.1.1/zephyr/include -Izephyr/include/generated -I/opt/nordic/ncs/v2.1.1/zephyr/soc/arm/nordic_nrf/nrf91 -I/opt/nordic/ncs/v2.1.1/zephyr/lib/libc/newlib/include -I/opt/nordic/ncs/v2.1.1/zephyr/soc/arm/nordic_nrf/common/. -I/opt/nordic/ncs/v2.1.1/nrf/include -I/opt/nordic/ncs/v2.1.1/modules/hal/cmsis/CMSIS/Core/Include -I/opt/nordic/ncs/v2.1.1/modules/hal/nordic/nrfx -I/opt/nordic/ncs/v2.1.1/modules/hal/nordic/nrfx/drivers/include -I/opt/nordic/ncs/v2.1.1/modules/hal/nordic/nrfx/mdk -I/opt/nordic/ncs/v2.1.1/zephyr/modules/hal_nordic/nrfx/. -I/opt/nordic/ncs/v2.1.1/nrfxlib/nrf_modem/include -Os -imacros /Users/leon/Development/Nordic/hello_world/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=/opt/nordic/ncs/toolchains/v2.1.1/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros /opt/nordic/ncs/v2.1.1/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/Users/leon/Development/Nordic/hello_world=CMAKE_SOURCE_DIR -fmacro-prefix-map=/opt/nordic/ncs/v2.1.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/opt/nordic/ncs/v2.1.1=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=nano.specs -std=c99 -MD -MT modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/nrf_modem_os.c.obj -MF modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/nrf_modem_os.c.obj.d -o modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/nrf_modem_os.c.obj -c /opt/nordic/ncs/v2.1.1/nrf/lib/nrf_modem_lib/nrf_modem_os.c
/opt/nordic/ncs/v2.1.1/nrf/lib/nrf_modem_lib/nrf_modem_os.c:17:10: fatal error: pm_config.h: No such file or directory
17 | #include <pm_config.h>
| ^~~~~~~~~~~~~
compilation terminated.
[102/150] Building C object modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/sanity.c.obj
FAILED: modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/sanity.c.obj
ccache /opt/nordic/ncs/toolchains/v2.1.1/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DKERNEL -DNRF9160_XXAA -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_TRUSTZONE_NONSECURE -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -I/opt/nordic/ncs/v2.1.1/zephyr/include/zephyr -I/opt/nordic/ncs/v2.1.1/zephyr/include -Izephyr/include/generated -I/opt/nordic/ncs/v2.1.1/zephyr/soc/arm/nordic_nrf/nrf91 -I/opt/nordic/ncs/v2.1.1/zephyr/lib/libc/newlib/include -I/opt/nordic/ncs/v2.1.1/zephyr/soc/arm/nordic_nrf/common/. -I/opt/nordic/ncs/v2.1.1/nrf/include -I/opt/nordic/ncs/v2.1.1/modules/hal/cmsis/CMSIS/Core/Include -I/opt/nordic/ncs/v2.1.1/modules/hal/nordic/nrfx -I/opt/nordic/ncs/v2.1.1/modules/hal/nordic/nrfx/drivers/include -I/opt/nordic/ncs/v2.1.1/modules/hal/nordic/nrfx/mdk -I/opt/nordic/ncs/v2.1.1/zephyr/modules/hal_nordic/nrfx/. -I/opt/nordic/ncs/v2.1.1/nrfxlib/nrf_modem/include -Os -imacros /Users/leon/Development/Nordic/hello_world/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=/opt/nordic/ncs/toolchains/v2.1.1/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros /opt/nordic/ncs/v2.1.1/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/Users/leon/Development/Nordic/hello_world=CMAKE_SOURCE_DIR -fmacro-prefix-map=/opt/nordic/ncs/v2.1.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/opt/nordic/ncs/v2.1.1=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=nano.specs -std=c99 -MD -MT modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/sanity.c.obj -MF modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/sanity.c.obj.d -o modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/sanity.c.obj -c /opt/nordic/ncs/v2.1.1/nrf/lib/nrf_modem_lib/sanity.c
/opt/nordic/ncs/v2.1.1/nrf/lib/nrf_modem_lib/sanity.c:10:10: fatal error: pm_config.h: No such file or directory
10 | #include <pm_config.h>
| ^~~~~~~~~~~~~
compilation terminated.
[103/150] Building C object modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/nrf_modem_lib.c.obj
FAILED: modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/nrf_modem_lib.c.obj
ccache /opt/nordic/ncs/toolchains/v2.1.1/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DKERNEL -DNRF9160_XXAA -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_TRUSTZONE_NONSECURE -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -I/opt/nordic/ncs/v2.1.1/zephyr/include/zephyr -I/opt/nordic/ncs/v2.1.1/zephyr/include -Izephyr/include/generated -I/opt/nordic/ncs/v2.1.1/zephyr/soc/arm/nordic_nrf/nrf91 -I/opt/nordic/ncs/v2.1.1/zephyr/lib/libc/newlib/include -I/opt/nordic/ncs/v2.1.1/zephyr/soc/arm/nordic_nrf/common/. -I/opt/nordic/ncs/v2.1.1/nrf/include -I/opt/nordic/ncs/v2.1.1/modules/hal/cmsis/CMSIS/Core/Include -I/opt/nordic/ncs/v2.1.1/modules/hal/nordic/nrfx -I/opt/nordic/ncs/v2.1.1/modules/hal/nordic/nrfx/drivers/include -I/opt/nordic/ncs/v2.1.1/modules/hal/nordic/nrfx/mdk -I/opt/nordic/ncs/v2.1.1/zephyr/modules/hal_nordic/nrfx/. -I/opt/nordic/ncs/v2.1.1/nrfxlib/nrf_modem/include -Os -imacros /Users/leon/Development/Nordic/hello_world/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=/opt/nordic/ncs/toolchains/v2.1.1/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros /opt/nordic/ncs/v2.1.1/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/Users/leon/Development/Nordic/hello_world=CMAKE_SOURCE_DIR -fmacro-prefix-map=/opt/nordic/ncs/v2.1.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/opt/nordic/ncs/v2.1.1=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=nano.specs -std=c99 -MD -MT modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/nrf_modem_lib.c.obj -MF modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/nrf_modem_lib.c.obj.d -o modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/nrf_modem_lib.c.obj -c /opt/nordic/ncs/v2.1.1/nrf/lib/nrf_modem_lib/nrf_modem_lib.c
/opt/nordic/ncs/v2.1.1/nrf/lib/nrf_modem_lib/nrf_modem_lib.c:18:10: fatal error: pm_config.h: No such file or directory
18 | #include <pm_config.h>
| ^~~~~~~~~~~~~
compilation terminated.
This is even for projects, where the nrf_modem_lib is not used at all.
To make it compile, you have to add CONFIG_NRF_MODEM_LIB=n to prj.conf
But however, the code is never actually flashed to the device (although west confirms successful flash)
I already tried two different computers they both have this problem.
And it is reproducable even with the hello_world sample. (attached)8838.hello_world.zip
But if i try to compile it for nrf9160dk it works flawless and I am also able to flash the code onto the DK.
When I switch back to SDK v1.9.1 everything is compiling and flashing without any problems.
Do you know what is going on there?