Error adding build configuration for SDK Acedemy Lesson 1, Exercise 2: zephyr/syscalls/device.h: No such file or directory

I am following the nRF Connect SDK Academy, Lesson 1, Exercise 2 on a Windows 11 system.  I got to step 4.12, "Click the build configuration button."  After running for some time, I receive the following error:

C:/ncs/v3.1.1/zephyr/include/zephyr/device.h:1352:10: fatal error: zephyr/syscalls/device.h: No such file or directory
1352 | #include <zephyr/syscalls/device.h>

I have exactly followed the instructions, and they mention nothing related to this error.  Why do the default settings not appropriately set all include directories and how do I fix it?

EDIT: after changing the build from default to not using sysbuild, I got a different error.  I then set it to use sysbuild, and it works with no errors.  Not sure why, but at least I can now proceed with the tutorials.

Full output is below:

Building l1_e2
west build --build-dir c:/Users/StephenGliske/nRT/l1_e2/build c:/Users/StephenGliske/nRT/l1_e2 --pristine --board bl54l15_dvk/nrf54l15/cpuapp/ns

-- west build: generating a build system
Loading Zephyr module(s) (Zephyr base): sysbuild_default
-- Found Python3: C:/ncs/toolchains/c1a76fddb2/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
-- Cache files will be written to: C:/ncs/v3.1.1/zephyr/.cache
-- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
-- Board: bl54l15_dvk, qualifiers: nrf54l15/cpuapp/ns
Parsing C:/ncs/v3.1.1/zephyr/share/sysbuild/Kconfig
Loaded configuration 'C:/Users/StephenGliske/nRT/l1_e2/build/_sysbuild/empty.conf'
Merged configuration 'C:/Users/StephenGliske/nRT/l1_e2/build/_sysbuild/empty.conf'
Configuration saved to 'C:/Users/StephenGliske/nRT/l1_e2/build/zephyr/.config'
Kconfig header saved to 'C:/Users/StephenGliske/nRT/l1_e2/build/_sysbuild/autoconf.h'
--
***************************
* Running CMake for l1_e2 *
***************************

Loading Zephyr default modules (Zephyr base).
-- Application: C:/Users/StephenGliske/nRT/l1_e2
-- CMake version: 3.21.0
-- Found Python3: C:/ncs/toolchains/c1a76fddb2/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
-- Cache files will be written to: C:/ncs/v3.1.1/zephyr/.cache
-- Zephyr version: 4.1.99 (C:/ncs/v3.1.1/zephyr)
-- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
-- Board: bl54l15_dvk, qualifiers: nrf54l15/cpuapp/ns
-- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/c1a76fddb2/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/c1a76fddb2/opt/zephyr-sdk)
-- Found Dtc: C:/ncs/toolchains/c1a76fddb2/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found BOARD.dts: C:/ncs/v3.1.1/zephyr/boards/ezurio/bl54l15_dvk/bl54l15_dvk_nrf54l15_cpuapp_ns.dts
-- Generated zephyr.dts: C:/Users/StephenGliske/nRT/l1_e2/build/l1_e2/zephyr/zephyr.dts
-- Generated pickled edt: C:/Users/StephenGliske/nRT/l1_e2/build/l1_e2/zephyr/edt.pickle
-- Generated devicetree_generated.h: C:/Users/StephenGliske/nRT/l1_e2/build/l1_e2/zephyr/include/generated/zephyr/devicetree_generated.h

warning: Experimental symbol TFM_EXPERIMENTAL is enabled.

