Compilation not possible with Occupancy cluster enabled (Matter)

Hi,

I am working with the Matter Light Bulb sample. I have come across a problem where I can not compile my firmware if I implement the occupancy sensor cluster using the ZAP-Tool.

When I toggle this option to enabled, the compilation fails.

This is the error I receive:

/home/install/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: app/libapp.a(util.cpp.obj): in function `emberAfInit()':
/home/install/ncs/v2.5.0/modules/lib/matter/src/app/util/util.cpp:111: undefined reference to `MatterOccupancySensingPluginServerInitCallback()'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /home/install/ncs/toolchains/7795df4459/usr/local/bin/cmake --build /home/install/nrf_apps/light_bulb_2.5.0/build

For me this error was reproducible on both the 2.5.0 and the 2.6.0 SDK in the same way, even after reinstalling. I am building for a nrf52840-DK

Do I need to implement any callbacks before I can compile this cluster? I tried with the temperature cluster and it compiled without any problems.

I appreciate the help.

Parents Reply
  • I think I have found what caused most of the problems. Whenever I would install a new version of the toolchain or SDK, it would install the toolchain and for some reason set the path to the old SDK without installing the newer one. So even when it showed as v2.5.0 it was actually some older version.

    This was the same for VS Code and when using the nRF Connect for desktop app to install other versions. The only fix I found so far ist completely getting rid of any other SDK's, because just changing the directory did not help.

Children
No Data
Related