Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

west build -p auto -b nrf52840dk_nrf52840 samples/bluetooth/hci_uart FAILED with zephyr-v2.5.0 #32509

Closed
taotaodong527 opened this issue Feb 20, 2021 · 3 comments
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: low Low impact/importance bug

Comments

@taotaodong527
Copy link

taotaodong527 commented Feb 20, 2021

Describe the bug
west build -p auto -b nrf52840dk_nrf52840 samples/bluetooth/hci_uart FAILED with zephyr-v2.5.0
14: Could not open '/home/dongtaotao/zephyrproject/zephyr/' (in 'osource "$(ZEPHYR_TRUSTED_FIRMWARE_M_KCONFIG)"') (EISDIR: Is a directory)

To Reproduce
dongtaotao@dongtaotao-OptiPlex-5070:~/zephyrproject/zephyr$ git checkout zephyr-v2.5.0

dongtaotao@dongtaotao-OptiPlex-5070:~/zephyrproject/zephyr$ west build -p auto -b nrf52840dk_nrf52840 samples/bluetooth/hci_uart

Expected behavior
Build should be successfully

Impact

Logs and console output

OptiPlex-5070:~/zephyrproject/zephyr$ git checkout zephyr-v2.5.0
Note: checking out 'zephyr-v2.5.0'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at fe7c2efca8 release: Bump version to 2.5.0
OptiPlex-5070:~/zephyrproject/zephyr$ west build -p auto -b nrf52840dk_nrf52840 samples/bluetooth/hci_uart
[0/1] Re-running CMake...
Including boilerplate (Zephyr base (cached)): /home/dongtaotao/zephyrproject/zephyr/cmake/app/boilerplate.cmake
-- Application: /home/dongtaotao/zephyrproject/zephyr/samples/bluetooth/hci_uart
-- Zephyr version: 2.5.0 (/home/dongtaotao/zephyrproject/zephyr)
-- Found west (found suitable version "0.7.3", minimum required is "0.7.1")
-- Board: nrf52840dk_nrf52840
-- Cache files will be written to: /home/dongtaotao/.cache/zephyr
-- Using toolchain: zephyr 0.11.4 (/home/dongtaotao/zephyr-sdk-0.11.4)
-- Found dtc: /home/dongtaotao/zephyr-sdk-0.11.4/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found BOARD.dts: /home/dongtaotao/zephyrproject/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
-- Found devicetree overlay: /home/dongtaotao/zephyrproject/zephyr/samples/bluetooth/hci_uart/boards/nrf52840dk_nrf52840.overlay
-- Generated zephyr.dts: /home/dongtaotao/zephyrproject/zephyr/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /home/dongtaotao/zephyrproject/zephyr/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /home/dongtaotao/zephyrproject/zephyr/build/zephyr/include/generated/device_extern.h
Parsing /home/dongtaotao/zephyrproject/zephyr/Kconfig
/home/dongtaotao/zephyrproject/zephyr/scripts/kconfig/kconfig.py: build/Kconfig/Kconfig.modules:**14: Could not open '/home/dongtaotao/zephyrproject/zephyr/' (in 'osource "$(ZEPHYR_TRUSTED_FIRMWARE_M_KCONFIG)"') (EISDIR: Is a directory)**
**CMake Error at /home/dongtaotao/zephyrproject/zephyr/cmake/kconfig.cmake:265 (message):
  command failed with return code: 1**
Call Stack (most recent call first):
  /home/dongtaotao/zephyrproject/zephyr/cmake/app/boilerplate.cmake:536 (include)
  /home/dongtaotao/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  /home/dongtaotao/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)
  CMakeLists.txt:5 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/dongtaotao/zephyrproject/zephyr/build/CMakeFiles/CMakeOutput.log".
See also "/home/dongtaotao/zephyrproject/zephyr/build/CMakeFiles/CMakeError.log".
FAILED: build.ninja
/usr/bin/cmake --regenerate-during-build -S/home/dongtaotao/zephyrproject/zephyr/samples/bluetooth/hci_uart -B/home/dongtaotao/zephyrproject/zephyr/build
ninja: error: rebuilding 'build.ninja': subcommand failed
FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /home/dongtaotao/zephyrproject/zephyr/build

Additional context
master branch works as expected

@taotaodong527 taotaodong527 added the bug The issue is a bug, or the PR is fixing a bug label Feb 20, 2021
@nashif nashif added the priority: low Low impact/importance bug label Feb 20, 2021
@nashif nashif added the platform: nRF Nordic nRFx label Feb 20, 2021
@s-kelvin
Copy link
Collaborator

Running west update should fix this.
If not, run git clean -fd after you've backed up all your local changes. Then run west update.

@ioannisg
Copy link
Member

Thanks @s-kelvin , agreed, this needs west update and local cleaning.
Closing this, as I cannot reproduce on 2.5.0, neither on current master.
@taotaodong527 please, re-open, if needed.

@shreenibk
Copy link

shreenibk commented Sep 23, 2024

@s-kelvin I ran into something similar issue with different config variable, your solution worked. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

5 participants