Build configuration stale AGAIN (unrecoverable)

This happens quite often, I simply has to create a new build configuration and in worse cases simply a new application and copy all my sourcefiles over to the new project.

This time I have a little info on what actually happened.

I have been working on this project for the last days, without any problem. Everything is latest version SDK, toolchain, VS code etc.

My project is under git control so I can see what is changed!

 - I did a small mistake when modifying the device tree which is in a seperate boards directory and also in git. This caused the application project to not build because of DTS problem.

 - I immediately fixed the problem but when trying to build my application VS Code terminal kept telling me that a build was already active so I could not start a build. I waited, tried to clean the build configuration and other things for 30 minutes. Unable to get out of the state that the system thought there was an active build in progress. 

 - So finally I exited VS Code and restarted.

 - Now it opens with "The build configuration is stale. Run a prestine build". But this is not possible i get the following:

.... <next message>

For some reason it is impossible to get my project back in working condition.

I can see that there is a CMake warning followed by the error that configuration is incomplete!

There are no changes to my code or makefiles for the project.

This must be something in the build directory (that is excluded from git...) and it happens caused by a build error.

I am reporting this in the hope that Nordic some day will look at the unstable environment issue. This is something that happens way too often and I see others writing about it also. This is propably just an example of what can go wrong. In this case I think that making a new build configuration will solve the problem, but it is not nice. I have projects with many "dead" build configurations and I loose development time, every time it happens.

Parents
  • Executing task: nRF Connect: Build [pristine]: pmi8004/build (active) 
    
    Building template
    C:\WINDOWS\system32\cmd.exe /d /s /c "west build --build-dir d:/Workspaces/pmi8004/build d:/ncs/v3.0.1/zephyr/share/sysbuild/template --pristine --board pmi8004/nrf9151/ns -- -DEXTRA_CONF_FILE=overlay-dps.conf -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DBOARD_ROOT=d:/nrfboards;d:/workspaces/pmi8004"
    
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: D:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter 
    -- Cache files will be written to: D:/ncs/v3.0.1/zephyr/.cache
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: pmi8004, qualifiers: nrf9151/ns
    Parsing D:/ncs/v3.0.1/zephyr/share/sysbuild/Kconfig
    Loaded configuration 'D:/Workspaces/pmi8004/build/_sysbuild/empty.conf'
    Merged configuration 'D:/Workspaces/pmi8004/build/_sysbuild/empty.conf'
    Configuration saved to 'D:/Workspaces/pmi8004/build/zephyr/.config'
    Kconfig header saved to 'D:/Workspaces/pmi8004/build/_sysbuild/autoconf.h'
    -- 
       ******************************
       * Running CMake for template *
       ******************************
    
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    CMake Warning (dev) at D:/ncs/v3.0.1/zephyr/cmake/modules/FindDeprecated.cmake:40 (if):
      Policy CMP0057 is not set: Support new IN_LIST if() operator.  Run "cmake
      --help-policy CMP0057" for policy details.  Use the cmake_policy command to
      set the policy and suppress this warning.
    
      IN_LIST will be interpreted as an operator when the policy is set to NEW.
      Since the policy is not set the OLD behavior will be used.
    Call Stack (most recent call first):
      D:/ncs/v3.0.1/zephyr/cmake/modules/python.cmake:16 (find_package)
      D:/ncs/v3.0.1/zephyr/cmake/modules/user_cache.cmake:30 (include)
      D:/ncs/v3.0.1/zephyr/cmake/modules/extensions.cmake:5 (include)
      D:/ncs/v3.0.1/zephyr/share/sysbuild/cmake/modules/sysbuild_default.cmake:8 (include)
      D:/ncs/v3.0.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      D:/ncs/v3.0.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      D:/ncs/v3.0.1/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      CMakeLists.txt:10 (find_package)
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    CMake Error at D:/ncs/v3.0.1/zephyr/cmake/modules/FindDeprecated.cmake:40 (if):
      if given arguments:
    
        "CROSS_COMPILE" "IN_LIST" "Deprecated_FIND_COMPONENTS"
    
      Unknown arguments specified
    Call Stack (most recent call first):
      D:/ncs/v3.0.1/zephyr/cmake/modules/python.cmake:16 (find_package)
      D:/ncs/v3.0.1/zephyr/cmake/modules/user_cache.cmake:30 (include)
      D:/ncs/v3.0.1/zephyr/cmake/modules/extensions.cmake:5 (include)
      D:/ncs/v3.0.1/zephyr/share/sysbuild/cmake/modules/sysbuild_default.cmake:8 (include)
      D:/ncs/v3.0.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      D:/ncs/v3.0.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      D:/ncs/v3.0.1/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      CMakeLists.txt:10 (find_package)
    
    
    CMake Warning (dev) in CMakeLists.txt:
      No cmake_minimum_required command is present.  A line of code such as
    
        cmake_minimum_required(VERSION 3.21)
    
      should be added at the top of the file.  The version specified may be lower
      if you wish to support older CMake versions for this project.  For more
      information run "cmake --help-policy CMP0000".
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    -- Configuring incomplete, errors occurred!
    CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
      CMake configure failed for Zephyr project: template
    
      Location: D:/ncs/v3.0.1/zephyr/share/sysbuild/template
    Call Stack (most recent call first):
      cmake/modules/sysbuild_images.cmake:43 (ExternalZephyrProject_Cmake)
      cmake/modules/sysbuild_default.cmake:21 (include)
      D:/ncs/v3.0.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      D:/ncs/v3.0.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      D:/ncs/v3.0.1/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      template/CMakeLists.txt:10 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    See also "D:/Workspaces/pmi8004/build/CMakeFiles/CMakeOutput.log".
    FATAL ERROR: command exited with status 1: 'D:\ncs\toolchains\0b393f9e1b\opt\bin\cmake.EXE' -DWEST_PYTHON=D:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe '-Bd:\Workspaces\pmi8004\build' -GNinja -DBOARD=pmi8004/nrf9151/ns -DEXTRA_CONF_FILE=overlay-dps.conf -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y '-DBOARD_ROOT=d:/nrfboards;d:/workspaces/pmi8004' '-SD:\ncs\v3.0.1\zephyr\share\sysbuild' '-DAPP_DIR:PATH=d:\ncs\v3.0.1\zephyr\share\sysbuild\template'
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 

    I had to upload build output as a file as I was unable to submit it in the form (failed).

