- I followed the install instructions from nRF Connect SDK documentation (https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_ins_linux.html), to build and install everything on Ubuntu (running in Windows WSL).
- I'm working with v0.4.0 sources.
- I'm trying to compile samples from nrf/samples/nrf9160 using the following command: west build -b nrf9160_pca10090ns -d build
- I get the following error from kconfig:
-- Using application from '/home/fga/BlueWhale/Software/ncs/nrf/samples/nrf9160/mqtt_simple'
Zephyr version: 1.14.99
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.5.2", minimum required is "3.4")
-- Selected BOARD nrf9160_pca10090ns
CMake Error at /home/fga/BlueWhale/Software/ncs/zephyr/cmake/toolchain/zephyr/host-tools.cmake:46 (include):
include could not find load file:
/home/fga/BlueWhale/Software/ncs/zephyr/cmake/toolchain/zephyr/0.10.1/host-tools.cmake
Call Stack (most recent call first):
/home/fga/BlueWhale/Software/ncs/zephyr/cmake/host-tools.cmake:3 (include)
/home/fga/BlueWhale/Software/ncs/zephyr/cmake/app/boilerplate.cmake:237 (include)
CMakeLists.txt:10 (include)
-- Found west: /home/fga/.local/bin/west (found suitable version "0.5.8", minimum required is "0.5.6")
-- Cache files will be written to: /home/fga/.cache/zephyr
-- Loading /home/fga/BlueWhale/Software/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090ns.dts as base
-- Overlaying /home/fga/BlueWhale/Software/ncs/zephyr/dts/common/common.dts
Parsing Kconfig tree in /home/fga/BlueWhale/Software/ncs/nrf/samples/nrf9160/mqtt_simple/Kconfig
Traceback (most recent call last):
File "/home/fga/BlueWhale/Software/ncs/zephyr/scripts/kconfig/kconfig.py", line 231, in <module>
main()
File "/home/fga/BlueWhale/Software/ncs/zephyr/scripts/kconfig/kconfig.py", line 32, in main
kconf = Kconfig(args.kconfig_root, warn_to_stderr=False)
File "/mnt/c/Users/m2min/hubic/FGA/Git/Projects/BlueWhale/Software/ncs/zephyr/scripts/kconfig/kconfiglib.py", line 976, in __init__
self._parse_block(None, self.top_node, self.top_node)
File "/mnt/c/Users/m2min/hubic/FGA/Git/Projects/BlueWhale/Software/ncs/zephyr/scripts/kconfig/kconfiglib.py", line 2701, in _parse_block
self._parse_block(_T_ENDMENU, node, node)
File "/mnt/c/Users/m2min/hubic/FGA/Git/Projects/BlueWhale/Software/ncs/zephyr/scripts/kconfig/kconfiglib.py", line 2661, in _parse_block
prev = self._parse_block(None, parent, prev)
File "/mnt/c/Users/m2min/hubic/FGA/Git/Projects/BlueWhale/Software/ncs/zephyr/scripts/kconfig/kconfiglib.py", line 2661, in _parse_block
prev = self._parse_block(None, parent, prev)
File "/mnt/c/Users/m2min/hubic/FGA/Git/Projects/BlueWhale/Software/ncs/zephyr/scripts/kconfig/kconfiglib.py", line 2661, in _parse_block
prev = self._parse_block(None, parent, prev)
File "/mnt/c/Users/m2min/hubic/FGA/Git/Projects/BlueWhale/Software/ncs/zephyr/scripts/kconfig/kconfiglib.py", line 2701, in _parse_block
self._parse_block(_T_ENDMENU, node, node)
File "/mnt/c/Users/m2min/hubic/FGA/Git/Projects/BlueWhale/Software/ncs/zephyr/scripts/kconfig/kconfiglib.py", line 2661, in _parse_block
prev = self._parse_block(None, parent, prev)
File "/mnt/c/Users/m2min/hubic/FGA/Git/Projects/BlueWhale/Software/ncs/zephyr/scripts/kconfig/kconfiglib.py", line 2648, in _parse_block
if self.srctree else "unset or blank"))
kconfiglib.KconfigError: ../../../../../../mnt/c/Users/m2min/hubic/FGA/Git/Projects/BlueWhale/Software/ncs/nrf/subsys/Kconfig:8: '../../../../../../mnt/c/Users/m2min/hubic/FGA/Git/Projects/BlueWhale/Software/ncs/nrf/subsys/bootloader/Kconfig' not found (in 'rsource "bootloader/Kconfig"'). Check that environment variables are set correctly (e.g. $srctree, which is set to '/home/fga/BlueWhale/Software/ncs/zephyr'). Also note that unset environment variables expand to the empty string.
CMake Error at /home/fga/BlueWhale/Software/ncs/zephyr/cmake/kconfig.cmake:194 (message):
command failed with return code: 1
Call Stack (most recent call first):
/home/fga/BlueWhale/Software/ncs/zephyr/cmake/app/boilerplate.cmake:500 (include)
CMakeLists.txt:10 (include)
I'm already developing with zephyr on Ubuntu (installed with WSL on windows) and I never experienced that kind of problem. I checked other forum posts on building with command line, but could not find anything relevant so far for my problem.
Any advice ?
Thanks