Device dts ord errors when trying to compile using static libraries

We are getting the following error when compiling from our static libraries.

undefined reference to `__device_dts_ord_168'

 

Our project consists of multiple static libraries made using west and then compiled in a single master project. When we build the master project, we get the above error. The zephyr version used for development is 4.3.0. The error pops up when we build in the later version 4.3.99 and not older version 4.3.0. What might be the root cause of this? This error comes up when we link our UART and USB static libraries.

Related