ncs2.0.0 build dfu failed, smp_svr also build fail

My peripheral_demo is already able to work. Now I'm trying to add dfu to it.

I followed the instructions here.(+) Add DFU support to your application - Software - nRF Connect SDK guides - Nordic DevZone (nordicsemi.com)

I'm sure nothing wrong with my operations. But I got a fail build.

So I just run the sample smp_svr ,and also failed.  Looks like they have the same failure message.

The annoying THING is that It's really difficult ,or even impossible to understand the failure message. Much less did I debug to fix it.

Thanks for any help.

[270/270] Linking C executable zephyr\zephyr.elf
FAILED: zephyr/zephyr.elf zephyr/zephyr.map zephyr/zephyr.hex zephyr/zephyr.bin zephyr/zephyr.meta zephyr/zephyr.lst zephyr/zephyr.stat 
cmd.exe /C "cd . && C:\ncs\toolchains\v2.0.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe   zephyr/CMakeFiles/zephyr_final.dir/misc/empty_file.c.obj zephyr/CMakeFiles/zephyr_final.dir/dev_handles.c.obj zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj -o zephyr\zephyr.elf  -Wl,-T  zephyr/linker.cmd  -Wl,-Map=F:/ncs/smp_svr/build/mcuboot/zephyr/zephyr_final.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/drivers/clock_control/libdrivers__clock_control.a  zephyr/drivers/console/libdrivers__console.a  zephyr/drivers/gpio/libdrivers__gpio.a  zephyr/drivers/flash/libdrivers__flash.a  zephyr/drivers/serial/libdrivers__serial.a  zephyr/drivers/timer/libdrivers__timer.a  zephyr/drivers/pinctrl/libdrivers__pinctrl.a  modules/nrf/lib/fprotect/lib..__nrf__lib__fprotect.a  modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a  modules/mcuboot/boot/bootutil/zephyr/libmcuboot_util.a  modules/mbedtls/libmodules__mbedtls.a  modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a  modules/segger/libmodules__segger.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj  -L"c:/ncs/toolchains/v2.0.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/thumb/v7e-m/nofp"  -LF:/ncs/smp_svr/build/mcuboot/zephyr  -lgcc  -Wl,--print-memory-usage  zephyr/arch/common/libisr_tables.a  -no-pie  -mcpu=cortex-m4  -mthumb  -mabi=aapcs  -mfp16-format=ieee  -Wl,--gc-sections  -Wl,--build-id=none  -Wl,--sort-common=descending  -Wl,--sort-section=alignment  -Wl,-u,_OffsetAbsSyms  -Wl,-u,_ConfigAbsSyms  -nostdlib  -static  -Wl,-X  -Wl,-N  -Wl,--orphan-handling=warn && cmd.exe /C "cd /D F:\ncs\smp_svr\build\mcuboot\zephyr && C:\ncs\toolchains\v2.0.0\opt\bin\cmake.exe -E copy zephyr_final.map zephyr.map && C:\ncs\toolchains\v2.0.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-objcopy.exe --gap-fill 0xff --output-target=ihex --remove-section=.comment --remove-section=COMMON --remove-section=.eh_frame zephyr.elf zephyr.hex && C:\ncs\toolchains\v2.0.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-objcopy.exe --gap-fill 0xff --output-target=binary --remove-section=.comment --remove-section=COMMON --remove-section=.eh_frame zephyr.elf zephyr.bin && C:\ncs\toolchains\v2.0.0\opt\bin\python.exe C:/ncs/v2.0.0/zephyr/scripts/zephyr_module.py --zephyr-base C:/ncs/v2.0.0/zephyr --meta-out zephyr.meta && C:\ncs\toolchains\v2.0.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-objdump.exe -d -S zephyr.elf > zephyr.lst && C:\ncs\toolchains\v2.0.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-readelf.exe -e zephyr.elf > zephyr.stat""
Memory region         Used Size  Region Size  %age Used
           FLASH:       33740 B        48 KB     68.64%
            SRAM:       23680 B        64 KB     36.13%
        IDT_LIST:          0 GB         2 KB      0.00%
