I recently got the nRF52840DK and have been able to build/flash a couple simple samples. However when attempting to try the OpenThread CLI example on tool chain v1.6.1 and v1.7.0 there seems to be an issue generating the "compile_commands.json". After poking around I was unable to determine why this is happening and tried deleting and recreating the sample a couple times. Tweaking the build config gave the same result seen below. Did I miss something in the documentation on running thread examples?
> Executing task: nRF Connect: Build otcli/build (active) <
Building otcliwest build --build-dir [PATH]/otcli/build [PATH]/otcli --pristine --board nrf52840dk_nrf52840 -- -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DCONF_FILE:STRING="[PATH]/otcli/prj_nrf5340dk_nrf5340_cpuapp.conf" -DDTC_OVERLAY_FILE:STRING="[PATH]/otcli/boards/nrf52840dk_nrf52840.overlay"
-- west build: generating a build systemIncluding boilerplate (Zephyr base): /opt/nordic/ncs/v1.7.0/zephyr/cmake/app/boilerplate.cmakeCMake Deprecation Warning at /opt/nordic/ncs/v1.7.0/zephyr/cmake/app/boilerplate.cmake:37 (cmake_policy): The OLD behavior for policy CMP0079 will be removed from a future version of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD.Call Stack (most recent call first): /opt/nordic/ncs/v1.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include) /opt/nordic/ncs/v1.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate) [PATH]/otcli/build/CMakeLists.txt:10 (find_package)
-- Application: [PATH]/otcli-- Zephyr version: 2.6.99 (/opt/nordic/ncs/v1.7.0/zephyr), build: v2.6.99-ncs1-- Found Python3: /opt/nordic/ncs/v1.7.0/toolchain/opt/[email protected]/bin/python3.9 (found suitable exact version "3.9.6") found components: Interpreter -- Found west (found suitable version "0.11.1", minimum required is "0.7.1")-- Board: nrf52840dk_nrf52840-- Cache files will be written to: /Users/[USER]/Library/Caches/zephyr-- Found dtc: /opt/nordic/ncs/v1.7.0/toolchain/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")-- Found toolchain: gnuarmemb (/opt/nordic/ncs/v1.7.0/toolchain)-- Found BOARD.dts: /opt/nordic/ncs/v1.7.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts-- Found devicetree overlay: [PATH]/otcli/boards/nrf52840dk_nrf52840.overlay[PATH]/otcli/build/nrf52840dk_nrf52840.dts.pre.tmp:15.39-20.5: Warning (interrupt_provider): /soc/interrupt-controller@e000e100: Missing #address-cells in interrupt provider also defined at [PATH]/otcli/build/nrf52840dk_nrf52840.dts.pre.tmp:370.7-372.3-- Generated zephyr.dts: [PATH]/otcli/build/zephyr/zephyr.dts-- Generated devicetree_unfixed.h: [PATH]/otcli/build/zephyr/include/generated/devicetree_unfixed.h-- Generated device_extern.h: [PATH]/otcli/build/zephyr/include/generated/device_extern.h-- Including generated dts.cmake file: [PATH]/otcli/build/zephyr/dts.cmakeCMake Error at /opt/nordic/ncs/v1.7.0/zephyr/cmake/kconfig.cmake:209 (message): File not found: [PATH]/otcli/../common/overlay-ot-defaults.confCall Stack (most recent call first): /opt/nordic/ncs/v1.7.0/zephyr/cmake/app/boilerplate.cmake:554 (include) /opt/nordic/ncs/v1.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include) /opt/nordic/ncs/v1.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate) [PATH]/otcli/build/CMakeLists.txt:10 (find_package)
-- Configuring incomplete, errors occurred!FATAL ERROR: command exited with status 1: /opt/nordic/ncs/v1.7.0/toolchain/bin/cmake -DWEST_PYTHON=/opt/nordic/ncs/v1.7.0/toolchain/opt/[email protected]/bin/python3.9 -B[PATH]/otcli/build -S[PATH]/otcli -GNinja -DBOARD=nrf52840dk_nrf52840 -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING=NONE -DCONF_FILE:STRING=[PATH]/otcli/prj_nrf5340dk_nrf5340_cpuapp.conf -DDTC_OVERLAY_FILE:STRING=[PATH]/otcli/boards/nrf52840dk_nrf52840.overlayThe terminal process terminated with exit code: 1.
