zephyr: Spurious Error: "zephyr-no-west/samples/hello_world" is not in a west installation
To Reproduce Steps to reproduce the behavior:
- Have (at least) two zephyr clones: one created with the west tool + the other without west
- Define ZEPHYR_BASE=/path/to/zephyrnowest and try to build samples/hello_word (or anything else) in zephyrnowest while west is in PATH
Expected behavior Everything builds without any error
Impact (hopefully? )minor: confusing error message
Screenshots or console output
Error: "/home/user/zephyrnowest/samples/hello_world" is not in a west installation.
Things to try:
- Set ZEPHYR_BASE to a zephyr repository path in a west installation.
- Run "west init" to set up an installation here.
- Run "west init -h" for additional information.
Then everything seems to build as usual (can someone confirm?)
Environment (please complete the following information): Linux Fedora Reproduced with either zephyr-0.9.5 or “host” v1.14.0-rc1-849-g35b7fde8a60b
Additional context
workaround: pip3 uninstall west
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 20 (12 by maintainers)
Commits related to this issue
- cmake: west: Allow mono-repo to build when west is installed If one invokes cmake with west in the PATH but not inside a west installation (i.e. in a monorepo setup), west will try to list the zephyr... — committed to tejlmand/zephyr by tejlmand 5 years ago
- cmake: west: Allow mono-repo to build when west is installed If one invokes cmake with west in the PATH but not inside a west installation (i.e. in a monorepo setup), west will try to list the zephyr... — committed to zephyrproject-rtos/zephyr by tejlmand 5 years ago
This one bit me too, after I installed west to try out a fix with some Nordic stuff (in a separate directory) and then went back to main Zephyr.
Definitely feels like a bug to me. I think it would be best to not check for a west installation within the main CMake files (if that’s what’s going on), and keep it as a separate layer instead. Too tangled up.