Got an Error while build the Light Bulb Example code

Hey, Varshil here,

I got an error while build the Light Bulb example code of Matter SDK.

When I am builds that code without any changes at that time builds successfully work.

But I added Matter temperature Sensor (0x0302) and in that add On Off cluster and generate in ZAP Generated folder of Light Bulb with the help of ZAP-Tool.

I got a Below Error.

------> Below is the logs of Terminal when I am building Light Bulb Example code.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
In file included from C:\ncs\v2.4.0\modules\lib\matter\src\app\util\config.h:31,
from C:\ncs\v2.4.0\modules\lib\matter\src\app\util\af.h:23,
from C:\ncs\v2.4.0\modules\lib\matter\src\app\util\common.h:21,
from C:\ncs\v2.4.0\modules\lib\matter\src\app\util\attribute-storage.cpp:18:
c:\ncs\v2.4.0\nrf\samples\matter\DHT11_Matter_Varshil\src\zap-generated\endpoint_config.h:217:29: error: exponent has no digits
217 | #define ATTRIBUTE_MAX_SIZE (16ERROR: DeviceTypeList, invalid size, arrayERROR: ServerList, invalid size, arrayERROR: ClientList, invalid size, arrayERROR: PartsList, invalid size, array422224222242)
| ^~~~~~~
C:\ncs\v2.4.0\modules\lib\matter\src\app\util\attribute-storage.cpp:50:6: note: in expansion of macro 'ATTRIBUTE_MAX_SIZE'
50 | #if (ATTRIBUTE_MAX_SIZE == 0)
| ^~~~~~~~~~~~~~~~~~
c:\ncs\v2.4.0\nrf\samples\matter\DHT11_Matter_Varshil\src\zap-generated\endpoint_config.h:217:36: error: ':' without preceding '?'
217 | #define ATTRIBUTE_MAX_SIZE (16ERROR: DeviceTypeList, invalid size, arrayERROR: ServerList, invalid size, arrayERROR: ClientList, invalid size, arrayERROR: PartsList, invalid size, array422224222242)
| ^
C:\ncs\v2.4.0\modules\lib\matter\src\app\util\attribute-storage.cpp:50:6: note: in expansion of macro 'ATTRIBUTE_MAX_SIZE'
50 | #if (ATTRIBUTE_MAX_SIZE == 0)
| ^~~~~~~~~~~~~~~~~~
c:\ncs\v2.4.0\nrf\samples\matter\DHT11_Matter_Varshil\src\zap-generated\endpoint_config.h:217:29: error: exponent has no digits
217 | #define ATTRIBUTE_MAX_SIZE (16ERROR: DeviceTypeList, invalid size, arrayERROR: ServerList, invalid size, arrayERROR: ClientList, invalid size, arrayERROR: PartsList, invalid size, array422224222242)
| ^~~~~~~
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Please urgently need to solve this issue and your little bit of help will be very appreciated.

Thank You,

Varshil