Parsing C:/ncs/v3.1.1/zephyr/Kconfig
Loaded configuration 'C:/ncs/v3.1.1/zephyr/boards/ezurio/bl54l15_dvk/bl54l15_dvk_nrf54l15_cpuapp_ns_defconfig'
Merged configuration 'C:/Users/StephenGliske/nRT/l1_e2/prj.conf'
Merged configuration 'C:/Users/StephenGliske/nRT/l1_e2/build/l1_e2/zephyr/.config.sysbuild'
Configuration saved to 'C:/Users/StephenGliske/nRT/l1_e2/build/l1_e2/zephyr/.config'
Kconfig header saved to 'C:/Users/StephenGliske/nRT/l1_e2/build/l1_e2/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd: c:/ncs/toolchains/c1a76fddb2/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
-- 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/c1a76fddb2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
=========== Generating psa_crypto_config ===============
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Backup: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
Backup: CONFIG_MBEDTLS_THREADING_C: True
Backup: CONFIG_MBEDTLS_THREADING_ALT: False
=========== Checkpoint: backup ===============
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Restore: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
Restore: CONFIG_MBEDTLS_THREADING_C: True
Restore: CONFIG_MBEDTLS_THREADING_ALT: False
=========== End psa_crypto_config ===============
=========== Generating psa_crypto_library_config ===============
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Backup: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
Backup: CONFIG_MBEDTLS_THREADING_C: True
Backup: CONFIG_MBEDTLS_THREADING_ALT: False
=========== Checkpoint: backup ===============
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Restore: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
Restore: CONFIG_MBEDTLS_THREADING_C: True
Restore: CONFIG_MBEDTLS_THREADING_ALT: False
=========== End psa_crypto_library_config ===============
-- Found gen_kobject_list: C:/ncs/v3.1.1/zephyr/scripts/build/gen_kobject_list.py
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/StephenGliske/nRT/l1_e2/build/l1_e2
Dropping partition 'nonsecure_storage' since it is empty.
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/StephenGliske/nRT/l1_e2/build
←[92m-- west build: building application
[5/10] Performing build step for 'l1_e2'
[4/229] Generating include/generated/zephyr/version.h
-- Zephyr version: 4.1.99 (C:/ncs/v3.1.1/zephyr), build: ncs-v3.1.1
[5/229] Generating ../../tfm/CMakeCache.txt
-- Found Git: C:/ncs/toolchains/c1a76fddb2/mingw64/bin/git.exe (found version "2.37.3.windows.1")
-- 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/c1a76fddb2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
-- Found Python3: C:/ncs/toolchains/c1a76fddb2/opt/bin/python.exe (found version "3.12.4") found components: Interpreter
-- Found Python3: C:/ncs/toolchains/c1a76fddb2/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
-- Cache files will be written to: C:/ncs/v3.1.1/zephyr/.cache
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/StephenGliske/nRT/l1_e2/build/l1_e2/tfm
[10/229] Performing build step for 'tfm'
[1/234] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/partitions/ns_agent_tz/ns_age[3/234] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/platform/ext/common/tfm_ha[4/234] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/platform/ext/target/nordic[5/234] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/platform/ext/target/nordic[6/234] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/platform/ext/target/nordic[7/234] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/platform/ext/target/nordic[8/234] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/platform/ext/target/nordic[9/234] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/platform/ext/target/nordic[10/234] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/generated/secure_fw/parti[11/234] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/generated/secure_fw/parti[12/234] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/partitions/ns_agent_tz/load_[13/234] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/generated/secure_fw/parti[14/234] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/platform/ext/common/sysca[15/234] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/generated/secure_fw/parti[16/234] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/__/__/__/sh[17/234] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/__/__/__/sh[18/234] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/sfn_common_[19/234] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/sprt_partit[20/234] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/psa_api_ipc[21/234] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/__/__/__/__[22/234] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/crt_memmove[23/234] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/crt_memcmp.[24/234] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/crt_strnlen[25/234] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/service_api[26/234] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/__/__/__/__[27/234] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/__/__/__/__[27/234] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/tfm_sp_log_[28/234] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/__/__/__/__[29/234] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/__/__/__/__[30/234] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/__/__/__/sp[31/234] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/__/__/__/__[32/234] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/__/__/__/__[33/234] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/__/__/__/__[34/234] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sp_log.dir/tfm_sp_lo[35/234] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sp_log.dir/__/__/__/[36/234] Building C object secure_fw/partitions/crypto/CMakeFiles/tfm_psa_rot_partition_crypto.[37/234] Building C object secure_fw/partitions/crypto/CMakeFiles/tfm_psa_rot_partition_crypto.[38/234] Building C object secure_fw/partitions/crypto/CMakeFiles/tfm_psa_rot_partition_crypto.[39/234] Building C object secure_fw/partitions/crypto/CMakeFiles/tfm_psa_rot_partition_crypto.[40/234] Building C object platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.1/modules/hal/nordic/[41/234] Building C object secure_fw/partitions/internal_trusted_storage/CMakeFiles/tfm_psa_rot[42/234] Building C object secure_fw/partitions/internal_trusted_storage/CMakeFiles/tfm_psa_rot[43/234] Building C object secure_fw/partitions/internal_trusted_storage/CMakeFiles/tfm_psa_rot[44/234] Building C object secure_fw/partitions/internal_trusted_storage/CMakeFiles/tfm_psa_rot[45/234] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/drivers/crac[46/234] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/drivers/crac[47/234] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/drivers/crac[47/234] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/drivers/crac[48/234] Building C object secure_fw/partitions/protected_storage/CMakeFiles/tfm_app_rot_partit[49/234] Building C object secure_fw/partitions/protected_storage/CMakeFiles/tfm_app_rot_partit[50/234] Building C object secure_fw/partitions/protected_storage/CMakeFiles/tfm_app_rot_partit[51/234] Building C object secure_fw/partitions/protected_storage/CMakeFiles/tfm_app_rot_partit[52/234] Building C object secure_fw/partitions/protected_storage/CMakeFiles/tfm_app_rot_partit[53/234] Building C object secure_fw/partitions/protected_storage/CMakeFiles/tfm_app_rot_partit[54/234] Building C object secure_fw/partitions/protected_storage/CMakeFiles/tfm_app_rot_partit[55/234] Building C object secure_fw/partitions/protected_storage/CMakeFiles/tfm_app_rot_partition...generated/secure_fw/partitions/protected_storage/auto_generated/intermedia_tfm_protected_[56/234] Building C object secure_fw/partitions/protected_storage/CMakeFiles/tfm_app_rot_partit[57/234] Building C object secure_fw/partitions/protected_storage/CMakeFiles/tfm_app_rot_partit[58/234] Building C object secure_fw/partitions/protected_storage/CMakeFiles/tfm_app_rot_partition...ure_fw/partitions/internal_trusted_storage/auto_generated/load_info_tfm_internal_trusted_[59/234] Building C object secure_fw/partitions/protected_storage/CMakeFiles/tfm_app_rot_partition_ps.dir/__/__/__/generated/secure_fw/partitions/platform/auto_generated/load_info_tfm_platfo[60/234] Building C object secure_fw/partitions/protected_storage/CMakeFiles/tfm_app_rot_partit[61/234] Building C object secure_fw/partitions/protected_storage/CMakeFiles/tfm_app_rot_partition.../generated/secure_fw/partitions/protected_storage/auto_generated/load_info_tfm_protected_[62/234] Building C object secure_fw/partitions/protected_storage/CMakeFiles/tfm_app_rot_partit[63/234] Building C object secure_fw/partitions/internal_trusted_storage/CMakeFiles/tfm_psa_rot[64/234] Building C object secure_fw/partitions/internal_trusted_storage/CMakeFiles/tfm_psa_rot[65/234] Building C object secure_fw/partitions/internal_trusted_storage/CMakeFiles/tfm_psa_rot[66/234] Building C object secure_fw/partitions/internal_trusted_storage/CMakeFiles/tfm_psa_rot[67/234] Building C object secure_fw/partitions/internal_trusted_storage/CMakeFiles/tfm_psa_rot[70/234] Building C object secure_fw/CMakeFiles/tfm_s.dir/partitions/ns_agent_tz/psa_api_veneer[71/234] Building C object secure_fw/CMakeFiles/tfm_s.dir/__/generated/secure_fw/partitions/pro[72/234] Building C object secure_fw/CMakeFiles/tfm_s.dir/__/platform/ext/target/nordic_nrf/com[74/234] Building C object secure_fw/CMakeFiles/tfm_s.dir/__/platform/ext/target/nordic_nrf/com[75/234] Building C object secure_fw/CMakeFiles/tfm_s.dir/__/generated/secure_fw/partitions/cry[76/234] Building C object secure_fw/CMakeFiles/tfm_s.dir/partitions/ns_agent_tz/load_info_ns_a[77/234] Building C object secure_fw/CMakeFiles/tfm_s.dir/__/generated/secure_fw/partitions/int[79/234] Building C object secure_fw/CMakeFiles/tfm_s.dir/__/generated/secure_fw/partitions/pla[80/234] Building C object secure_fw/CMakeFiles/tfm_s.dir/__/platform/ext/common/syscalls_stub.[96/234] Building C object platform/CMakeFiles/platform_s.dir/ext/target/nordic_nrf/common/core[97/234] Building C object platform/CMakeFiles/platform_s.dir/ext/target/nordic_nrf/common/core[98/234] Building C object platform/CMakeFiles/platform_s.dir/ext/target/nordic_nrf/common/core[99/234] Building C object platform/CMakeFiles/platform_s.dir/ext/target/nordic_nrf/common/core[100/234] Building C object secure_fw/partitions/internal_trusted_storage/CMakeFiles/tfm_psa_ro[101/234] Building C object secure_fw/partitions/internal_trusted_storage/CMakeFiles/tfm_psa_ro[102/234] Building C object secure_fw/partitions/internal_trusted_storage/CMakeFiles/tfm_psa_ro[103/234] Building C object secure_fw/partitions/internal_trusted_storage/CMakeFiles/tfm_psa_rot_p..._its.dir/54883154108bcae7a66a0b6814795185/auto_generated/intermedia_tfm_internal_trusted_[104/234] Building C object secure_fw/partitions/platform/CMakeFiles/tfm_psa_rot_partition_platform.dir/__/__/__/generated/secure_fw/partitions/platform/auto_generated/intermedia_tfm_platfor[105/234] Building C object secure_fw/partitions/platform/CMakeFiles/tfm_psa_rot_partition_plat[106/234] Building C object secure_fw/partitions/platform/CMakeFiles/tfm_psa_rot_partition_plat[107/234] Building C object platform/CMakeFiles/platform_s.dir/ext/target/nordic_nrf/common/cor[108/234] Building C object platform/CMakeFiles/platform_s.dir/ext/target/nordic_nrf/common/cor[109/234] Building C object platform/CMakeFiles/platform_s.dir/ext/target/nordic_nrf/common/cor[110/234] Building C object platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.1/modules/hal/nordic[111/234] Building C object platform/CMakeFiles/platform_s.dir/ext/target/nordic_nrf/common/cor[112/234] Building C object platform/CMakeFiles/platform_s.dir/ext/target/nordic_nrf/common/cor[113/234] Building C object platform/CMakeFiles/platform_s.dir/ext/target/nordic_nrf/common/nrf[114/234] Building C object platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.1/modules/hal/nordic[115/234] Building C object platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.1/nrf/modules/truste[116/234] Building C object platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.1/nrf/modules/truste[117/234] Building C object platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.1/nrf/modules/truste[118/234] Building C object platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.1/nrf/modules/truste[119/234] Building C object platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.1/nrf/modules/truste[120/234] Building C object platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.1/nrf/modules/truste[121/234] Building C object platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.1/nrf/modules/truste[122/234] Building C object platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.1/zephyr/soc/nordic/[123/234] Building C object platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.1/zephyr/soc/nordic/nrf54l/soc.o
FAILED: platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.1/zephyr/soc/nordic/nrf54l/soc.o
C:\ncs\toolchains\c1a76fddb2\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DBL1_HEADER_SIZE=0x000 -DBL1_TRAILER_SIZE=0x000 -DBL2_HEADER_SIZE=0x000 -DBL2_TRAILER_SIZE=0x000 -DCONFIG_HW_UN
IQUE_KEY -DCONFIG_HW_UNIQUE_KEY_RANDOM -DCONFIG_TFM_CONNECTION_POOL_ENABLE -DCONFIG_TFM_FLOAT_ABI=0 -DCONFIG_TFM_PARTITION_META -DCONFIG_TFM_USE_TRUSTZONE -DCRYPTO_EXT_RNG -DCRYPTO_HW_ACCELERATOR -DDA
UTH_CHIP_DEFAULT -DEXT_API_MAGIC="" -DFIRMWARE_INFO_MAGIC="" -DINSIDE_TFM_BUILD -DITS_ENCRYPTION -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_PSA_CRYPTO_CONFIG_FILE=\"nrf-psa-crypto-config.h\" -DM
BEDTLS_PSA_CRYPTO_DRIVERS -DMBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE=\"nrf-psa-crypto-user-config.h\" -DNRF54L15_XXAA -DNRF54L_SERIES -DNRF_ALLOW_NON_SECURE_FAULT_HANDLING -DNRF_ALLOW_NON_SECURE_RESET -DNR
F_APPLICATION -DNRF_CONFIG_CPU_FREQ_MHZ=128 -DNRF_NS_STORAGE -DNRF_SECURE_UART_INSTANCE=30 -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_SKIP_SAU_CONFIGURATION -DOTP_WRITEABLE -DPLATFORM_DEFAULT_BL1 -DPLATFORM
_DEFAULT_NV_COUNTERS -DPLATFORM_DEFAULT_OTP -DPLATFORM_NS_NV_COUNTERS=0 -DPROJECT_CONFIG_HEADER_FILE=\"C:/Users/StephenGliske/nRT/l1_e2/build/l1_e2/modules/nrf/modules/trusted-firmware-m/tfm_config.h\
" -DPS_CRYPTO_AEAD_ALG_GCM -DPS_ENCRYPTION -DSECURE_UART1 -DTFM_EXCEPTION_INFO_DUMP -DTFM_FIH_PROFILE_OFF -DTFM_ISOLATION_LEVEL=1 -DTFM_PARTITION_CRYPTO -DTFM_PARTITION_INTERNAL_TRUSTED_STORAGE -DTFM_
PARTITION_LOG_LEVEL=TFM_PARTITION_LOG_LEVEL_INFO -DTFM_PARTITION_NS_AGENT_TZ -DTFM_PARTITION_PLATFORM -DTFM_PARTITION_PROTECTED_STORAGE -DTFM_SPM_LOG_LEVEL=TFM_SPM_LOG_LEVEL_INFO -DTFM_SPM_LOG_RAW_ENA
BLED -DTFM_SP_LOG_RAW_ENABLED -D__ICACHE_PRESENT=1 -D__NRF_TFM__ -IC:/ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/. -IC:/ncs/v3.1.1/modules/tee/tf-m/trust
ed-firmware-m/platform/ext/target/nordic_nrf/common/core/native_drivers -IC:/ncs/v3.1.1/modules/hal/nordic/nrfx -IC:/ncs/v3.1.1/modules/hal/nordic/nrfx/mdk -IC:/ncs/v3.1.1/modules/hal/nordic/nrfx/driv
ers/include -IC:/ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/common -IC:/ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/platform/.. -IC:/ncs/v3.1.1/module
s/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/services/include -IC:/ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/nrf54l15/. -IC:/ncs/
v3.1.1/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/nrf54l15/../nrf54l -IC:/ncs/v3.1.1/nrf/modules/trusted-firmware-m/tfm_boards/include -IC:/ncs/v3.1.1/nrf/modules/truste
d-firmware-m/tfm_boards/partition -IC:/Users/StephenGliske/nRT/l1_e2/build/l1_e2/tfm/../zephyr/include/generated -IC:/ncs/v3.1.1/nrf/modules/trusted-firmware-m/tfm_boards/board -IC:/Users/StephenGlisk
e/nRT/l1_e2/build/l1_e2/tfm/../zephyr/misc/generated/syscalls_links/include -IC:/ncs/v3.1.1/zephyr/include -IC:/ncs/v3.1.1/zephyr/soc/nordic/common -IC:/ncs/v3.1.1/nrf/modules/trusted-firmware-m/tfm_b
oards/services/include -IC:/ncs/v3.1.1/nrf/include -IC:/ncs/v3.1.1/nrf/include/tfm -IC:/ncs/v3.1.1/nrf/subsys/nrf_security/src/drivers/cracen/cracenpsa/include -IC:/ncs/v3.1.1/zephyr/modules/cmsis -IC
:/ncs/v3.1.1/zephyr/soc/nordic/nrf54l -IC:/ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/platform/ext/accelerator/interface -IC:/ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/platform/../secure_fw/s
pm/include/private -IC:/ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/lib/runtime/include -IC:/ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/secure_fw/include -IC:/ncs/v3.1.1/nr
f/subsys/nrf_security/include -IC:/ncs/v3.1.1/modules/crypto/oberon-psa-crypto/include -IC:/ncs/v3.1.1/modules/crypto/oberon-psa-crypto/library -IC:/ncs/v3.1.1/modules/crypto/mbedtls/library -IC:/ncs/
v3.1.1/modules/crypto/mbedtls/include -IC:/ncs/v3.1.1/modules/crypto/mbedtls/include/library -IC:/ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/interface/include -IC:/Users/StephenGliske/nRT/l1_e2/bu
ild/l1_e2/tfm/generated/interface/include -IC:/ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/config -IC:/ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/crypto -IC:/ncs/v3.1.1/mod
ules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/firmware_update -IC:/ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/initial_attestation -IC:/ncs/v3.1.1/modules/tee/tf-m/trus
ted-firmware-m/secure_fw/partitions/internal_trusted_storage -IC:/ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/platform -IC:/ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/secur
e_fw/partitions/protected_storage -IC:/ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/secure_fw/spm/include -IC:/ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/crypto/../../../pla
tform/include -IC:/Users/StephenGliske/nRT/l1_e2/build/l1_e2/generated/interface_nrf_security_psa -IC:/ncs/v3.1.1/nrf/subsys/nrf_security/src/utils -IC:/ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/
secure_fw/spm/core -IC:/ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/secure_fw/spm/include/boot -IC:/ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/secure_fw/spm/include/interface -IC:/ncs/v3.1.1/mo
dules/tee/tf-m/trusted-firmware-m/secure_fw/spm/core/arch -IC:/ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/platform/ext -IC:/ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/platform/ext/common -IC:/
ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/platform/ext/driver -IC:/ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/platform/include -IC:/ncs/v3.1.1/modules/tee/tf-m/trusted-firmware-m/lib/fih/inc
-IC:/ncs/v3.1.1/modules/hal/cmsis_6/CMSIS/Core/Include -IC:/ncs/v3.1.1/modules/hal/cmsis_6/CMSIS/Core/Include/m-profile -IC:/Users/StephenGliske/nRT/l1_e2/build/l1_e2/generated/library_nrf_security_ps
a -IC:/ncs/v3.1.1/modules/crypto/oberon-psa-crypto/oberon/drivers -IC:/ncs/v3.1.1/nrf/subsys/nrf_security/src/drivers/cracen/common/include -IC:/ncs/v3.1.1/nrf/subsys/nrf_security/src/drivers/cracen/s
xsymcrypt/include -IC:/ncs/v3.1.1/nrf/subsys/nrf_security/src/drivers/cracen/silexpk/target/baremetal_ba414e_with_ik -IC:/ncs/v3.1.1/nrf/subsys/nrf_security/src/drivers/cracen/silexpk/include -IC:/ncs
/v3.1.1/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/crypto/psa_driver_api -mcpu=cortex-m33+nofp -Os -DNDEBUG -specs=nano.specs -specs=nosys.specs -Wall -Wno-format -Wno-return-type -Wno-u
nused-but-set-variable -c -fdata-sections -ffunction-sections -fno-builtin -fshort-enums -funsigned-char -mthumb -std=c99 -gdwarf-4 -g -mcmse -mfloat-abi=soft -Wno-unused-value -include C:/ncs/v3.1.1/
modules/tee/tf-m/trusted-firmware-m/platform/include/cmsis_override.h -MD -MT platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.1/zephyr/soc/nordic/nrf54l/soc.o -MF platform\CMakeFiles\platform_s.dir\C_\
ncs\v3.1.1\zephyr\soc\nordic\nrf54l\soc.o.d -o platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.1/zephyr/soc/nordic/nrf54l/soc.o -c C:/ncs/v3.1.1/zephyr/soc/nordic/nrf54l/soc.c
In file included from C:/ncs/v3.1.1/zephyr/include/zephyr/sw_isr_table.h:18,
from C:/ncs/v3.1.1/zephyr/include/zephyr/arch/arm/irq.h:19,
from C:/ncs/v3.1.1/zephyr/include/zephyr/arch/arm/arch.h:24,
from C:/ncs/v3.1.1/zephyr/include/zephyr/arch/cpu.h:19,
from C:/ncs/v3.1.1/zephyr/include/zephyr/cache.h:17,
from C:/ncs/v3.1.1/zephyr/soc/nordic/nrf54l/soc.c:22:
C:/ncs/v3.1.1/zephyr/include/zephyr/device.h:1352:10: fatal error: zephyr/syscalls/device.h: No such file or directory
1352 | #include <zephyr/syscalls/device.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
FAILED: modules/trusted-firmware-m/tfm-prefix/src/tfm-stamp/tfm-build tfm/bin/tfm_s.elf tfm/bin/tfm_s.bin tfm/bin/tfm_s.hex tfm/bin/tfm_s_signed.bin tfm/bin/tfm_s_ns_signed.bin tfm/api_ns/interface/li
b/s_veneers.o tfm/api_ns/interface/src/tfm_attest_api.c tfm/api_ns/interface/src/tfm_crypto_api.c tfm/api_ns/interface/src/tfm_fwu_api.c tfm/api_ns/interface/src/tfm_its_api.c tfm/api_ns/interface/src
/tfm_platform_api.c tfm/api_ns/interface/src/tfm_ps_api.c tfm/api_ns/interface/src/tfm_tz_psa_ns_api.c tfm/api_ns/interface/src/tfm_ioctl_core_ns_api.c C:/Users/StephenGliske/nRT/l1_e2/build/l1_e2/mod
ules/trusted-firmware-m/tfm-prefix/src/tfm-stamp/tfm-build C:/Users/StephenGliske/nRT/l1_e2/build/l1_e2/tfm/bin/tfm_s.elf C:/Users/StephenGliske/nRT/l1_e2/build/l1_e2/tfm/bin/tfm_s.bin C:/Users/Stephe
nGliske/nRT/l1_e2/build/l1_e2/tfm/bin/tfm_s.hex C:/Users/StephenGliske/nRT/l1_e2/build/l1_e2/tfm/bin/tfm_s_signed.bin C:/Users/StephenGliske/nRT/l1_e2/build/l1_e2/tfm/bin/tfm_s_ns_signed.bin C:/Users/
StephenGliske/nRT/l1_e2/build/l1_e2/tfm/api_ns/interface/lib/s_veneers.o C:/Users/StephenGliske/nRT/l1_e2/build/l1_e2/tfm/api_ns/interface/src/tfm_attest_api.c C:/Users/StephenGliske/nRT/l1_e2/build/l
1_e2/tfm/api_ns/interface/src/tfm_crypto_api.c C:/Users/StephenGliske/nRT/l1_e2/build/l1_e2/tfm/api_ns/interface/src/tfm_fwu_api.c C:/Users/StephenGliske/nRT/l1_e2/build/l1_e2/tfm/api_ns/interface/src
/tfm_its_api.c C:/Users/StephenGliske/nRT/l1_e2/build/l1_e2/tfm/api_ns/interface/src/tfm_platform_api.c C:/Users/StephenGliske/nRT/l1_e2/build/l1_e2/tfm/api_ns/interface/src/tfm_ps_api.c C:/Users/Step
henGliske/nRT/l1_e2/build/l1_e2/tfm/api_ns/interface/src/tfm_tz_psa_ns_api.c C:/Users/StephenGliske/nRT/l1_e2/build/l1_e2/tfm/api_ns/interface/src/tfm_ioctl_core_ns_api.c
cmd.exe /C "cd /D C:\Users\StephenGliske\nRT\l1_e2\build\l1_e2\tfm && C:\ncs\toolchains\c1a76fddb2\opt\bin\cmake.exe --build . -j 1"
[12/229] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
ninja: build stopped: subcommand failed.
FAILED: _sysbuild/sysbuild/images/l1_e2-prefix/src/l1_e2-stamp/l1_e2-build C:/Users/StephenGliske/nRT/l1_e2/build/_sysbuild/sysbuild/images/l1_e2-prefix/src/l1_e2-stamp/l1_e2-build
cmd.exe /C "cd /D C:\Users\StephenGliske\nRT\l1_e2\build\l1_e2 && C:\ncs\toolchains\c1a76fddb2\opt\bin\cmake.exe --build ."
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\c1a76fddb2\opt\bin\cmake.EXE' --build C:/Users/StephenGliske/nRT/l1_e2/build

* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.

Parents
  • Hi,

    This error can happen if the first build configuration does not complete cleanly. In that case, some of Zephyr’s generated syscall header files are not created yet, and the compiler reports them as missing. When you toggled sysbuild off and back on, the project was fully reconfigured (similar to a pristine build), and all generated files were created correctly, which is why the build now works. If something similar happens again, running a pristine build usually resolves it.
    Glad to hear you were able to continue with the lesson!

    Regards,
    Syed Maysum

Reply
  • Hi,

    This error can happen if the first build configuration does not complete cleanly. In that case, some of Zephyr’s generated syscall header files are not created yet, and the compiler reports them as missing. When you toggled sysbuild off and back on, the project was fully reconfigured (similar to a pristine build), and all generated files were created correctly, which is why the build now works. If something similar happens again, running a pristine build usually resolves it.
    Glad to hear you were able to continue with the lesson!

    Regards,
    Syed Maysum

Children
No Data
Related