process_begin: CreateProcess(NULL, ..\..\..\tools/pre_build_script.py, ...) failed. vfs_manager.c:34:10: fatal error: version_git.h
- Dominant language
- C
- Stars
- 2.8k
- Forks
- 1.1k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 1
Description
When I followed the tutorial at https://github.com/ARMmbed/DAPLink/blob/v0258/docs/DEVELOPERS-GUIDE.md to compile the project, the compilation failed. What could be the cause of this issue?
The main causes of the failure include:process_begin: CreateProcess(NULL, ..\..\..\tools/pre_build_script.py, ...) failed. ..\..\..\source\daplink\drag-n-drop/vfs_manager.c:34:10: fatal error: version_git.h: No such file or directory,I use python3.13、gcc version 10.3.1 20210824 (release) (GNU Arm Embedded Toolchain 10.3-2021.10)、DAPLinkv0258.
`
python tools/progen_compile.py -t make_gcc_arm --clean stm32f103xb_bl stm32f103xb_if
process_begin: CreateProcess(NULL, ..\..\..\tools/pre_build_script.py, ...) failed.
Preprocessing ..\..\..\source\daplink\daplink.ld
Compiling ..\..\..\source\board/stm32f103xb_bl.c
Compiling ..\..\..\source\daplink/HardFault_Handler.c
Compiling ..\..\..\source\daplink\bootloader/main_bootloader.c
Compiling ..\..\..\source\daplink/circ_buf.c
Compiling ..\..\..\source\daplink/cortex_m.c
Compiling ..\..\..\source\daplink/crc32.c
Compiling ..\..\..\source\daplink/daplink_debug.c
Compiling ..\..\..\source\daplink\drag-n-drop/file_stream.c
Compiling ..\..\..\source\daplink\drag-n-drop/flash_decoder.c
Compiling ..\..\..\source\daplink\drag-n-drop/flash_intf.c
Compiling ..\..\..\source\daplink\drag-n-drop/flash_manager.c
Compiling ..\..\..\source\daplink\drag-n-drop/iap_flash_intf.c
Compiling ..\..\..\source\daplink\drag-n-drop/intelhex.c
Compiling ..\..\..\source\daplink\drag-n-drop/vfs_manager.c
..\..\..\source\daplink\drag-n-drop/vfs_manager.c:34:10: fatal error: version_git.h: No such file or directory
34 | #include "version_git.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
make: *** [build/vfs_manager.o] 错误 1
2025-05-07 18:25:00,419 progen.tools.gccarm ERROR Project: errors build failed with the status: projectfiles\make_gcc_arm\stm32f103xb_bl\Makefile
2025-05-07 18:25:00,419 progen_build ERROR Error building project stm32f103xb_bl
(venv)
`
Contributor guide
Research direction
Reproduce the failure with `python tools/progen_compile.py -t make_gcc_arm --clean stm32f103xb_bl stm32f103xb_if`. Start by reading `tools/pre_build_script.py` and the `version_git.h` include in `source/daplink/drag-n-drop/vfs_manager.c`; done means the reported CreateProcess and missing-header errors no longer occur and the listed targets build.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, python
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100