'cmd.exe' is not recognized as an internal or external command, operable program or batch file. #37487
Unanswered
HulbertZeng
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to build the blinky sample for a thingy52 board on a windows 10. I have installed everything, but I keep getting this error:
C:\Users\Hulbert\zephyrproject\zephyr>west build -p auto -b thingy52_nrf52832 samples/basic/blinky
-- west build: generating a build system
-- Application: C:/Users/Hulbert/zephyrproject/zephyr/samples/basic/blinky
-- Zephyr version: 2.6.99 (C:/Users/Hulbert/zephyrproject/zephyr), build: zephyr-v2.6.0-1622-gfde24ac1f25d
-- Found Python3: C:/Users/Hulbert/AppData/Local/Programs/Python/Python36/python.exe (found suitable exact version "3.6.5") found components: Interpreter
-- Found west (found suitable version "0.11.0", minimum required is "0.7.1")
-- Board: thingy52_nrf52832
-- Cache files will be written to: C:/Users/Hulbert/zephyrproject/zephyr/.cache
-- Found toolchain: gnuarmemb (C:/gnu_arm_embedded)
-- Found BOARD.dts: C:/Users/Hulbert/zephyrproject/zephyr/boards/arm/thingy52_nrf52832/thingy52_nrf52832.dts
-- Generated zephyr.dts: C:/Users/Hulbert/zephyrproject/zephyr/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/Users/Hulbert/zephyrproject/zephyr/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/Users/Hulbert/zephyrproject/zephyr/build/zephyr/include/generated/device_extern.h
Parsing C:/Users/Hulbert/zephyrproject/zephyr/Kconfig
Loaded configuration 'C:/Users/Hulbert/zephyrproject/zephyr/boards/arm/thingy52_nrf52832/thingy52_nrf52832_defconfig'
Merged configuration 'C:/Users/Hulbert/zephyrproject/zephyr/samples/basic/blinky/prj.conf'
Configuration saved to 'C:/Users/Hulbert/zephyrproject/zephyr/build/zephyr/.config'
Kconfig header saved to 'C:/Users/Hulbert/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 9.2.1
-- The CXX compiler identification is GNU 9.2.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/gnu_arm_embedded/bin/arm-none-eabi-gcc.exe
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Hulbert/zephyrproject/zephyr/build
-- west build: building application
[143/150] Linking C executable zephyr\zephyr_prebuilt.elf
FAILED: zephyr/zephyr_prebuilt.elf zephyr/zephyr_prebuilt.map
cmd.exe /C "cd . && C:\gnu_arm_embedded\bin\arm-none-eabi-gcc.exe zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj -o zephyr\zephyr_prebuilt.elf -Wl,-T zephyr/linker_zephyr_prebuilt.cmd -Wl,-Map=C:/Users/Hulbert/zephyrproject/zephyr/build/zephyr/zephyr_prebuilt.map -Wl,--whole-archive app/libapp.a zephyr/libzephyr.a zephyr/arch/common/libarch__common.a zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a zephyr/lib/libc/minimal/liblib__libc__minimal.a zephyr/lib/posix/liblib__posix.a zephyr/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a zephyr/soc/arm/nordic_nrf/nrf52/libsoc__arm__nordic_nrf__nrf52.a zephyr/boards/arm/thingy52_nrf52832/libboards__arm__thingy52_nrf52832.a zephyr/drivers/gpio/libdrivers__gpio.a zephyr/drivers/i2c/libdrivers__i2c.a zephyr/drivers/regulator/libdrivers__regulator.a zephyr/drivers/serial/libdrivers__serial.a modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a -Wl,--no-whole-archive zephyr/kernel/libkernel.a zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj -L"c:/gnu_arm_embedded/bin/../lib/gcc/arm-none-eabi/9.2.1/thumb/v7e-m/nofp" -LC:/Users/Hulbert/zephyrproject/zephyr/build/zephyr -lgcc zephyr/arch/common/libisr_tables.a -mcpu=cortex-m4 -mthumb -mabi=aapcs -Wl,--gc-sections -Wl,--build-id=none -Wl,--sort-common=descending -Wl,--sort-section=alignment -Wl,-u,_OffsetAbsSyms -Wl,-u,_ConfigAbsSyms -nostdlib -static -no-pie -Wl,-X -Wl,-N -Wl,--orphan-handling=warn && cmd.exe /C "cd /D C:\Users\Hulbert\zephyrproject\zephyr\build\zephyr && "C:\Program Files\CMake\bin\cmake.exe" -E echo ""
'cmd.exe' is not recognized as an internal or external command,
operable program or batch file.
ninja: build stopped: subcommand failed.
I'm not quite sure why it is telling me that cmd.exe is not recognized when I am running the command on the cmd terminal as a regular user. I have tried adding my cmd.exe path to my environment variables, using different versions of my cmake and toolchain, and using a different terminal but they all produced the same error. Below are some information that could be used to reproduce the error:
OS: Windows 10
toolchain: gcc-arm-none-eabi-9-2019-q4-major-win32-sha2
board: Nordic Thingy52
python: python 3.9.6
pip: pip 21.1.3
cmake: cmake 3.17.2
Beta Was this translation helpful? Give feedback.
All reactions