updating the SDK to 2.8.0 resulting in non working cmake compilation.

I have a sample app (hellow world from the zephyr samples).

It compiled well on my system in vscode using 2.7.0 and sysbuild.

I then installed 2.8.0 and suddenly the build fails, the cmake cannot find the python libraries.

The reason seemed to be that even though i have defined the default SDK and toolchain to be 2.7.0 when calling ncsconfig.cmake it finds toolchain for 2.8.0 and not 2.7.0

i tried to set -DNCS_TOOLCHAIN_VERSION=v2.7.0 instead of None in west call, but it did not help.

Any idea how to resolve it ?

If i remove 2.8.0 then everything goes back to normal, but i want the ability to move some of the new projects to 2.8.0 without docker.

Please advise.

Parents
  • eyal@eyal-ThinkPad-P15v-Gen-1:~/develop/scms/staging_area/dali_sniffer$ west build --build-dir /home/eyal/develop/scms/staging_area/dali_sniffer/build /home/eyal/develop/scms/staging_area/dali_sniffer --sysbuild --pristine -c --board nrf52_adafruit_feather/nrf52832 -- -DNCS_TOOLCHAIN_VERSION="v2.7.0"
    -- west build: making build dir /home/eyal/develop/scms/staging_area/dali_sniffer/build pristine
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: /home/eyal/ncs/toolchains/e9dba88316/usr/local/bin/python3.9 (found suitable version "3.9.18", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /home/eyal/.cache/zephyr
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf52_adafruit_feather, qualifiers: nrf52832
    Parsing /home/eyal/ncs/v2.7.0/zephyr/share/sysbuild/Kconfig
    Loaded configuration '/home/eyal/develop/scms/staging_area/dali_sniffer/build/_sysbuild/empty.conf'
    Merged configuration '/home/eyal/develop/scms/staging_area/dali_sniffer/build/_sysbuild/empty.conf'
    Configuration saved to '/home/eyal/develop/scms/staging_area/dali_sniffer/build/zephyr/.config'
    Kconfig header saved to '/home/eyal/develop/scms/staging_area/dali_sniffer/build/_sysbuild/autoconf.h'
    -- 
       **********************************
       * Running CMake for dali_sniffer *
       **********************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: /home/eyal/develop/scms/staging_area/dali_sniffer
    -- CMake version: 3.21.0
    -- Using NCS Toolchain 2.8.20241106.790718371940 for building. (/home/eyal/ncs/toolchains/b81a7cd864/cmake)
    CMake Error at /home/eyal/ncs/toolchains/e9dba88316/usr/local/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
      Could NOT find Python3 (missing: Interpreter) (Required is at least version
      "3.8")
    

Reply
  • eyal@eyal-ThinkPad-P15v-Gen-1:~/develop/scms/staging_area/dali_sniffer$ west build --build-dir /home/eyal/develop/scms/staging_area/dali_sniffer/build /home/eyal/develop/scms/staging_area/dali_sniffer --sysbuild --pristine -c --board nrf52_adafruit_feather/nrf52832 -- -DNCS_TOOLCHAIN_VERSION="v2.7.0"
    -- west build: making build dir /home/eyal/develop/scms/staging_area/dali_sniffer/build pristine
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: /home/eyal/ncs/toolchains/e9dba88316/usr/local/bin/python3.9 (found suitable version "3.9.18", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /home/eyal/.cache/zephyr
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf52_adafruit_feather, qualifiers: nrf52832
    Parsing /home/eyal/ncs/v2.7.0/zephyr/share/sysbuild/Kconfig
    Loaded configuration '/home/eyal/develop/scms/staging_area/dali_sniffer/build/_sysbuild/empty.conf'
    Merged configuration '/home/eyal/develop/scms/staging_area/dali_sniffer/build/_sysbuild/empty.conf'
    Configuration saved to '/home/eyal/develop/scms/staging_area/dali_sniffer/build/zephyr/.config'
    Kconfig header saved to '/home/eyal/develop/scms/staging_area/dali_sniffer/build/_sysbuild/autoconf.h'
    -- 
       **********************************
       * Running CMake for dali_sniffer *
       **********************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: /home/eyal/develop/scms/staging_area/dali_sniffer
    -- CMake version: 3.21.0
    -- Using NCS Toolchain 2.8.20241106.790718371940 for building. (/home/eyal/ncs/toolchains/b81a7cd864/cmake)
    CMake Error at /home/eyal/ncs/toolchains/e9dba88316/usr/local/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
      Could NOT find Python3 (missing: Interpreter) (Required is at least version
      "3.8")
    

Children
No Data
Related