Traceback (most recent call last):
  File "C:/ncs/v2.0.0/zephyr/scripts/zephyr_module.py", line 548, in <module>
    main()
  File "C:/ncs/v2.0.0/zephyr/scripts/zephyr_module.py", line 540, in main
    meta = process_meta(args.zephyr_base, west_proj, modules,
  File "C:/ncs/v2.0.0/zephyr/scripts/zephyr_module.py", line 319, in process_meta
    if project.sha(MANIFEST_REV_BRANCH) != revision:
  File "c:\ncs\toolchains\v2.0.0\opt\bin\Lib\site-packages\west\manifest.py", line 866, in sha
    cp = self.git(f'rev-parse {rev}^{{commit}}', capture_stdout=True,
  File "c:\ncs\toolchains\v2.0.0\opt\bin\Lib\site-packages\west\manifest.py", line 850, in git
    raise subprocess.CalledProcessError(popen.returncode, cmd_list,
subprocess.CalledProcessError: Command '['rev-parse', 'manifest-rev^{commit}']' returned non-zero exit status 128.
ninja: build stopped: subcommand failed.
[276/297] Linking C executable zephyr\zephyr_pre0.elf

[280/297] Linking C executable zephyr\zephyr_pre1.elf

[285/297] Building C object zephyr/CMakeFiles/zephyr_final.dir/dev_handles.c.obj
FAILED: modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build mcuboot/zephyr/zephyr.hex mcuboot/zephyr/zephyr.elf 
cmd.exe /C "cd /D F:\ncs\smp_svr\build\mcuboot && C:\ncs\toolchains\v2.0.0\opt\bin\cmake.exe --build . --"
[287/297] Linking C executable zephyr\zephyr.elf
FAILED: zephyr/zephyr.elf zephyr/zephyr.map zephyr/zephyr.hex zephyr/zephyr.bin zephyr/zephyr.meta zephyr/zephyr.lst zephyr/zephyr.stat 
cmd.exe /C "cd . && C:\ncs\toolchains\v2.0.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe   @CMakeFiles\zephyr_final.rsp -o zephyr\zephyr.elf  && cmd.exe /C "cd /D F:\ncs\smp_svr\build\zephyr && C:\ncs\toolchains\v2.0.0\opt\bin\cmake.exe -E copy zephyr_final.map zephyr.map && C:\ncs\toolchains\v2.0.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-objcopy.exe --gap-fill 0xff --output-target=ihex --remove-section=.comment --remove-section=COMMON --remove-section=.eh_frame zephyr.elf zephyr.hex && C:\ncs\toolchains\v2.0.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-objcopy.exe --gap-fill 0xff --output-target=binary --remove-section=.comment --remove-section=COMMON --remove-section=.eh_frame zephyr.elf zephyr.bin && C:\ncs\toolchains\v2.0.0\opt\bin\python.exe C:/ncs/v2.0.0/zephyr/scripts/zephyr_module.py --zephyr-base C:/ncs/v2.0.0/zephyr --meta-out zephyr.meta && C:\ncs\toolchains\v2.0.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-objdump.exe -d -S zephyr.elf > zephyr.lst && C:\ncs\toolchains\v2.0.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-readelf.exe -e zephyr.elf > zephyr.stat""
Memory region         Used Size  Region Size  %age Used
           FLASH:      207904 B     224768 B     92.50%
            SRAM:       58894 B        64 KB     89.87%
        IDT_LIST:          0 GB         2 KB      0.00%
Traceback (most recent call last):
  File "C:/ncs/v2.0.0/zephyr/scripts/zephyr_module.py", line 548, in <module>
    main()
  File "C:/ncs/v2.0.0/zephyr/scripts/zephyr_module.py", line 540, in main
    meta = process_meta(args.zephyr_base, west_proj, modules,
  File "C:/ncs/v2.0.0/zephyr/scripts/zephyr_module.py", line 319, in process_meta
    if project.sha(MANIFEST_REV_BRANCH) != revision:
  File "c:\ncs\toolchains\v2.0.0\opt\bin\Lib\site-packages\west\manifest.py", line 866, in sha
    cp = self.git(f'rev-parse {rev}^{{commit}}', capture_stdout=True,
  File "c:\ncs\toolchains\v2.0.0\opt\bin\Lib\site-packages\west\manifest.py", line 850, in git
    raise subprocess.CalledProcessError(popen.returncode, cmd_list,
subprocess.CalledProcessError: Command '['rev-parse', 'manifest-rev^{commit}']' returned non-zero exit status 128.
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.0.0\opt\bin\cmake.EXE' --build 'f:\ncs\smp_svr\build'
The terminal process terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

Related