I have set nrfutil to use the v2.5.0 toolchain:
burt@T420s:~$ nrfutil toolchain-manager list
Version Toolchain
* v2.5.0 /home/burt/ncs/toolchains/7795df4459
v2.7.0 /home/burt/ncs/toolchains/e9dba88316
Next I
burt@T420s:~$ nrfutil toolchain-manager launch --shell
Initializing shell environment!
(v2.5.0) burt@T420s:~$ cd ncs/v2.5.0/nrf/applications/asset_tracker_v2/
(v2.5.0) burt@T420s:~/ncs/v2.5.0/nrf/applications/asset_tracker_v2$ rm -rf build_nrf9160dk
(v2.5.0) burt@T420s:~/ncs/v2.5.0/nrf/applications/asset_tracker_v2$ west build -b nrf9160dk_nrf9160_ns -d build_nrf9160dk
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/burt/ncs/v2.5.0/nrf/applications/asset_tracker_v2
-- CMake version: 3.20.5
-- Using NCS Toolchain 2.6.20240605.1004412633878 for building. (/home/burt/ncs/toolchains/e9dba88316/cmake)
CMake Deprecation Warning at /home/burt/ncs/v2.5.0/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):
'PYTHON_PREFER' variable is deprecated. Please use Python3_EXECUTABLE
instead.
Call Stack (most recent call first):
/home/burt/ncs/v2.5.0/zephyr/cmake/modules/python.cmake:16 (find_package)
/home/burt/ncs/v2.5.0/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
/home/burt/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
/home/burt/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:9 (find_package)
CMake Error at /home/burt/ncs/toolchains/7795df4459/usr/local/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Python3 (missing: Interpreter) (Required is at least version
"3.8")
Reason given by package:
Interpreter: Cannot run the interpreter "/home/burt/ncs/toolchains/e9dba88316/usr/local/bin/python3"
Call Stack (most recent call first):
/home/burt/ncs/toolchains/7795df4459/usr/local/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/home/burt/ncs/toolchains/7795df4459/usr/local/share/cmake-3.20/Modules/FindPython/Support.cmake:3165 (find_package_handle_standard_args)
/home/burt/ncs/toolchains/7795df4459/usr/local/share/cmake-3.20/Modules/FindPython3.cmake:485 (include)
/home/burt/ncs/v2.5.0/zephyr/cmake/modules/python.cmake:44 (find_package)
/home/burt/ncs/v2.5.0/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
/home/burt/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
/home/burt/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:9 (find_package)
-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /home/burt/ncs/toolchains/7795df4459/usr/local/bin/cmake -DWEST_PYTHON=/home/burt/ncs/toolchains/7795df4459/usr/local/bin/python3.8 -B/home/burt/ncs/v2.5.0/nrf/applications/asset_tracker_v2/build_nrf9160dk -GNinja -DBOARD=nrf9160dk_nrf9160_ns -S/home/burt/ncs/v2.5.0/nrf/applications/asset_tracker_v2
Note that I highlighted in red above where the incorrect toolchain is selected according to the log output.
This is on Linux. Please help fix this. Thanks.
Regards,
Burt Silverman