c:\ncs\zephyr\samples\application_development\external_lib>west build -p -b nrf5340_dk_nrf5340_cpuapp -- west build: making build dir c:\ncs\zephyr\samples\application_development\external_lib\build pristine -- west build: build configuration: source directory: c:\ncs\zephyr\samples\application_development\external_lib build directory: c:\ncs\zephyr\samples\application_development\external_lib\build BOARD: nrf5340_dk_nrf5340_cpuapp (origin: command line) -- west build: generating a build system -- Zephyr version: 2.1.99 -- Found PythonInterp: C:/Python38/python.exe (found suitable version "3.8.2", minimum required is "3.6") -- git describe failed: fatal: not a git repository (or any of the parent directories): .git; BUILD_VERSION is left undefined -- Selected BOARD nrf5340_dk_nrf5340_cpuapp -- Found west: C:/Python38/Scripts/west.exe (found suitable version "0.6.3", minimum required is "0.6.0") -- Loading C:/ncs/zephyr/boards/arm/nrf5340_dk_nrf5340/nrf5340_dk_nrf5340_cpuapp.dts as base Devicetree configuration written to C:/ncs/zephyr/samples/application_development/external_lib/build/zephyr/include/generated/devicetree.conf Parsing C:/ncs/zephyr/Kconfig C:/ncs/nrf\lib\fprotect/Kconfig:20: WARNING: dt_int_val is deprecated. C:/ncs/bootloader/mcuboot/zephyr/Kconfig:37: WARNING: dt_int_val is deprecated. Loaded configuration 'C:/ncs/zephyr/boards/arm/nrf5340_dk_nrf5340/nrf5340_dk_nrf5340_cpuapp_defconfig' Merged configuration 'C:/ncs/zephyr/samples/application_development/external_lib/prj.conf' Configuration saved to 'C:/ncs/zephyr/samples/application_development/external_lib/build/zephyr/.config' -- The C compiler identification is GNU 8.3.1 -- The CXX compiler identification is GNU 8.3.1 -- The ASM compiler identification is GNU -- Found assembler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe -- Cache files will be written to: C:/ncs/zephyr/.cache -- Configuring done -- Generating done -- Build files have been written to: C:/ncs/zephyr/samples/application_development/external_lib/build -- west build: building application [1/133] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h [2/133] Generating include/generated/driver-validation.h [3/133] Generating misc/generated/syscalls.json [4/133] Creating directories for 'mylib_project' [5/133] No download step for 'mylib_project' [6/133] No patch step for 'mylib_project' [7/133] No update step for 'mylib_project' [8/133] No configure step for 'mylib_project' [9/133] Performing build step for 'mylib_project' FAILED: mylib/src/mylib_project-stamp/mylib_project-build mylib/lib/libmylib.a cmd.exe /C "cd /D C:\ncs\zephyr\samples\application_development\external_lib\mylib && make PREFIX=C:/ncs/zephyr/samples/application_development/external_lib/build/mylib CC=C:/gnuarmemb/bin/arm-none-eabi-gcc.exe AR=C:/gnuarmemb/bin/arm-none-eabi-ar.exe "CFLAGS=-IC:/ncs/zephyr/include -IC:/ncs/zephyr/samples/application_development/external_lib/build/zephyr/include/generated -IC:/ncs/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/ncs/zephyr/lib/libc/minimal/include -IC:/ncs/zephyr/ext/hal/cmsis/Core/Include -IC:/ncs/nrf/include -IC:/ncs/modules/hal/nordic/nrfx -IC:/ncs/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/modules/hal/nordic/nrfx/mdk -IC:/ncs/modules/hal/nordic/. -Ic:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/8.3.1/include -Ic:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/8.3.1/include-fixed -DKERNEL -D__ZEPHYR__=1 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -DUSE_PARTITION_MANAGER=0 -DNRF5340_XXAA_APPLICATION -Os -imacrosC:/ncs/zephyr/samples/application_development/external_lib/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -mthumb -mcpu=cortex-m33 -imacrosC:/ncs/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -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:/ncs/zephyr/samples/application_development/external_lib=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/zephyr=ZEPHYR_BASE -ffunction-sections -fdata-sections -mabi=aapcs -march=armv8-m.main+dsp -std=c99 -nostdinc -isystemC:/ncs/zephyr/lib/libc/minimal/include -isystemc:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/8.3.1/include -isystemc:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/8.3.1/include-fixed" && "C:\Program Files\CMake\bin\cmake.exe" -E touch C:/ncs/zephyr/samples/application_development/external_lib/build/mylib/src/mylib_project-stamp/mylib_project-build" 'make' is not recognized as an internal or external command, operable program or batch file. [10/133] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h ninja: build stopped: subcommand failed.