Cmake Error "Math cannot parse the expression" with NCS > 2.4.2

Hello,

i'm using nrf connect sdk 2.4.2 to develop the firmware for my custom nrf5340 board without issues. I'm trying to upgrade to the the latest release but both 2.5.0 and 2.5.2 gives me this error when trying to compile:

CMake Error at D:/Nordic/v2.5.0/zephyr/cmake/modules/version.cmake:74 (math):
math cannot parse the expression: "( << 16) + ( << 8) + ()": syntax error,
unexpected exp_SHIFTLEFT (4).

I found THIS issue on DevZone that is extremely similar to my one and posted there some material to test on, but i didn't get any feedback in few months. For this reason, i'm opening a new issue.

The issue is clearly correlated to the Application versioning, but even reading the docs and making some tests i was not able to solve it.

Any suggestion?

Frax

Parents
  • I'm a bit at a loss here. Could you upload your project so I can have a look?

    Just to summarize 

    New version of the SDK

    new sample project with only hello world and no changes? Are you including any file named version in your project folder? I don't believe are you, just need to check. 

    Could you generate the support information from vscode and post it here?

    Regards

    Runar

    NB: Due to public holidays here in Norway, we will be out until the 2. of April. 

  • Hi runsiv,

    Correct, new version of SDK and toolchain. Project with only hellow world and no changes. I am NOT including any file named version in my project folder. 

    Here follows the support information generated from vscode:

    IMPORTANT: The data below could contain sensitive or confidential information about your environment.
    If you do not wish this to be seen by others, please make sure to remove it before sharing.
    
    For help and support, visit the Nordic DevZone at https://devzone.nordicsemi.com/.
    
    {
      "platform": {
        "os": "win32",
        "osVersion": "Windows 10 Home",
        "osKernel": "10.0.19045",
        "vscode": "1.87.2",
        "electron": "27.3.2",
        "node": "v18.17.1"
      },
      "system": {
        "date": "2024-03-27T15:58:04.253Z",
        "vscodeRoot": "c:\\Users\\Frax\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "00:01:26",
        "osUptime": "07:24:04",
        "cpu": "Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz"
      },
      "workspace": {
        "name": "nrf5340_PASTO (Workspace)",
        "workspaceFile": "c:\\nrf5340_PASTO\\nrf5340_PASTO.code-workspace",
        "folders": [
          "c:\\nrf5340_PASTO",
          "c:\\nrf5340dk_projects\\PASTO\\hello_world"
        ]
      },
      "sdks": [
        {
          "version": "v2.6.0",
          "path": "c:\\ncs\\v2.6.0"
        },
        {
          "version": "v2.4.2",
          "path": "c:\\ncs\\v2.4.2"
        }
      ],
      "activeBuild": "c:\\nrf5340_PASTO\\Glass_firmware\\build-DK",
      "apps": [
        {
          "workspace": "c:\\nrf5340_PASTO",
          "uri": "c:\\nrf5340_PASTO\\Glass_firmware",
          "buildConfigurations": [
            {
              "id": "c:\\nrf5340_PASTO\\Glass_firmware\\build_glass_nrf5340",
              "name": "build_glass_nrf5340",
              "boardId": "pasto_glass_nrf5340_cpuapp_ns",
              "type": "Zephyr",
              "isChild": false,
              "isStale": true,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              }
            },
            {
              "id": "c:\\nrf5340_PASTO\\Glass_firmware\\build_glass-nrf5340_rev",
              "name": "build_glass-nrf5340_rev",
              "boardId": "pasto_glass_nrf5340_cpuapp_ns",
              "type": "Zephyr",
              "isChild": false,
              "isStale": true,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              }
            },
            {
              "id": "c:\\nrf5340_PASTO\\Glass_firmware\\build-DK",
              "name": "build-DK",
              "boardId": "pasto_glass_nrf5340_cpuapp_ns",
              "type": "Zephyr",
              "isChild": false,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              }
            }
          ]
        },
        {
          "workspace": "c:\\nrf5340dk_projects\\PASTO\\hello_world",
          "uri": "c:\\nrf5340dk_projects\\PASTO\\hello_world",
          "buildConfigurations": [
            {
              "id": "c:\\nrf5340dk_projects\\PASTO\\hello_world\\hello_world_PASTO_BOARD",
              "name": "hello_world_PASTO_BOARD",
              "boardId": "nrf5340dk_nrf5340_cpuapp_ns",
              "type": "Zephyr",
              "isChild": false,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              }
            }
          ]
        }
      ],
      "topdir": "c:\\ncs\\v2.6.0",
      "workspaceState": "freestanding-ready",
      "toolchains": [
        {
          "version": "2.6.0",
          "path": "c:\\ncs\\toolchains\\cf2149caf2"
        },
        {
          "version": "2.4.2",
          "path": "c:\\ncs\\toolchains\\31f4403e35"
        }
      ],
      "connectedDevices": [],
      "deviceProvider": "nrfutil",
      "tools": {
        "C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.16.5",
        "C:\\Program Files\\SEGGER\\JLink_V794e\\JLink.exe": "7.94e",
        "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.24.0",
        "nrfutil": "Not found",
        "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\cmake.exe": "3.21.0",
        "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Scripts\\west.exe": "1.2.0",
        "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\python.exe": "3.9.13",
        "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\ninja.exe": "1.10.2",
        "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\gperf.exe": "3.1",
        "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\dtc.exe": "1.4.7",
        "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\gn.exe": "2154",
        "C:\\ncs\\toolchains\\cf2149caf2\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
        "gdbPath": "c:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.0.0",
          "binPath": "c:\\Users\\Frax\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.3.25-win32-x64\\platform\\nrfutil\\bin\\nrfutil-device"
        },
        "nrfutil-toolchain-manager": {
          "version": "0.14.1",
          "binPath": "c:\\Users\\Frax\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.3.25-win32-x64\\platform\\nrfutil\\bin\\nrfutil-toolchain-manager"
        }
      },
      "environment": {
        "westEnv": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\Frax",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\Frax",
          "PATH": "C:\\ncs\\toolchains\\cf2149caf2;C:\\ncs\\toolchains\\cf2149caf2\\mingw64\\bin;C:\\ncs\\toolchains\\cf2149caf2\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Scripts;C:\\ncs\\toolchains\\cf2149caf2\\opt\\nanopb\\generator-bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\aarch64-zephyr-elf\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\x86_64-zephyr-elf\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin;c:\\Users\\Frax\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.3.25-win32-x64\\platform\\nrfutil\\lib\\nrfutil-toolchain-manager;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\PuTTY\\;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\;C:\\Users\\Frax\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python310\\Scripts;C:\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\Frax\\AppData\\Local\\Microsoft\\WindowsApps;;C:\\Program Files\\JetBrains\\PhpStorm 2019.3.3\\bin;;C:\\Program Files\\JetBrains\\PyCharm Community Edition 2021.2.3\\bin;;C:\\Program Files\\JetBrains\\IntelliJ IDEA Community Edition 2021.3\\bin;;C:\\Users\\Frax\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\Frax\\go\\bin",
          "ZEPHYR_BASE": "c:\\ncs\\v2.6.0\\zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk",
          "PYTHONPATH": "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Lib;C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Lib\\site-packages"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\Frax",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\Frax",
          "Path": "C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\PuTTY\\;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\;C:\\Users\\Frax\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python310\\Scripts;C:\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\Frax\\AppData\\Local\\Microsoft\\WindowsApps;;C:\\Program Files\\JetBrains\\PhpStorm 2019.3.3\\bin;;C:\\Program Files\\JetBrains\\PyCharm Community Edition 2021.2.3\\bin;;C:\\Program Files\\JetBrains\\IntelliJ IDEA Community Edition 2021.3\\bin;;C:\\Users\\Frax\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\Frax\\go\\bin",
          "PATH": "C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\PuTTY\\;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\;C:\\Users\\Frax\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python310\\Scripts;C:\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\Frax\\AppData\\Local\\Microsoft\\WindowsApps;;C:\\Program Files\\JetBrains\\PhpStorm 2019.3.3\\bin;;C:\\Program Files\\JetBrains\\PyCharm Community Edition 2021.2.3\\bin;;C:\\Program Files\\JetBrains\\IntelliJ IDEA Community Edition 2021.3\\bin;;C:\\Users\\Frax\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\Frax\\go\\bin"
        },
        "toolchainPath": "c:\\ncs\\toolchains\\cf2149caf2",
        "toolchainBinPath": "c:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin",
        "toolchainVersion": "2.6.0"
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "${nrf-connect.sdk:2.6.0}",
          "toolchain": {
            "path": "${nrf-connect.toolchain:2.6.0}"
          },
          "ozonePath": "",
          "applications": [
            "${workspaceFolder}\\Glass_firmware"
          ],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "taskBindings": {},
          "buildTerminal": {
            "condensedProgress": true
          },
          "debugging": {
            "flash": true,
            "bindings": {},
            "justMyCode": true
          },
          "activeAppFollowActiveEditor": true,
          "deviceProvider": "",
          "flash": {
            "softreset": false,
            "erase": false,
            "recover": false
          },
          "enableTelemetry": false,
          "thirdpartyIntegration": {},
          "toolchainManager": {
            "indexURL": null,
            "installDirectory": null
          },
          "nrfutil": {
            "home": null
          },
          "defaultOpenAction": "ask",
          "welcome": {
            "showOnStartup": true
          }
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2024.3.25",
            "path": "c:\\Users\\Frax\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.3.25-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.3.15",
            "path": "c:\\Users\\Frax\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2024.3.15",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2024.3.78",
            "path": "c:\\Users\\Frax\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2024.3.78",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2024.3.21",
            "path": "c:\\Users\\Frax\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2024.3.21",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": null,
          "ms-vscode.cpptools": "1.19.9",
          "ms-vscode.js-debug": "1.87.0",
          "ms-vscode.js-debug-companion": "1.1.2",
          "ms-vscode.vscode-js-profile-table": "1.0.8",
          "alexnesnes.teleplot": "1.1.3",
          "esbenp.prettier-vscode": "10.4.0",
          "GitHub.codespaces": "1.16.17",
          "GitHub.remotehub": "0.62.0",
          "Gruntfuggly.todo-tree": "0.0.226",
          "mintlify.document": "2.2.1",
          "MS-CEINTL.vscode-language-pack-it": "1.87.2024031309",
          "ms-vscode.azure-repos": "0.38.0",
          "ms-vscode.cpptools-extension-pack": "1.3.0",
          "ms-vscode.cpptools-themes": "2.0.0",
          "ms-vscode.remote-repositories": "0.40.0",
          "PKief.material-icon-theme": "4.34.0",
          "redhat.vscode-yaml": "1.14.0",
          "tomoki1207.pdf": "1.2.2",
          "trond-snekvik.gnu-mapfiles": "1.1.0"
        }
      }
    }

    No problem for the holydays, please enjoy them Slight smile

    It's important i solve the issue but i'm not in hurry.

    Thanks,

    Frax

  • Yes, i checked. No error seems to happen Disappointed

    By the way, this is the full print after west update command

    PS C:\ncs\v2.6.0\nrf> west update
    === updating zephyr (zephyr):
    HEAD is now at d96769fac [nrf noup] samples: lwm2m_client: Add support for nRF91x and nRF700x
    === updating bsim (tools/bsim):
    HEAD is now at 384a091 west.yaml Update to 2.1.1
    === updating hostap (modules/lib/hostap):
    HEAD is now at dda5457a [nrf noup] zephyr: Fix reason code for locally generated disconnection
    === updating wfa-qt-control-app (modules/lib/wfa-qt-control-app):
    HEAD is now at d649bd1 [nrf noup]: qt: Fix config name
    === updating mcuboot (bootloader/mcuboot):
    HEAD is now at 3c2f2ff12 [nrf noup] boards: thingy91x: add board config
    === updating qcbor (modules/tee/tf-m/qcbor):
    HEAD is now at 751d365 restore inc/qcbor.h for backwards compatibility (#181)
    === updating mbedtls (modules/crypto/mbedtls):
    HEAD is now at 9beb52e6 [nrf noup] tls: Adapt to final PSA PAKE APIs
    === updating nrfxlib (nrfxlib):
    HEAD is now at 13cd978 nrf_modem: release 2.6.1
    === updating trusted-firmware-m (modules/tee/tf-m/trusted-firmware-m):
    HEAD is now at 2a2e1ce [nrf noup] cmake: tools: Dont add a custom command for running the manifest
    === updating psa-arch-tests (modules/tee/tf-m/psa-arch-tests):
    HEAD is now at 94a349d [nrf fromlist] Fix base address for the nrf watchdog
    === updating matter (modules/lib/matter):
    --- matter: initializing
    Initialized empty Git repository in C:/ncs/v2.6.0/modules/lib/matter/.git/
    --- matter: fetching, need revision v2.6.0
    remote: Enumerating objects: 316242, done.
    remote: Counting objects: 100% (471/471), done.
    remote: Compressing objects: 100% (208/208), done.
    remote: Total 316242 (delta 283), reused 373 (delta 263), pack-reused 315771
    Receiving objects: 100% (316242/316242), 251.75 MiB | 4.84 MiB/s, done.
    Resolving deltas: 100% (238290/238290), done.
    From https://github.com/nrfconnect/sdk-connectedhomeip
     * tag                     v2.6.0              -> FETCH_HEAD
     * [new tag]               v1.5.0              -> v1.5.0
     * [new tag]               v1.5.0-rc1          -> v1.5.0-rc1
     * [new tag]               v1.5.1              -> v1.5.1
     * [new tag]               v1.5.1-rc1          -> v1.5.1-rc1
     * [new tag]               v1.5.2              -> v1.5.2
     * [new tag]               v1.6.0              -> v1.6.0
     * [new tag]               v1.6.0-rc3          -> v1.6.0-rc3
     * [new tag]               v1.6.99-20210901    -> v1.6.99-20210901
     * [new tag]               v1.6.99-snapshot1   -> v1.6.99-snapshot1
     * [new tag]               v1.7.0              -> v1.7.0
     * [new tag]               v1.7.0-rc1          -> v1.7.0-rc1
     * [new tag]               v1.7.0-rc2          -> v1.7.0-rc2
     * [new tag]               v1.7.1              -> v1.7.1
     * [new tag]               v1.7.99-20211125    -> v1.7.99-20211125
     * [new tag]               v1.8.0              -> v1.8.0
     * [new tag]               v1.8.0-rc1          -> v1.8.0-rc1
     * [new tag]               v1.8.0-rc2          -> v1.8.0-rc2
     * [new tag]               v1.9.0              -> v1.9.0
     * [new tag]               v1.9.0-rc1          -> v1.9.0-rc1
     * [new tag]               v1.9.0-rc2          -> v1.9.0-rc2
     * [new tag]               v1.9.1              -> v1.9.1
     * [new tag]               v1.9.2              -> v1.9.2
     * [new tag]               v1.9.99-matter-dev1 -> v1.9.99-matter-dev1
     * [new tag]               v2.0.0              -> v2.0.0
     * [new tag]               v2.0.0-rc1          -> v2.0.0-rc1
     * [new tag]               v2.0.0-rc2          -> v2.0.0-rc2
     * [new tag]               v2.0.1              -> v2.0.1
     * [new tag]               v2.0.2              -> v2.0.2
     * [new tag]               v2.0.99-matter-dev1 -> v2.0.99-matter-dev1
     * [new tag]               v2.0.99-matter-dev2 -> v2.0.99-matter-dev2
     * [new tag]               v2.1.0              -> v2.1.0
     * [new tag]               v2.1.0-rc1          -> v2.1.0-rc1
     * [new tag]               v2.1.0-rc2          -> v2.1.0-rc2
     * [new tag]               v2.1.0-snapshot1    -> v2.1.0-snapshot1
     * [new tag]               v2.1.1              -> v2.1.1
     * [new tag]               v2.1.2              -> v2.1.2
     * [new tag]               v2.1.3              -> v2.1.3
     * [new tag]               v2.1.4              -> v2.1.4
     * [new tag]               v2.2.0              -> v2.2.0
     * [new tag]               v2.2.0-rc1          -> v2.2.0-rc1
     * [new tag]               v2.2.0-rc2          -> v2.2.0-rc2
     * [new tag]               v2.2.0-snapshot1    -> v2.2.0-snapshot1
     * [new tag]               v2.3.0              -> v2.3.0
     * [new tag]               v2.3.0-rc1          -> v2.3.0-rc1
     * [new tag]               v2.3.0-rc2          -> v2.3.0-rc2
     * [new tag]               v2.3.0-snapshot1    -> v2.3.0-snapshot1
     * [new tag]               v2.4.0              -> v2.4.0
     * [new tag]               v2.4.0-rc1          -> v2.4.0-rc1
     * [new tag]               v2.4.0-rc2          -> v2.4.0-rc2
     * [new tag]               v2.4.1              -> v2.4.1
     * [new tag]               v2.4.2              -> v2.4.2
     * [new tag]               v2.4.3              -> v2.4.3
     * [new tag]               v2.4.99-snapshot1   -> v2.4.99-snapshot1
     * [new tag]               v2.5.0              -> v2.5.0
     * [new tag]               v2.5.0-rc1          -> v2.5.0-rc1
     * [new tag]               v2.5.0-rc2          -> v2.5.0-rc2
     * [new tag]               v2.5.1              -> v2.5.1
     * [new tag]               v2.5.1-rc1          -> v2.5.1-rc1
     * [new tag]               v2.5.2              -> v2.5.2
     * [new tag]               v2.5.99-dev1        -> v2.5.99-dev1
     * [new tag]               v2.6.0              -> v2.6.0
     * [new tag]               v2.6.0-rc1          -> v2.6.0-rc1
     * [new tag]               v2.6.0-rc2          -> v2.6.0-rc2
    Updating files: 100% (14313/14313), done.
    HEAD is now at 7653e6c78d [nrf noup] Fix issue with stack sizes
    HEAD is now at 7653e6c78d [nrf noup] Fix issue with stack sizes
    Submodule 'nlio' (https://github.com/nestlabs/nlio.git) registered for path 'third_party/nlio/repo'
    Cloning into 'C:/ncs/v2.6.0/modules/lib/matter/third_party/nlio/repo'...
    Submodule path 'third_party/nlio/repo': checked out '0e725502c2b17bb0a0c22ddd4bcaee9090c8fb5c'
    Submodule 'nlassert' (https://github.com/nestlabs/nlassert.git) registered for path 'third_party/nlassert/repo'
    Cloning into 'C:/ncs/v2.6.0/modules/lib/matter/third_party/nlassert/repo'...
    Submodule path 'third_party/nlassert/repo': checked out 'c5892c5ae43830f939ed660ff8ac5f1b91d336d3'
    Submodule 'nlunit-test' (https://github.com/nestlabs/nlunit-test.git) registered for path 'third_party/nlunit-test/repo'
    Cloning into 'C:/ncs/v2.6.0/modules/lib/matter/third_party/nlunit-test/repo'...
    Submodule path 'third_party/nlunit-test/repo': checked out '0c8c9073af9c07aa089861295b7d7ced56ad174d'
    Submodule 'pigweed' (https://github.com/google/pigweed.git) registered for path 'third_party/pigweed/repo'
    Cloning into 'C:/ncs/v2.6.0/modules/lib/matter/third_party/pigweed/repo'...
    Submodule path 'third_party/pigweed/repo': checked out '90d97fa3b4292c39074e6f2b94dbd1cffa6ee318'
    Submodule 'third_party/jsoncpp/repo' (https://github.com/open-source-parsers/jsoncpp.git) registered for path 'third_party/jsoncpp/repo'
    Cloning into 'C:/ncs/v2.6.0/modules/lib/matter/third_party/jsoncpp/repo'...
    Submodule path 'third_party/jsoncpp/repo': checked out '69098a18b9af0c47549d9a271c054d13ca92b006'
    === updating cjson (modules/lib/cjson):
    HEAD is now at c6af068 [nrf fromtree] fix: potential memory leak in merge_patch() (#611)
    === updating azure-sdk-for-c (modules/lib/azure-sdk-for-c):
    HEAD is now at 308c171 [nrf fromlist] Make repository a Zephyr module
    === updating cirrus (modules/hal/cirrus-logic):
    HEAD is now at 3873a08 Added missing curly brace for #ifdef __cplusplus
    === updating openthread (modules/lib/openthread):
    HEAD is now at b9dcdbc [cli] add documentation for `nexthop` command in `README.md` (#9882)
    === updating cmock (test/cmock):
    HEAD is now at f65066f Merge pull request #404 from tz18/patch-1
    Synchronizing submodule url for 'vendor/c_exception'
    Synchronizing submodule url for 'vendor/unity'
    === updating memfault-firmware-sdk (modules/lib/memfault-firmware-sdk):
    --- memfault-firmware-sdk: fetching, need revision 1.6.0
    remote: Enumerating objects: 83, done.
    remote: Counting objects: 100% (83/83), done.
    remote: Compressing objects: 100% (83/83), done.
    remote: Total 83 (delta 0), reused 83 (delta 0), pack-reused 0
    Receiving objects: 100% (83/83), 10.62 KiB | 1.77 MiB/s, done.
    From https://github.com/memfault/memfault-firmware-sdk
     * tag               1.6.0      -> FETCH_HEAD
     * [new tag]         0.0.10     -> 0.0.10
     * [new tag]         0.0.11     -> 0.0.11
     * [new tag]         0.0.12     -> 0.0.12
     * [new tag]         0.0.13     -> 0.0.13
     * [new tag]         0.0.14     -> 0.0.14
     * [new tag]         0.0.15     -> 0.0.15
     * [new tag]         0.0.16     -> 0.0.16
     * [new tag]         0.0.17     -> 0.0.17
     * [new tag]         0.0.18     -> 0.0.18
     * [new tag]         0.0.2      -> 0.0.2
     * [new tag]         0.0.3      -> 0.0.3
     * [new tag]         0.0.4      -> 0.0.4
     * [new tag]         0.0.5      -> 0.0.5
     * [new tag]         0.0.6      -> 0.0.6
     * [new tag]         0.0.7      -> 0.0.7
     * [new tag]         0.0.8      -> 0.0.8
     * [new tag]         0.0.9      -> 0.0.9
     * [new tag]         0.1.0      -> 0.1.0
     * [new tag]         0.10.0     -> 0.10.0
     * [new tag]         0.10.1     -> 0.10.1
     * [new tag]         0.11.0     -> 0.11.0
     * [new tag]         0.11.1     -> 0.11.1
     * [new tag]         0.11.2     -> 0.11.2
     * [new tag]         0.11.3     -> 0.11.3
     * [new tag]         0.11.4     -> 0.11.4
     * [new tag]         0.12.0     -> 0.12.0
     * [new tag]         0.13.0     -> 0.13.0
     * [new tag]         0.13.1     -> 0.13.1
     * [new tag]         0.14.0     -> 0.14.0
     * [new tag]         0.15.0     -> 0.15.0
     * [new tag]         0.16.0     -> 0.16.0
     * [new tag]         0.16.1     -> 0.16.1
     * [new tag]         0.17.0     -> 0.17.0
     * [new tag]         0.17.1     -> 0.17.1
     * [new tag]         0.18.0     -> 0.18.0
     * [new tag]         0.19.0     -> 0.19.0
     * [new tag]         0.2.0      -> 0.2.0
     * [new tag]         0.2.1      -> 0.2.1
     * [new tag]         0.2.2      -> 0.2.2
     * [new tag]         0.2.3      -> 0.2.3
     * [new tag]         0.2.4      -> 0.2.4
     * [new tag]         0.2.5      -> 0.2.5
     * [new tag]         0.20.0     -> 0.20.0
     * [new tag]         0.20.1     -> 0.20.1
     * [new tag]         0.20.2     -> 0.20.2
     * [new tag]         0.21.0     -> 0.21.0
     * [new tag]         0.21.1     -> 0.21.1
     * [new tag]         0.22.0     -> 0.22.0
     * [new tag]         0.23.0     -> 0.23.0
     * [new tag]         0.24.0     -> 0.24.0
     * [new tag]         0.24.1     -> 0.24.1
     * [new tag]         0.24.2     -> 0.24.2
     * [new tag]         0.25.0     -> 0.25.0
     * [new tag]         0.26.0     -> 0.26.0
     * [new tag]         0.26.1     -> 0.26.1
     * [new tag]         0.27.0     -> 0.27.0
     * [new tag]         0.27.1     -> 0.27.1
     * [new tag]         0.27.2     -> 0.27.2
     * [new tag]         0.27.3     -> 0.27.3
     * [new tag]         0.28.0     -> 0.28.0
     * [new tag]         0.28.1     -> 0.28.1
     * [new tag]         0.28.2     -> 0.28.2
     * [new tag]         0.29.0     -> 0.29.0
     * [new tag]         0.29.1     -> 0.29.1
     * [new tag]         0.3.0      -> 0.3.0
     * [new tag]         0.3.1      -> 0.3.1
     * [new tag]         0.3.2      -> 0.3.2
     * [new tag]         0.3.3      -> 0.3.3
     * [new tag]         0.3.4      -> 0.3.4
     * [new tag]         0.30.0     -> 0.30.0
     * [new tag]         0.30.1     -> 0.30.1
     * [new tag]         0.30.2     -> 0.30.2
     * [new tag]         0.30.3     -> 0.30.3
     * [new tag]         0.30.4     -> 0.30.4
     * [new tag]         0.30.5     -> 0.30.5
     * [new tag]         0.31.0     -> 0.31.0
     * [new tag]         0.31.1     -> 0.31.1
     * [new tag]         0.31.2     -> 0.31.2
     * [new tag]         0.31.3     -> 0.31.3
     * [new tag]         0.31.4     -> 0.31.4
     * [new tag]         0.31.5     -> 0.31.5
     * [new tag]         0.32.0     -> 0.32.0
     * [new tag]         0.32.1     -> 0.32.1
     * [new tag]         0.32.2     -> 0.32.2
     * [new tag]         0.33.0     -> 0.33.0
     * [new tag]         0.33.1     -> 0.33.1
     * [new tag]         0.33.2     -> 0.33.2
     * [new tag]         0.33.3     -> 0.33.3
     * [new tag]         0.33.4     -> 0.33.4
     * [new tag]         0.33.5     -> 0.33.5
     * [new tag]         0.34.0     -> 0.34.0
     * [new tag]         0.34.1     -> 0.34.1
     * [new tag]         0.34.2     -> 0.34.2
     * [new tag]         0.35.0     -> 0.35.0
     * [new tag]         0.36.0     -> 0.36.0
     * [new tag]         0.36.1     -> 0.36.1
     * [new tag]         0.37.0     -> 0.37.0
     * [new tag]         0.37.1     -> 0.37.1
     * [new tag]         0.37.2     -> 0.37.2
     * [new tag]         0.38.0     -> 0.38.0
     * [new tag]         0.39.0     -> 0.39.0
     * [new tag]         0.39.1     -> 0.39.1
     * [new tag]         0.4.0      -> 0.4.0
     * [new tag]         0.4.1      -> 0.4.1
     * [new tag]         0.4.2      -> 0.4.2
     * [new tag]         0.40.0     -> 0.40.0
     * [new tag]         0.41.0     -> 0.41.0
     * [new tag]         0.41.1     -> 0.41.1
     * [new tag]         0.41.2     -> 0.41.2
     * [new tag]         0.42.0     -> 0.42.0
     * [new tag]         0.42.1     -> 0.42.1
     * [new tag]         0.43.0     -> 0.43.0
     * [new tag]         0.43.1     -> 0.43.1
     * [new tag]         0.43.2     -> 0.43.2
     * [new tag]         0.43.3     -> 0.43.3
     * [new tag]         0.5.0      -> 0.5.0
     * [new tag]         0.5.1      -> 0.5.1
     * [new tag]         0.6.0      -> 0.6.0
     * [new tag]         0.6.1      -> 0.6.1
     * [new tag]         0.7.0      -> 0.7.0
     * [new tag]         0.7.1      -> 0.7.1
     * [new tag]         0.7.2      -> 0.7.2
     * [new tag]         0.7.3      -> 0.7.3
     * [new tag]         0.8.0      -> 0.8.0
     * [new tag]         0.8.1      -> 0.8.1
     * [new tag]         0.8.2      -> 0.8.2
     * [new tag]         0.9.0      -> 0.9.0
     * [new tag]         0.9.1      -> 0.9.1
     * [new tag]         0.9.2      -> 0.9.2
     * [new tag]         0.9.3      -> 0.9.3
     * [new tag]         1.0.0      -> 1.0.0
     * [new tag]         1.0.1      -> 1.0.1
     * [new tag]         1.1.0      -> 1.1.0
     * [new tag]         1.1.1      -> 1.1.1
     * [new tag]         1.1.2      -> 1.1.2
     * [new tag]         1.1.3      -> 1.1.3
     * [new tag]         1.2.0      -> 1.2.0
     * [new tag]         1.2.1      -> 1.2.1
     * [new tag]         1.2.2      -> 1.2.2
     * [new tag]         1.2.3      -> 1.2.3
     * [new tag]         1.2.4      -> 1.2.4
     * [new tag]         1.2.5      -> 1.2.5
     * [new tag]         1.3.0      -> 1.3.0
     * [new tag]         1.3.1      -> 1.3.1
     * [new tag]         1.3.2      -> 1.3.2
     * [new tag]         1.3.3      -> 1.3.3
     * [new tag]         1.3.4      -> 1.3.4
     * [new tag]         1.3.5      -> 1.3.5
     * [new tag]         1.4.0      -> 1.4.0
     * [new tag]         1.4.1      -> 1.4.1
     * [new tag]         1.4.2      -> 1.4.2
     * [new tag]         1.4.3      -> 1.4.3
     * [new tag]         1.4.4      -> 1.4.4
     * [new tag]         1.5.0      -> 1.5.0
     * [new tag]         1.5.1      -> 1.5.1
     * [new tag]         1.5.2      -> 1.5.2
     * [new tag]         1.6.0      -> 1.6.0
     * [new tag]         1.6.1      -> 1.6.1
     * [new tag]         1.6.2      -> 1.6.2
     * [new tag]         1.7.0      -> 1.7.0
     * [new tag]         1.7.1      -> 1.7.1
     * [new tag]         1.7.2      -> 1.7.2
     * [new tag]         1.7.3      -> 1.7.3
     * [new tag]         1.7.4      -> 1.7.4
     * [new tag]         1.7.5      -> 1.7.5
     * [new tag]         1.7.6      -> 1.7.6
    HEAD is now at 3d51c80 Memfault Firmware SDK 1.6.0 (Build 5464)
    === updating canopennode (modules/lib/canopennode):
    HEAD is now at dec12fa stack: map CANopenNode crc16_ccitt() to Zephyr crc16_itu_t()
    === updating chre (modules/lib/chre):
    HEAD is now at 3b32c76 zephyr: link the .unstable_id data in ROM
    === updating lz4 (modules/lib/lz4):
    HEAD is now at 8e303c2 zephyr: make this repo a zephyr module
    === updating nanopb (modules/lib/nanopb):
    HEAD is now at 42fa8b2 Merge pull request #2 from pdgendt/zephyr
    === updating tf-m-tests (modules/tee/tf-m/tf-m-tests):
    HEAD is now at 08a3158 Merge pull request #8 from mswarowsky/tfm_20_upmerge
    === updating zscilib (modules/lib/zscilib):
    HEAD is now at 34a94b0 Merge pull request #55 from nashif/remove_ztest_config
    === updating cmsis (modules/hal/cmsis):
    HEAD is now at 4b96cbb doc: Update documentations for CMSIS 5.9.0
    === updating cmsis-dsp (modules/lib/cmsis-dsp):
    HEAD is now at ff7b5fd compute Library: fix inline function that is not static
    === updating cmsis-nn (modules/lib/cmsis-nn):
    HEAD is now at 0c8669d Merge pull request #1 from XenuIsWatching/zephyr
    === updating edtt (tools/edtt):
    HEAD is now at 64e5105 edttt_bsim: Avoid infinite exception loop
    === updating fatfs (modules/fs/fatfs):
    HEAD is now at 427159b zephyr: fix ffconf.h override use of STRINGIZE
    === updating hal_nordic (modules/hal/nordic):
    HEAD is now at 5470822 nrfx: Fix compilation failures in nrfx_gppi_dppi_ppib.c
    === updating hal_st (modules/hal/st):
    HEAD is now at fb8e79d sensor/vl53l1x api/core call to VL53L1_GetTickCount function
    === updating hal_wurthelektronik (modules/hal/wurthelektronik):
    HEAD is now at 24ca987 Initialized WE HAL module repository.
    === updating libmetal (modules/hal/libmetal):
    HEAD is now at 03140d7 Zephyr integration: Add support for hosted test environment
    === updating liblc3 (modules/lib/liblc3):
    HEAD is now at 448f3de Merge pull request #8 from carlescufi/rename
    === updating littlefs (modules/fs/littlefs):
    HEAD is now at ca583fd Merge tag 'v2.5.0' of https://github.com/littlefs-project/littlefs into zephyr
    === updating loramac-node (modules/lib/loramac-node):
    HEAD is now at 842413c utilities: fix one more shadowed variable
    === updating lvgl (modules/lib/gui/lvgl):
    HEAD is now at 7c61a4c zephyr: Kconfig: Add guard checking for LVGL module
    === updating mipi-sys-t (modules/debug/mipi-sys-t):
    HEAD is now at a819419 library: allow building without wchar support
    === updating net-tools (tools/net-tools):
    === updating nrf_hw_models (modules/bsim_hw_models/nrf_hw_models):
    HEAD is now at 52d0b4b UART: FIFO backend: Do not error out if other side disconnects Rx
    === updating open-amp (modules/lib/open-amp):
    HEAD is now at 214f9fc cmake: Compile with WITH_DCACHE
    === updating picolibc (modules/lib/picolibc):
    HEAD is now at 1a5c603b Version 1.8.5
    === updating segger (modules/debug/segger):
    HEAD is now at 9d01912 segger: config: RTT spinlock implementation
    === updating tinycrypt (modules/crypto/tinycrypt):
    HEAD is now at 3e9a49d cmake: Fix conditional in root CMakeLists.txt
    === updating uoscore-uedhoc (modules/lib/uoscore-uedhoc):
    HEAD is now at 150f4eb [zephyr fromlist] Adapt to changes in name generation in zcbor 0.8.0
    === updating zcbor (modules/lib/zcbor):
    HEAD is now at d3093b5 Update version from 0.8.99 to 0.8.1

  • Thanks for confirming. This means the SDK should be correctly installed. From the same terminal you ran 'west update' in, please run

    west forall -c "git reset --hard"
    for good measure. Note: this will revert any local changes in your SDK tree.

    Then, in C:/ncs/v2.6.0/zephyr/cmake/modules/version.cmake b/cmake/modules/version.cmake, add the following line to print the VERSION files used in the build:

    diff --git a/cmake/modules/version.cmake b/cmake/modules/version.cmake
    index 4c80c5fcdc..46c430f5a7 100644
    --- a/cmake/modules/version.cmake
    +++ b/cmake/modules/version.cmake
    @@ -43,6 +43,7 @@ if(NOT DEFINED VERSION_FILE AND NOT DEFINED VERSION_TYPE)
     endif()
     
     foreach(type file IN ZIP_LISTS VERSION_TYPE VERSION_FILE)
    +  message(ERROR ${VERSION_FILE})
       if(NOT EXISTS ${file})
         break()
       endif()
    
    

    After this, build one of the SDK samples that will fail and post the build log from terminal here.

    E.g., 

    /zephyr/samples/hello_world$ west build -b nrf5340dk_nrf5340_cpuapp -p

  • Ok. This is what i've done:

    1) west forall -c "git reset --hard" ---> No errors arose

    2) in "C:/ncs/v2.6.0/zephyr/cmake/modules/version.cmake" i added the line "message(ERROR ${VERSION_FILE})" just after the "foreach" line.

    3) in the "Nrf Connect" tab of VS code i selected the hello_world build config and in "Actions" i clicked on "Pristine Build"

    This is the output: (for some reason i can't "insert code")

    Building hello_world
    C:\WINDOWS\system32\cmd.exe /d /s /c "west build --build-dir c:/nrf5340dk_projects/PASTO/hello_world/build c:/nrf5340dk_projects/PASTO/hello_world --pristine --board nrf5340dk_nrf5340_cpuapp --no-sysbuild -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=c:/nrf5340_pasto -DCACHED_CONF_FILE=c:/nrf5340dk_projects/PASTO/hello_world/prj.conf"

    -- west build: generating a build system
    ERRORC:/ncs/v2.6.0/zephyr/VERSION/VERSION
    ERRORC:/ncs/v2.6.0/zephyr/VERSION/VERSION
    CMake Error at C:/ncs/v2.6.0/zephyr/cmake/modules/version.cmake:77 (math):
    math cannot parse the expression: "( << 16) + ( << 8) + ()": syntax error,
    unexpected exp_SHIFTLEFT (4).
    Call Stack (most recent call first):
    C:/ncs/v2.6.0/zephyr/share/zephyr-package/cmake/ZephyrConfigVersion.cmake:59 (include)
    CMakeLists.txt:5 (find_package)


    CMake Error at C:/ncs/v2.6.0/zephyr/cmake/modules/version.cmake:78 (math):
    math cannot parse the expression: "( << 24) + ( << 16) + ( << 8) + ()":
    syntax error, unexpected exp_SHIFTLEFT (4).
    Call Stack (most recent call first):
    C:/ncs/v2.6.0/zephyr/share/zephyr-package/cmake/ZephyrConfigVersion.cmake:59 (include)
    CMakeLists.txt:5 (find_package)


    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/nrf5340dk_projects/PASTO/hello_world
    -- CMake version: 3.21.0
    -- Found Python3: C:/ncs/toolchains/cf2149caf2/opt/bin/python.exe (found suitable version "3.9.13", minimum required is "3.8") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.6.0/zephyr/.cache
    ERRORC:/ncs/v2.6.0/zephyr/VERSIONC:/nrf5340dk_projects/PASTO/hello_world/VERSION
    -- Zephyr version: 3.5.99 (C:/ncs/v2.6.0/zephyr)
    ERRORC:/ncs/v2.6.0/zephyr/VERSIONC:/nrf5340dk_projects/PASTO/hello_world/VERSION
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf5340dk_nrf5340_cpuapp
    -- Found host-tools: zephyr 0.16.5 (C:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.5 (C:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/cf2149caf2/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs/v2.6.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: C:/nrf5340dk_projects/PASTO/hello_world/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/nrf5340dk_projects/PASTO/hello_world/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/nrf5340dk_projects/PASTO/hello_world/build/zephyr/dts.cmake
    Parsing C:/ncs/v2.6.0/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v2.6.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
    Merged configuration 'c:/nrf5340dk_projects/PASTO/hello_world/prj.conf'
    Configuration saved to 'C:/nrf5340dk_projects/PASTO/hello_world/build/zephyr/.config'
    Kconfig header saved to 'C:/nrf5340dk_projects/PASTO/hello_world/build/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Configuring incomplete, errors occurred!
    See also "C:/nrf5340dk_projects/PASTO/hello_world/build/CMakeFiles/CMakeOutput.log".
    See also "C:/nrf5340dk_projects/PASTO/hello_world/build/CMakeFiles/CMakeError.log".
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/cf2149caf2/opt/bin/python.exe '-Bc:\nrf5340dk_projects\PASTO\hello_world\build' -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=c:/nrf5340_pasto -DCACHED_CONF_FILE=c:/nrf5340dk_projects/PASTO/hello_world/prj.conf '-Sc:\nrf5340dk_projects\PASTO\hello_world'

    * The terminal process terminated with exit code: 1.
    * Terminal will be reused by tasks, press any key to close it.

  • Hi,
    Just started to take a look.
    I wonder why there is a double `VERSION/VERSION` here:

    -- west build: generating a build system
    ERRORC:/ncs/v2.6.0/zephyr/VERSION/VERSION

    This indicates to me that the problem might be related to `VERSION` somehow being appended twice to that setting and therefore not found during build, which again causes values for the match operation to be empty and therefore fail.

    It would be a big help if you can provide a CMake trace file for further investigation as to what exactly happens.
    Run the `west build ...` command as printed in your last comment and then add:

    -- --trace-expand 2> cmake.trace

    and attach the cmake.trace file to this thread.

  • Reason for the `/VERSION/VERSION` printing is found.
    It happens because the VERSION_FILE variable is a CMake lists of two elements, which in CMake is separated by a `;`.

    But when you're printed the message, that list is concatenated into a single string, and the `;` disappears in that process, so this part actually looks correct.

    But a cmake.trace file is still valuable for further investigations.

Reply Children
No Data
Related