Recursive 'source' of 'Kconfig.zephyr' detected

I am working with the nRF5340 development board. I got the multicore example from the SDK to build without an issue. I then copied the source code and CMake scripts into a different directory so that I could try to develop my own simple application. I ran "west init" and "west update" to configure the new project. When I run "west build -b nrf5340dk_nrf5340_cpuapp", I get the error message shown below. I am assuming that I am missing a basic configuration option.

Parsing C:/GitHub/multicore/Kconfig
C:/GitHub/multicore/zephyr/scripts/kconfig/kconfig.py: C:/GitHub/multicore/zephyr/Kconfig:8: recursive 'source' of 'Kconfig.zephyr' detected. Check that environment variables are set correctly.
Include path:
C:/GitHub/multicore/Kconfig:7
Kconfig.zephyr:33
modules/Kconfig:6
C:/GitHub/multicore/build/Kconfig/Kconfig.modules:140
C:/GitHub/multicore/zephyr/Kconfig:8
CMake Error at zephyr/cmake/modules/kconfig.cmake:293 (message):
command failed with return code: 1
Call Stack (most recent call first):
zephyr/cmake/modules/zephyr_default.cmake:121 (include)
zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
CMakeLists.txt:11 (find_package)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' '-DWEST_PYTHON=C:\Python310\python.exe' '-BC:\GitHub\multicore\build' -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp '-SC:\GitHub\multicore'

Parents
  • I am running on Windows 10. I just did a build in the sample directory without seeing any problems. I then copied the entire multicore directory into my base Github directory. I have not added it to the repository. If I try to do a build in the new location, I get the following error:

    C:\GitHub\multicore>west build
    usage: west [-h] [-z ZEPHYR_BASE] [-v] [-V] <command> ...
    west: error: argument <command>: invalid choice: 'build' (choose from 'init', 'update', 'list', 'manifest', 'diff', 'status', 'forall', 'help', 'config', 'topdir', 'selfupdate')

    This error is what led me to run west init/west update in the new directory.

  • Did you install the SDK with the Toolchain Manager?

    If you did, you should also open the terminal you use to build from the Toolchain Manager, to make sure that the environment is configured correctly.

Reply Children
Related