setup NCS develop environment and build ERROR occurred

When I install new NCS(findmy) vscode development enviroment in another computer(win10), I meet a strange compile Error:  Aborting due to Kconfig warnings. 

Details as follows:

===================================================================================================================

C:/ncs/v2.4.1/find-my/samples/common/cmake/../configuration/app_ZRelease.conf:8: warning: attempt to assign the value 'y' to the undefined symbol FMNA

C:/ncs/v2.4.1/find-my/samples/common/cmake/../configuration/app_ZRelease.conf:9: warning: attempt to assign the value 'n' to the undefined symbol FMNA_NORDIC_PRODUCT_PLAN

C:/ncs/v2.4.1/find-my/samples/common/cmake/../configuration/app_ZRelease.conf:50: warning: attempt to assign the value 'y' to the undefined symbol FMNA_BATTERY_TYPE_RECHARGEABLE


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\ce3b5ff664\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/ce3b5ff664/opt/bin/python.exe '-Bc:\ncs\v2.4.1\find-my\samples\simple\build' -GNinja '-Sc:\ncs\v2.4.1\find-my\samples\simple'

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

===================================================================================================================

How can I resolve this problem? Any advise is appreciate!

Parents
  • Hi Max,

    I also try to build nrf5340dk_nrf5340_cpuapp_ns and it has no problem.

    chs1@csh1 MINGW64 /c/ncs/v2.4.1/find-my/samples/simple ((v2.4.4))
    $ west build -b nrf5340dk_nrf5340_cpuapp_ns -p
    -- west build: making build dir C:\ncs\v2.4.1\find-my\samples\simple\build pristine
    -- west build: generating a build system
    -- Build type: ZDebug
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.4.1/find-my/samples/simple
    -- CMake version: 3.20.5
    -- Using NCS Toolchain 2.4.0 for building. (C:/ncs/toolchains/31f4403e35/cmake)
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.4.1/zephyr/.cache
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.1/zephyr)
    -- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
    -- Board: nrf5340dk_nrf5340_cpuapp_ns
    -- Found host-tools: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/ncs/v2.4.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_ns.dts
    -- Generated zephyr.dts: C:/ncs/v2.4.1/find-my/samples/simple/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs/v2.4.1/find-my/samples/simple/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs/v2.4.1/find-my/samples/simple/build/zephyr/dts.cmake
    Parsing C:/ncs/v2.4.1/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v2.4.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_ns_defconfig'
    Merged configuration 'C:/ncs/v2.4.1/find-my/samples/common/cmake/../configuration/app_ZDebug.conf'
    Merged configuration 'C:/ncs/v2.4.1/find-my/samples/simple/prj.conf'
    Configuration saved to 'C:/ncs/v2.4.1/find-my/samples/simple/build/zephyr/.config'
    Kconfig header saved to 'C:/ncs/v2.4.1/find-my/samples/simple/build/zephyr/include/generated/autoconf.h'      
    -- Found GnuLd: c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../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/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    
    === child image hci_rpmsg - CPUNET begin ===
    loading initial cache file C:/ncs/v2.4.1/find-my/samples/simple/build/hci_rpmsg/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.4.1/zephyr/samples/bluetooth/hci_rpmsg
    -- CMake version: 3.20.5
    -- Using NCS Toolchain 2.4.0 for building. (C:/ncs/toolchains/31f4403e35/cmake)
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v2.4.1/zephyr/.cache
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.1/zephyr)
    -- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
    -- Board: nrf5340dk_nrf5340_cpunet
    -- Found host-tools: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/ncs/v2.4.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts
    -- Generated zephyr.dts: C:/ncs/v2.4.1/find-my/samples/simple/build/hci_rpmsg/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs/v2.4.1/find-my/samples/simple/build/hci_rpmsg/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs/v2.4.1/find-my/samples/simple/build/hci_rpmsg/zephyr/dts.cmake
    Parsing C:/ncs/v2.4.1/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v2.4.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet_defconfig'
    Merged configuration 'C:/ncs/v2.4.1/zephyr/samples/bluetooth/hci_rpmsg/prj.conf'
    Merged configuration 'C:/ncs/v2.4.1/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration 'C:/ncs/v2.4.1/find-my/samples/simple/child_image/hci_rpmsg.conf'
    Merged configuration 'C:/ncs/v2.4.1/find-my/samples/simple/build/hci_rpmsg/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/ncs/v2.4.1/find-my/samples/simple/build/hci_rpmsg/zephyr/.config'
    Kconfig header saved to 'C:/ncs/v2.4.1/find-my/samples/simple/build/hci_rpmsg/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../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/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- libmetal version: 1.3.0 (C:/ncs/v2.4.1/zephyr/samples/bluetooth/hci_rpmsg)
    -- Build type:  ZDebug
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- Looking for include file stdatomic.h
    -- Looking for include file stdatomic.h - found
    -- open-amp version: 1.3.0 (C:/ncs/v2.4.1/modules/lib/open-amp/open-amp)
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- C_FLAGS :  -Wall -Wextra
    -- Looking for include file fcntl.h
    -- Looking for include file fcntl.h - found
    CMake Warning at ../../../CMakeLists.txt:839 (message):
      No SOURCES given to Zephyr library: lib__libc__common
    
      Excluding target from build.
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v2.4.1/find-my/samples/simple/build/hci_rpmsg
    === child image hci_rpmsg - CPUNET end ===
    
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found version "3.8.2") found components: Interpreter 
    Changed board to secure nrf5340dk_nrf5340_cpuapp (NOT NS)
    
    === child image mcuboot -  begin ===
    loading initial cache file C:/ncs/v2.4.1/find-my/samples/simple/build/mcuboot/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.4.1/bootloader/mcuboot/boot/zephyr
    -- CMake version: 3.20.5
    -- Using NCS Toolchain 2.4.0 for building. (C:/ncs/toolchains/31f4403e35/cmake)
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v2.4.1/zephyr/.cache
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.1/zephyr)
    -- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
    -- Board: nrf5340dk_nrf5340_cpuapp
    -- Found host-tools: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/ncs/v2.4.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
    -- Found devicetree overlay: C:/ncs/v2.4.1/nrf/modules/mcuboot/usb.overlay
    -- Generated zephyr.dts: C:/ncs/v2.4.1/find-my/samples/simple/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs/v2.4.1/find-my/samples/simple/build/mcuboot/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs/v2.4.1/find-my/samples/simple/build/mcuboot/zephyr/dts.cmake
    Parsing C:/ncs/v2.4.1/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v2.4.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/ncs/v2.4.1/find-my/samples/common/cmake/../configuration/mcuboot_ZDebug.conf'
    Merged configuration 'C:/ncs/v2.4.1/nrf/modules/mcuboot/tfm.conf'
    Merged configuration 'C:/ncs/v2.4.1/nrf/modules/mcuboot/fih_low_enable.conf'
    Merged configuration 'C:/ncs/v2.4.1/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration 'C:/ncs/v2.4.1/find-my/samples/simple/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/ncs/v2.4.1/find-my/samples/simple/build/mcuboot/zephyr/.config'
    Kconfig header saved to 'C:/ncs/v2.4.1/find-my/samples/simple/build/mcuboot/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../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/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    CMake Warning at C:/ncs/v2.4.1/zephyr/CMakeLists.txt:839 (message):
      No SOURCES given to Zephyr library: lib__libc__common
    
      Excluding target from build.
    
    
    MCUBoot bootloader key file: C:/ncs/v2.4.1/bootloader/mcuboot/root-rsa-2048.pem
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v2.4.1/find-my/samples/simple/build/mcuboot
    === child image mcuboot -  end ===
    
    CMake Warning at C:/ncs/v2.4.1/nrf/modules/mcuboot/CMakeLists.txt:310 (message):
      
    
              ---------------------------------------------------------
              --- WARNING: Using default MCUBoot key, it should not ---
              --- be used for production.                           ---
              ---------------------------------------------------------
    
    
    
    
    -- libmetal version: 1.3.0 (C:/ncs/v2.4.1/find-my/samples/simple)
    -- Build type:  ZDebug
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- Looking for include file stdatomic.h
    -- Looking for include file stdatomic.h - found
    -- open-amp version: 1.3.0 (C:/ncs/v2.4.1/modules/lib/open-amp/open-amp)
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- C_FLAGS :  -Wall -Wextra
    -- Looking for include file fcntl.h
    -- Looking for include file fcntl.h - found
    CMake Warning at C:/ncs/v2.4.1/zephyr/CMakeLists.txt:839 (message):
      No SOURCES given to Zephyr library: lib__libc__common
    
      Excluding target from build.
    
    
    CMake Warning at C:/ncs/v2.4.1/zephyr/CMakeLists.txt:1865 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Found partition manager static configuration: C:/ncs/v2.4.1/find-my/samples/common/cmake/../configuration/pm_static_nrf5340dk_nrf5340_cpuapp_ns.yml
    Partition 'settings_storage' is not included in the dynamic resolving since it is statically defined.
    Partition 'nonsecure_storage' is not included in the dynamic resolving since it is statically defined.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v2.4.1/find-my/samples/simple/build
    ←[92m-- west build: building application
    [1/429] Generating include/generated/version.h
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.1/zephyr), build: v3.3.99-ncs1-2
    [10/429] Performing build step for 'hci_rpmsg_subimage'
    [1/229] Generating include/generated/version.h
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.1/zephyr), build: v3.3.99-ncs1-2
    [217/229] Linking C executable zephyr\zephyr_pre0.elf
    
    [221/229] Linking C executable zephyr\zephyr_pre1.elf
    
    [227/229] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      158008 B       256 KB     60.28%
                 RAM:       39808 B        64 KB     60.74%
               SRAM1:          0 GB        64 KB      0.00%
            IDT_LIST:          0 GB         2 KB      0.00%
    [229/229] Generating zephyr/merged_CPUNET.hex
    [16/429] Generating ../../tfm/CMakeCache.txt
    -- Found Git: C:/Program Files/Git/mingw64/bin/git.exe (found version "2.48.1.windows.1")
    -- The C compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found version "3.8.2") found components: Interpreter
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.4.1/zephyr/.cache
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v2.4.1/find-my/samples/simple/build/tfm
    [22/429] Performing build step for 'mcuboot_subimage'
    [1/289] Generating include/generated/version.h
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.1/zephyr), build: v3.3.99-ncs1-2
    [279/289] Linking C executable zephyr\zephyr_pre0.elf
    
    [283/289] Linking C executable zephyr\zephyr_pre1.elf
    
    [289/289] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       43652 B        48 KB     88.81%
                 RAM:       22856 B        32 KB     69.75%
            IDT_LIST:          0 GB         2 KB      0.00%
    [25/429] Performing build step for 'tfm'
    [159/159] Linking C static library secure_fw\libtfm_s_veneers.a
    [30/429] Performing install step for 'tfm'
    -- Install configuration: "MinSizeRel"
    [409/429] Linking C executable zephyr\zephyr_pre0.elf
    
    [413/429] Linking C executable zephyr\zephyr_pre1.elf
    
    [419/429] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      235472 B       448 KB     51.33%
                 RAM:       48808 B       416 KB     11.46%
            IDT_LIST:          0 GB         2 KB      0.00%
    [423/429] Generating ../../zephyr/app_update.bin
    image.py: sign the payload
    [425/429] Generating ../../zephyr/app_signed.hex
    image.py: sign the payload
    [426/429] Generating ../../zephyr/app_test_update.hex
    image.py: sign the payload
    [429/429] Generating zephyr/merged_domains.hex
    
    chs1@csh1 MINGW64 /c/ncs/v2.4.1/find-my/samples/simple ((v2.4.4))
    $

    Please try to clean and reinstall NCS 2.4.1+Findmy. Share the installation and building log if the issue still exist.

    Best regards,

    Charlie

  • Sorry, I made a mistake. NOT "cpuapp_ns" but "cpunet":  --board nrf5340dk_nrf5340_cpunet, use cpunet to make same error. 

    I want to find the key pointer to resolve the error, not reinstall the whole env(NCS and findmy), cause current env is okay for compiling many zephyr demo(just some specify build config is not)

  • Hi Max,

    I tried using --board nrf5340dk_nrf5340_cpunet, and no errors appeared. I assume you also don’t see the same error on your other PC setup.

    There must be something wrong with the setup on your new PC. Unfortunately, I’m not sure why this is happening, so my suggestion is to try do reinstallion

    You could also install them in a different folder and see if that helps.

    Best regards,
    Charlie

Reply
  • Hi Max,

    I tried using --board nrf5340dk_nrf5340_cpunet, and no errors appeared. I assume you also don’t see the same error on your other PC setup.

    There must be something wrong with the setup on your new PC. Unfortunately, I’m not sure why this is happening, so my suggestion is to try do reinstallion

    You could also install them in a different folder and see if that helps.

    Best regards,
    Charlie

Children
No Data
Related