Hello,
I have tried building my project today after making some quick changes and the build returns a bunch of basic errors like
C:\Users\sizzg\ncs\v1.9.1\zephyr\include\sys\sys_heap.h:54:2: error: unknown type name 'size_t'
54 | size_t init_bytes;
| ^~~~~~
C:\Users\sizzg\ncs\v1.9.1\zephyr\include\sys\sys_heap.h:166:11: error: unknown type name 'size_t'
166 | size_t align, size_t bytes);
| ^~~~~~
C:\Users\sizzg\ncs\v1.9.1\zephyr\include\sys\sys_heap.h:10:1: note: 'size_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
9 | #include <stddef.h>
+++ |+#include <stddef.h>
10 | #include <stdbool.h>
this is followed by a bunch of errors that don't even fit into the terminal buffer. It is apparent that by build is broken. I have since tried uninstalling all older toolchains from the toolchain manager/manually uninstalling them and reinstalled all my extensions in visual studio code. It is apparently still pointing to the wrong metadata.
This is my system configuration
For help and support, visit the Nordic DevZone at https://devzone.nordicsemi.com/.
{
"platform": {
"os": "win32",
"osVersion": "Windows 10 Home",
"osKernel": "10.0.22000",
"vscode": "1.64.2",
"electron": "13.5.2",
"node": "v14.16.0"
},
"system": {
"date": "2022-03-18T10:13:34.838Z",
"vscodeRoot": "c:\\Users\\sizzg\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
"nrfConnectForDesktopInstalled": true,
"vscodeUptime": "00:01:58",
"osUptime": "147:38:45",
"cpu": {
"model": "Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz",
"speed": "3192 MHz",
"count": 6
},
"memory": {
"total": "7.89 GB",
"free": "1.15 GB"
}
},
"workspace": {
"name": "bleMesh_workspace (Workspace)",
"workspaceFile": "c:\\BlueStud\\BLE_Mesh\\bleMesh_workspace.code-workspace",
"folders": [
"c:\\BlueStud\\BLE_Mesh\\light",
"c:\\BlueStud\\BLE_Mesh\\light_switch",
"c:\\BlueStud\\BLE_Mesh\\mesh_provisioner",
"c:\\BlueStud\\BLE_Mesh\\mesh_badge",
"c:\\BlueStud\\BLE_Mesh\\mesh",
"c:\\BlueStud\\BLE_Mesh\\mesh_demo",
"c:\\BlueStud\\BLE_Mesh\\sensor_client",
"c:\\BlueStud\\BLE_Mesh\\NCS_SAADC_example-master",
"c:\\BlueStud\\BLE_Mesh\\lvgl",
"c:\\BlueStud\\BLE_Mesh\\blinky",
"c:\\BlueStud\\BLE_Mesh\\sensor_server"
]
},
"extensions": {
"internal": {
"nordic-semiconductor.nrf-connect": {
"version": "2022.3.104",
"path": "c:\\Users\\sizzg\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2022.3.104",
"isActive": true
},
"nordic-semiconductor.nrf-terminal": {
"version": "2022.3.16",
"path": "c:\\Users\\sizzg\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2022.3.16",
"isActive": true
},
"nordic-semiconductor.devicetree": null,
"nordic-semiconductor.kconfig": null
},
"external": {
"marus25.cortex-debug": "1.2.2",
"ms-vscode.cpptools": "1.8.4",
"ms-vscode-remote.remote-wsl-recommender": "0.0.12",
"ms-vscode.js-debug": "1.64.3",
"ms-vscode.js-debug-companion": "1.0.15",
"ms-vscode.references-view": "0.0.81",
"ms-vscode.vscode-js-profile-table": "0.0.18",
"trond-snekvik.gnu-mapfiles": "1.1.0",
"twxs.cmake": "0.0.17"
}
},
"tools": {
"C:\\Program Files\\SEGGER\\JLink_V760c\\JLink.exe": "7.60c",
"C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.15.1",
"nrfutil": "Not found",
"c:\\Users\\sizzg\\ncs\\v1.9.1\\toolchain\\opt\\bin\\cmake.exe": "3.20.5",
"c:\\Users\\sizzg\\ncs\\v1.9.1\\toolchain\\opt\\bin\\Scripts\\west.exe": "0.12.0",
"c:\\Users\\sizzg\\ncs\\v1.9.1\\toolchain\\opt\\bin\\python.exe": "3.8.2",
"c:\\Users\\sizzg\\ncs\\v1.9.1\\toolchain\\opt\\bin\\ninja.exe": "1.9.0",
"c:\\Users\\sizzg\\ncs\\v1.9.1\\toolchain\\opt\\bin\\gperf.exe": "3.1",
"c:\\Users\\sizzg\\ncs\\v1.9.1\\toolchain\\opt\\bin\\dtc.exe": "1.4.7",
"c:\\Users\\sizzg\\ncs\\v1.9.1\\toolchain\\opt\\bin\\arm-none-eabi-gcc.exe": "9-2019-q4-major",
"c:\\Users\\sizzg\\ncs\\v1.9.1\\toolchain\\opt\\bin\\gn.exe": "1977",
"c:\\Users\\sizzg\\ncs\\v1.9.1\\toolchain\\mingw64\\bin\\git.exe": "2.26.2.windows.1"
},
"sdks": [
{
"version": "1.9.1",
"path": "c:\\Users\\sizzg\\ncs\\v1.9.1"
}
],
"toolchains": [
{
"version": "1.9.1",
"path": "c:\\Users\\sizzg\\ncs\\v1.9.1\\toolchain"
}
],
"connectedDevices": [],
"deviceProviders": [
"nrfjprog"
],
"config": {
"nordic-semiconductor.nrf-connect": {
"topdir": "${nrf-connect.sdk:1.9.1}",
"toolchain": {
"path": "${nrf-connect.toolchain:1.9.1}"
},
"ozonePath": "C:\\Program Files\\SEGGER\\Ozone V3.26a\\Ozone.exe",
"applications": [
"c:\\BlueStud\\BLE_Mesh\\light",
"c:\\BlueStud\\BLE_Mesh\\light_switch",
"c:\\BlueStud\\BLE_Mesh\\mesh_provisioner",
"c:\\BlueStud\\BLE_Mesh\\mesh_badge",
"c:\\BlueStud\\BLE_Mesh\\mesh",
"c:\\BlueStud\\BLE_Mesh\\mesh_demo",
"c:\\BlueStud\\BLE_Mesh\\sensor_client",
"${workspaceFolder:NCS_SAADC_example-master}",
"c:\\BlueStud\\BLE_Mesh\\lvgl",
"c:\\BlueStud\\BLE_Mesh\\blinky",
"c:\\BlueStud\\BLE_Mesh\\sensor_server"
],
"kconfig": {
"interface": "kconfig"
},
"welcome": {
"showOnStartup": false
},
"west": {
"env": {
"$base": "terminal"
}
},
"boardRoots": [],
"enableTelemetry": true
},
"nordic-semiconductor.nrf-terminal": {
"terminalMode": "character"
},
"nordic-semiconductor.devicetree": {
"modules": [
"${zephyrBase}",
"${zephyrBase}/../nrf",
"."
],
"zephyr": "",
"ctxFile": "",
"defaultBoard": ""
},
"nordic-semiconductor.kconfig": {
"root": "",
"env": {},
"cfiles": true,
"disable": false,
"zephyr": {
"base": ""
},
"python": "",
"liveValue": true
},
"marus25.cortex-debug": {
"armToolchainPath": null,
"armToolchainPrefix": "arm-none-eabi",
"gdbPath": null,
"objdumpPath": null,
"JLinkGDBServerPath": null,
"openocdPath": null,
"pyocdPath": null,
"PEGDBServerPath": null,
"stutilPath": null,
"stlinkPath": null,
"stm32cubeprogrammer": null,
"enableTelemetry": true,
"flattenAnonymous": false,
"registerUseNaturalFormat": true,
"variableUseNaturalFormat": true,
"dbgServerLogfile": null,
"showDevDebugOutput": "none"
}
},
"environment": {
"westExe": "c:\\Users\\sizzg\\ncs\\v1.9.1\\toolchain\\opt\\bin\\Scripts\\west.exe",
"westEnv": {
"ELECTRON_RUN_AS_NODE": "1",
"HOME": "C:\\Users\\sizzg",
"HOMEDRIVE": "C:",
"HOMEPATH": "\\Users\\sizzg",
"Path": "c:\\Users\\sizzg\\ncs\\v1.9.1\\toolchain\\mingw64\\bin;c:\\Users\\sizzg\\ncs\\v1.9.1\\toolchain\\mingw64\\libexec\\git-core;c:\\Users\\sizzg\\ncs\\v1.9.1\\toolchain\\opt\\bin;c:\\Users\\sizzg\\ncs\\v1.9.1\\toolchain\\opt\\bin\\Scripts;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\dotnet\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Users\\sizzg\\AppData\\Roaming\\Python\\Python310\\Scripts;C:\\Program Files\\PuTTY\\;C:\\Program Files (x86)\\dotnet\\;C:\\Users\\sizzg\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\;C:\\Users\\sizzg\\AppData\\Local\\Programs\\Python\\Python310\\;C:\\Users\\sizzg\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\sizzg\\.dotnet\\tools;C:\\Users\\sizzg\\AppData\\Roaming\\Python\\Python310\\Scripts;C:\\Users\\sizzg\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
"ZEPHYR_BASE": "c:\\Users\\sizzg\\ncs\\v1.9.1\\zephyr",
"GNUARMEMB_TOOLCHAIN_PATH": "c:\\Users\\sizzg\\ncs\\v1.9.1\\toolchain\\opt",
"ZEPHYR_TOOLCHAIN_VARIANT": "gnuarmemb",
"PYTHONPATH": "c:\\Users\\sizzg\\ncs\\v1.9.1\\toolchain\\opt\\bin;c:\\Users\\sizzg\\ncs\\v1.9.1\\toolchain\\opt\\bin\\Lib;c:\\Users\\sizzg\\ncs\\v1.9.1\\toolchain\\opt\\bin\\Lib\\site-packages",
"Python3_ROOT": "c:\\Users\\sizzg\\ncs\\v1.9.1\\toolchain\\opt\\bin"
},
"toolchainPath": "c:\\Users\\sizzg\\ncs\\v1.9.1\\toolchain",
"toolchainBinPath": "c:\\Users\\sizzg\\ncs\\v1.9.1\\toolchain\\opt\\bin",
"toolchainVersion": "1.9.1"
},
"terminal": {
"shell": null,
"defaultProfile": null
}
}
[15:49:20] west build --build-dir c:\BlueStud\BLE_Mesh\hello_world\build c:\BlueStud\BLE_Mesh\hello_world --pristine --board nrf52840dk_nrf52840 -- -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DBOARD_ROOT:STRING="c:/BlueStud/BLE_Mesh/light;c:/BlueStud/BLE_Mesh/light_switch;c:/BlueStud/BLE_Mesh/mesh;c:/BlueStud/BLE_Mesh/mesh_demo;c:/BlueStud/BLE_Mesh/lvgl;c:/BlueStud/BLE_Mesh/sensor_server"
[15:49:30] Failure (code 1).
Please help me out. My development is now at a complete halt. Thanks a ton.