Reply
  • Executing task: nRF Connect: Build [pristine]: pmi8004/build (active) 
    
    Building template
    C:\WINDOWS\system32\cmd.exe /d /s /c "west build --build-dir d:/Workspaces/pmi8004/build d:/ncs/v3.0.1/zephyr/share/sysbuild/template --pristine --board pmi8004/nrf9151/ns -- -DEXTRA_CONF_FILE=overlay-dps.conf -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DBOARD_ROOT=d:/nrfboards;d:/workspaces/pmi8004"
    
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: D:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter 
    -- Cache files will be written to: D:/ncs/v3.0.1/zephyr/.cache
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: pmi8004, qualifiers: nrf9151/ns
    Parsing D:/ncs/v3.0.1/zephyr/share/sysbuild/Kconfig
    Loaded configuration 'D:/Workspaces/pmi8004/build/_sysbuild/empty.conf'
    Merged configuration 'D:/Workspaces/pmi8004/build/_sysbuild/empty.conf'
    Configuration saved to 'D:/Workspaces/pmi8004/build/zephyr/.config'
    Kconfig header saved to 'D:/Workspaces/pmi8004/build/_sysbuild/autoconf.h'
    -- 
       ******************************
       * Running CMake for template *
       ******************************
    
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    CMake Warning (dev) at D:/ncs/v3.0.1/zephyr/cmake/modules/FindDeprecated.cmake:40 (if):
      Policy CMP0057 is not set: Support new IN_LIST if() operator.  Run "cmake
      --help-policy CMP0057" for policy details.  Use the cmake_policy command to
      set the policy and suppress this warning.
    
      IN_LIST will be interpreted as an operator when the policy is set to NEW.
      Since the policy is not set the OLD behavior will be used.
    Call Stack (most recent call first):
      D:/ncs/v3.0.1/zephyr/cmake/modules/python.cmake:16 (find_package)
      D:/ncs/v3.0.1/zephyr/cmake/modules/user_cache.cmake:30 (include)
      D:/ncs/v3.0.1/zephyr/cmake/modules/extensions.cmake:5 (include)
      D:/ncs/v3.0.1/zephyr/share/sysbuild/cmake/modules/sysbuild_default.cmake:8 (include)
      D:/ncs/v3.0.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      D:/ncs/v3.0.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      D:/ncs/v3.0.1/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      CMakeLists.txt:10 (find_package)
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    CMake Error at D:/ncs/v3.0.1/zephyr/cmake/modules/FindDeprecated.cmake:40 (if):
      if given arguments:
    
        "CROSS_COMPILE" "IN_LIST" "Deprecated_FIND_COMPONENTS"
    
      Unknown arguments specified
    Call Stack (most recent call first):
      D:/ncs/v3.0.1/zephyr/cmake/modules/python.cmake:16 (find_package)
      D:/ncs/v3.0.1/zephyr/cmake/modules/user_cache.cmake:30 (include)
      D:/ncs/v3.0.1/zephyr/cmake/modules/extensions.cmake:5 (include)
      D:/ncs/v3.0.1/zephyr/share/sysbuild/cmake/modules/sysbuild_default.cmake:8 (include)
      D:/ncs/v3.0.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      D:/ncs/v3.0.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      D:/ncs/v3.0.1/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      CMakeLists.txt:10 (find_package)
    
    
    CMake Warning (dev) in CMakeLists.txt:
      No cmake_minimum_required command is present.  A line of code such as
    
        cmake_minimum_required(VERSION 3.21)
    
      should be added at the top of the file.  The version specified may be lower
      if you wish to support older CMake versions for this project.  For more
      information run "cmake --help-policy CMP0000".
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    -- Configuring incomplete, errors occurred!
    CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
      CMake configure failed for Zephyr project: template
    
      Location: D:/ncs/v3.0.1/zephyr/share/sysbuild/template
    Call Stack (most recent call first):
      cmake/modules/sysbuild_images.cmake:43 (ExternalZephyrProject_Cmake)
      cmake/modules/sysbuild_default.cmake:21 (include)
      D:/ncs/v3.0.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      D:/ncs/v3.0.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      D:/ncs/v3.0.1/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      template/CMakeLists.txt:10 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    See also "D:/Workspaces/pmi8004/build/CMakeFiles/CMakeOutput.log".
    FATAL ERROR: command exited with status 1: 'D:\ncs\toolchains\0b393f9e1b\opt\bin\cmake.EXE' -DWEST_PYTHON=D:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe '-Bd:\Workspaces\pmi8004\build' -GNinja -DBOARD=pmi8004/nrf9151/ns -DEXTRA_CONF_FILE=overlay-dps.conf -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y '-DBOARD_ROOT=d:/nrfboards;d:/workspaces/pmi8004' '-SD:\ncs\v3.0.1\zephyr\share\sysbuild' '-DAPP_DIR:PATH=d:\ncs\v3.0.1\zephyr\share\sysbuild\template'
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 

    I had to upload build output as a file as I was unable to submit it in the form (failed).

Children
No Data
Related